View Single Post
Old 11-04-2007, 01:49 AM  
StickyGreen
.
 
StickyGreen's Avatar
 
Industry Role:
Join Date: Oct 2003
Posts: 13,076
Quote:
Originally Posted by SmokeyTheBear View Post
a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript

like place your random html into seperate html pages
random0.html

thru

random4.html

Code:
<script>
var rn= Math.floor(Math.random()*5);
document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>");
</script>
Thanks Smokey... works like a charm...
StickyGreen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote