Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-09-2010, 02:32 AM
EDGE is offline EDGE
EDGE's Avatar

Join Date: Feb 2003
Location: North Carolina
Posts: 7,184

Send a message via ICQ to EDGE Send a message via AIM to EDGE Send a message via Yahoo to EDGE
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:
Voltaire
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 10:13 AM.




Powered by vBulletin®