/    Sign up×
Community /Pin to ProfileBookmark

slide show won’t work in IE

I have the following slide show that works just fine in NS but won’t work in IE.

<SCRIPT language=”JavaScript1.2″>
<!– Original: CodeLifter.com ([email protected]) –>

<!– Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = ‘images/MarH0022V.jpg’
Pic[1] = ‘Message-1W.jpg’
Pic[2] = ‘images/NicM0421V.jpg’
Pic[3] = ‘Message-2W.jpg’
Pic[4] = ‘images/JarB0035V.jpg’
Pic[5] = ‘Message-3W.jpg’
Pic[7] = ‘Message-4W.jpg’
Pic[6] = ‘images/SteP0004V.jpg’

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter=”blendTrans(duration=2)”;
document.images.SlideShow.style.filter=”blendTrans(duration=crossFadeDuration)”;
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p – 1)) j = 0;
t = setTimeout(‘runSlideShow()’, slideShowSpeed);
}
// End –>
</SCRIPT> </HEAD>
<BODY onload=”runSlideShow()” bgcolor=”#484848″><BR clear=”all”>
<TABLE border=”0″ width=”365″ height=”385″ cellpadding=”0″ cellspacing=”0″ align=”center” bgcolor=”#cccccc”>
<TBODY>
<TR>
<TD width=”45″ bgcolor=”#000000″></TD>
</TR>
<TR>
<TD align=”center” height=”325″ bgcolor=”#000000″><IMG src=”DiaJ0468V.gif” name=”SlideShow”></TD>
</TR>
<TR>
<TD width=”45″ bgcolor=”#000000″></TD>
</TR>
</TBODY>
</TABLE>

</BODY>
</HTML>

It seems simple enough, but I can’t identify what may be going wrong in IE.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Dan_DrillichMar 10.2003 — It works well for me with IE6.0.
Copy linkTweet thisAlerts:
@russ801authorMar 10.2003 — Strange, it doesn't work in my v6. Could there be any browser settings that I have set wrong?
×

Success!

Help @russ801 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...