logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-25-2009, 04:04 PM   #1
Andymoses
 
Join Date: Jun 2008
Posts: 9
Default Blend sideshow doesn't quite work in FF

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")
//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...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
Andymoses is offline   Reply With Quote
Old 08-23-2009, 07:30 AM   #2
student101
 
Join Date: Dec 2007
Posts: 379
Thumbs up

Quote:
Originally Posted by Andymoses View Post
Javascript slide show
The image is the square with Jitsu in it.
Cheers
Andy
That is a Blending Image Slideshow Script from Dynamic drive.
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
__________________
Amateurs ... Built the ark.
Professionals ... Built the Titanic.
specificity [sound like spe-sifis-ity]
student101 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com