| free hosting image hosting hosting reseller online album e-shop famous people | ||
![]() ![]() |
||
This section goes inside the body tag:
And this section goes in the body itself:
<a href="javascript:slidelink()" onFocus="this.blur()">blendTrans works in a similar way to the revealTrans filter.
<img src="1.jpg" name="slide" border=0 width="100"
height="50" style="filter:blendTrans(duration=2)"></a>
slide.filters.blendTrans.apply()... then it evaluates the image's location:
document.images.slide.src=eval("image"+step+".src")... and finally, it executes the filter effect:
slide.filters.blendTrans.play()
The number of the image is assigned to variable whichimage:a counter to cycle through the 4 images, applying the filter to each
an image pointer
whichimage=step... then the counter is incremented until it reaches 4, then reset to 1:
if (step < 4)The duration of the effect - 5 seconds - is controlled by a setTimeout command:
step++
else
step=1
setTimeout("slideit()",5000)Note that this includes the blendTrans duration period of 2 seconds.
increase the image array in the head section (pre-load images)
increase the step limit accordingly - eg: if (step < 12) for 12 images
make sure all images are exactly the same size for best results
if (whichimage==1)If the graphic is image 1, link 1 is selected. And so on.
window.location="page1.html"
else if (whichimage==2)
window.location="page2.html"
else if (whichimage==3)
window.location="page3.html"
else if (whichimage==4)
window.location="page4.html"