Entry
I want to rotate 4 images in 1 layer. How can I change the link (href) also when the image change.
May 1st, 2001 14:01
Colin Fraser, Mark Goedhart,
I doubt there is an easy answer to this question, but would it not be
simpler to put each image on a layer then rotate through the layers
using the visibility property? However, without going into too much
detail, try reading the anchors and images into an array then calling
the array with whatever conditions to display whatever link you want to
show at what time.
The real problem is time here, how long will it take to download all the
images, then scroll through them at the right times and so on. I suspect
that even with broadband access spreading this will still take too long
to be a viable proposition. Another thing to consider is the potential
for error. The more coding you use the greater the potential for your
page not to display properly in most browsers, so keeping it simple is
usually a more viable option. In otherwords, dont get too fancy. One
alternate is to use an imagemap.