inherit
41839
0
May 6, 2009 13:56:46 GMT -8
systemfriik
War?
194
May 2005
systemfriik
|
Post by systemfriik on Jun 22, 2005 10:52:30 GMT -8
is there a code to have a box that you can fill with random pics or quotes and each time you go to the page its on it takes out the stuff you put in randomly? like on this site soadfans.com/Article180.htm
|
|
inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jun 22, 2005 11:38:33 GMT -8
Try this whereever you want the quote box to appear: <script type="text/javascript"> //Random Quote var quote = new Array() quote[ 1]=" quote 1" quote[ 2]=" quote 2" quote[ 3]=" quote 3" var random = Math.floor(Math.random()*quote.length); if (random==0){ random=1} var randomquote = quote[random]; document.write('<table border="1" align="center"><tr><td>'+randomquote+'<\/tr><\/td><\/table>'); </script> Edit the red with the quotes and for each extra line you add, increase the blue number by one. Next time, can you post in code requests
|
|