August 30, 2002

  • Here's the code for the random "place-filler" blog up above.

    (note: this code is proclaimed to work on IE4+ and Netscape6+ browsers; yet seanmeister maintains that it deosn't work under his implementation of Mozilla/Netscape)


    If you want to experiment with this, you'll need to cut and paste the code below into a posting window while (very important!) having the "Edit HTML" box checked.  Likewise, if you want to edit the code later, you'll have to have the same box checked.


    Some considerations:


    1) //Specify IFRAME display attributes


    These are all customizable attributes.  A width of about 650 spans the typical xanga page (if that's what you desire, but less is ok) and the height doesn't need to be too large if you set scrolling equal to "yes".


    2) //Specify random URLs to display inside iframe


    You'll need to change these to match the source of your own content.  Although there are seven slots here (0 through 6), you can have as few (delete from higher number backwards)  or as many random slots as you want.  If you add more, they must number uniquely upwards (i.e., 7, 8,...etc.)


    Note also that the URL's could all be the same except for one or two.  In such an instance, you'd be changing the "weighting" and enhancing the probability of a "heavier weighted" URL (more occurences) displaying more often than a "lighter weighted" URL (e.g., one occurence only).


    The "random URL's" that I've included are referencing separate html pages that I posted on a non-xanga site.  I created the same background on these pages as on my xanga site so that they would "blend in".  And the reason for posting them off of xanga is this: on xanga, even from separate blogs, as a post they would include all the cluttering "header" space and information up top first.  By creating a simple html page off-xanga , just the relevant content can be included.



    Finally, make sure that the quotes ("   ") around the URLs are intact before submitting.  When you paste new URLs into the script, they seem, at first, to disappear with the URL's presentation as an underscored hyperlink.


    Finally, finally: Only one of these types of posts can appear at "a time", that is, on the front page "current 5" posts of your blog.  Trying to include more than one breaks the second effort.  But you can either wait until the first one passes onto the "next 5" posts (off the main page of your blog) or simply push the old one "off" with intermediary filler posts between. (I made my post of yesterday that used this very same script "private" to avoid this limitation to the above post for my readers.)



    Now, below, if you care to make use of it (it's not essential--any reload will work), is the "Reload" button from the blog above. I used a sleight of hand in having it "reload" to the comment page. Moreover, I had it "reload" the comment page that is accessed by the link of "Comment box not working? Click here." since this script has a tendency to break the default comment capability.



    Important considerations:

    1) You can leave the reload.gif reference to my picture files as it is--I've no problem with that. 2) But you must change the A href= " " to reference your specific post--not mine (as displayed here).

    To do this, after your post has posted,

    a) go to the comment page and re-access it by clicking on the "Comment box not working? Click here."

    b) copy the URL for this and include it in the A href=" " section of the code above.

    c) edit your post with the "Edit HTML" button checked and include the "Reload" button code where appropriate.

    This will permit your reader to both reload new random content while accessing the "simplified" comment page thus avoiding the possible need for your reader to re-initialize a "broken" comment box induced by the script.

Comments (254)

Comments are closed.

Post a Comment

Recent Posts

Categories

The End of Days

August 2002
M T W T F S S
« Jul   Sep »
 1234
567891011
12131415161718
19202122232425
262728293031