|
Post by Wormopolis on Apr 13, 2011 21:23:47 GMT -8
browser tested: IE, FF, and Chrome placement: anywhere
puts whatever content you want into a table that will rotate with every page visit. adding new content is as easy as add in new <p> elements to the accompanied div.
<center id="blurbblock"> <style type="text/css"> #blurbdata {font-size: 18px; color: #0044FF;} </style>
<table width="100%" class="bordercolor" cellpadding="1"> <tr><td class="windowbg" id="blurbdata" align="center"></td></tr> </table>
<div id="blurbstorage" style="display:none"> <!-- Add in all blurbs as <p> elements -->
<p> "... a dream that became a reality and spread throughout the stars" -- Kirk (Whom Gods Destroy) </p>
<p> "Just before they went into warp, I beamed the whole kit and kaboodle into their engine room, where they'll be no tribble at all." -- Scotty, explaining how he got rid of the tribbles (The Trouble With Tribbles)</p>
<p> "Right out of hell, I saw it!" -- Commodore Decker, describing the Planet Killer (The Doomsday Machine)</p>
<p> "You will die of suffocation, in the icy cold of space" -- Kang (Day of the Dove)</p>
<p> "The mid-1990s was the era of your so-called Third World War" -- Spock (Space Seed)</p>
<p> "We simply must accept the fact that Captain Kirk is no longer alive" -- Spock (The Tholian Web)</p>
<p> "They seemed to have been spared the agony of your first three World Wars, doctor" -- Spock (Bread and Circuses)</p>
<p> "You are authorized to use all measures available to destroy the Enterpise" -- Starfleet Command Representative (The Ultimate Computer)</p>
<p> "I didn't mean to say that the Enterprise should be hauling garbage. I meant to say that it should be hauled away AS garbage" -- Korax (The Trouble With Tribbles) </p>
</div> <script type="text/javascript"> <!-- // rotating blurb into table v.10 // by Wormopolis - www.wormocodes.com // do not repost - keep header intact
// no need to edit below, unless you know what you are doing
var blurbPlace=0; if (document.cookie.match(/blurbplace=(\d+?)(;|$)/)) { blurbPlace=parseInt(RegExp.$1); } var getBlurb=document.getElementById('blurbstorage').getElementsByTagName('p')[blurbPlace]; var blurbCount=document.getElementById('blurbstorage').getElementsByTagName('p').length; blurbPlace=((blurbPlace+1)%blurbCount); document.cookie='blurbplace='+blurbPlace; document.getElementById('blurbdata').appendChild(getBlurb);
// --> </script> </center>
|
|