|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
Random Image Generator + Address?
So, i want to know if anyone can modify this javascript for me to make the random images appear as clickable links.
Any help is appreciated. Code:
<script language="JavaScript"> <!-- function random_imglink(){ var myimages=new Array() //specify random images below. You can have as many as you wish myimages[1]="image1.gif" myimages[2]="image2.gif" myimages[3]="image3.gif" myimages[4]="image4.gif" myimages[5]="image5.gif" myimages[6]="image6.gif" var ry=Math.floor(Math.random()*myimages.length) if (ry==0) ry=1 document.write('<img src="'+myimages[ry]+'" border=0>') } random_imglink() //--> </script>
__________________
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MS Points Generator...Does this really work? | Bustin | Gaming Talk | 5 | 04-12-2010 10:39 PM |
Advertisement slogan generator! | Steve | General Chat | 30 | 06-02-2005 02:29 PM |
Squad Tag Generator | Surge | Web design and Programming | 2 | 01-21-2004 05:52 AM |
Random Tree/object Generator for TFD? | RoDent | Delta Force | 2 | 05-13-2003 12:19 AM |
Random Image | Matt | Web design and Programming | 4 | 04-16-2003 04:14 PM |