Jump to content

Adding URLS to this


Parkpre

Recommended Posts

hello peoplehow would i go about making the images within this script links?

<script LANGUAGE="JavaScript">var theImages = new Array() theImages[0] = 'photo1.jpg'theImages[1] = 'photo2.jpg'theImages[2] = 'photo3.jpg'theImages[3] = 'photo4.jpg'var j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){   preBuffer[i] = new Image()   preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function showImage(){document.write('<img src="'+theImages[whichImage]+'">');}</script>

the code is a random image thingy, thank you! :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...