I'm a super noob and am trying to get the images in this slideshow to link to URLs.
I realize I should have created separate js and html files and I will do that but just want to see if it is possible like this.
THANK YOU!!!
<!doctype html>
<html>
<head>
<script type="text/javascript">
var image=new Image()
image[0]=new Image()
image[0].src= "hello1.jpg"
image[1]=new Image()
image[1].src="hello2.jpg"
image[2]=new Image()
image[2].src="hello4.jpg"
image[3]=new Image()
image[3].src="hello3.jpg"
image[4]=new Image()
image[4].src="hello5.jpg"
</script>
</head>
<body>
<img id="slide" width=1140 height=521 alt="image" />
<script type="text/javascript">
var step = 0
function slideit(){
if (!document.images)
return
document.getElementById('slide').src = image[step].src
if (step<4)
step++
else
step = 0
setTimeout("slideit()",5500)
}
slideit()
</script>
</body>
</html>