Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 11:03 am EST

Geeklog Forums

Blocks and images in sequences


Status: offline

manowar

Forum User
Regular Poster
Registered: 11/07/07
Posts: 81
Location:Santiago - Chile
Hi,
I need to do the following things;
Create a block with images in sequences, by each image I wanna insert a diferent link. The images must rotate with a time of delay between each image.
Now I have this,

<html>
<head>
<script type="text/javascript">
<!--
var image1=new Image()
image1.src="/images/banner/aportes.jpg"
var image2=new Image()
image2.src="/images/banner/macul.jpg"
var image3=new Image()
image3.src="/images/banner/pte_alto.jpg"
//-->
</script>
</head>
<body>
<img src="firstcar.gif" name="slide" width="200" height="185" />
<script>
<!--

var step=1
function slideit(){

if (!document.images)
return
document.images.slide.src=eval("image"+step+".src"Wink
if (step<3)
step++
else
step=1

setTimeout("slideit()",3500)
}
slideit()
//-->
</script>
</body>
</html>


but not like inserting a Link by each image.

Can you help me?? :pray:
 Quote

All times are EST. The time is now 11:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content