I have a couple of pictures, that should be changed automatically in some seconds. This JS code I have. But I would like to improve this code. If person likes appeared photo then by clicking on it, he should be sent to appropriate webpage (ie. webpage subpage).
But when I'm trying to add some info, JS stops working.
var image1=new Image()
//PROBLEM IS HERE
//doing something like image1.src="<a
//href="http://www.google.com">"first.png"</a> doesn't help me...why?
var image2=new Image()
var image3=new Image()
<img src="first.png" name="slide" />
//variable that will increment through the images
//if browser does not support the image object, exit.
//call function "slideit()" every 2.5 seconds