|
|
|
|
|
|
![]() |
#1 |
Just because I don't care doesn't mean I don't understand!
Join Date: Feb 2004
Posts: 92
|
Hoping to find a random link script
Hello gang,
I am looking for a little script which will display random links. I am using the following java but it is to cluttered to use with anything over 3-4 links listed. Plus the java has to be used every place you want the link displayed on a page. Very messy indeed. Not real fond of java anyway. I am guessing there is a nice php script around somwhere but I haven't found one. I don't have much experience with php, but will hopefully be able to figure it out and install it ok. Also, if the script can be adjusted to display a picture of the day (not random but from a numbered list for example) that would be great. You can message me here or through email at: webmaster(at)dunkinsworld.com I really appreciate any help with this one. Thanks again, Dunkin <script language="JavaScript"> <!-- function random_content(){ var mycontent=new Array() //specify random content below. mycontent[1]='<a href="http://www.xxxxxx.com">link text here 1</a></font>' mycontent[2]='<a href="http://www.xxxxxx.com">link text here 2</a></font>' mycontent[3]='<a href="http://www.xxxxxx.com">link text here 3</a></font>' mycontent[4]='<a href="http://www.xxxxxx.com">link text here 4</a></font>' var ry=Math.floor(Math.random()*mycontent.length) if (ry==0) ry=1 document.write(mycontent[ry]) } random_content() //--> </script> |
![]() |
![]() |
|
|