PDA

View Full Version : Blend sideshow doesn't quite work in FF


Andymoses
07-25-2009, 04:04 PM
Javascript slide show that blends into the next image works fine in IE, but in FF(3.0+), it just jumps to the next image. I'm a novice at java and I got the code from somewhere. The website: http://www.worcesterjitsu.org

The image is the square with Jitsu in it.

the code:

<script language="JavaScript1.1">
<!--
//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("http://www.worcesterjitsu.org/assets/logo_bl-out100x.gif","http://www.worcesterjitsu.org/assets/logo_bl-fill100x.gif","http://www.worcesterjitsu.org/assets/logo_r-out100x.gif","http://www.worcesterjitsu.org/assets/logo_r-fill100x.gif (http://www.worcesterjitsu.org/assets/logo_bl-out100x.gif)")
//specify corresponding links
var slidelinks=new Array("http://www.jitsufoundation.org")
var newwindow=1 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}
function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>


&

<p><a href="javascript:gotoshow()"><img src="http://www.worcesterjitsu.org/assets/logo_bl-out100x.gif" alt="The Jitsu Foundation logo link" name="slide" width=100 height=100 border=0 style="filter:blendTrans(duration=2)"></a>
<script language="JavaScript1.1">
<!--
var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()
//-->
</script>


Does anyone know why and what to do about it?

Cheers
Andy

student101
08-23-2009, 07:30 AM
Javascript slide show
The image is the square with Jitsu in it.
Cheers
Andy
That is a Blending Image Slideshow Script from Dynamic drive. :mrgreen:
It works in my Firefox 3.0.13, maybe you should upgrade your Firefox?
They have many, many slideshows you could use any one of them.

Cheers