Click to See Complete Forum and Search --> : Slide show doesnt work


dennic
08-21-2003, 05:52 AM
Can someone tell me what i am doing wrong I have pinpointed the problem but don't know what to replace it with:

here it is

<html>
<head>
<title>Body </title>
<LINK href="stylesheet3.css" type="text/css" rel="stylesheet">
<script language="javascript">
<!--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, continue
//Adding to the array

Pic[0] = 'AD1.jpg'
Pic[1] = 'AD2.jpg'
Pic[2] = 'AD3.jpg'
Pic[3] = 'AD4.jpg'

//Don't 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()">
&nbsp;
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="VU" height="150" width="150"><img src="AD1.jpg" name="SlideShow' width=150 height=150"></td>
</tr>
</table>
<br>
<br>
<!--Footer-->
<div id="footer" style="Z-INDEX: 101; LEFT: 29px; POSITION: absolute; TOP: 431px">
<CENTER>
<br>
<font size="-1" color="blue">Copyright © DENNIC. All Rights Reserved.
<br>
[<A href="Body.htm">Home</A> |<A href="Projects.htm">Projects</A> |<a href="Hosting.htm">Web
Hosting</a>|<a href="Contact.htm">Contact Us</a>|<a href="Disclaimer.htm">Disclaimer</a>]</font>
</CENTER>
</div>
</body>
</html>
doesnt like this code here:

A1ien51
08-21-2003, 07:36 AM
looked at it very quick:

t=setTimeout('runSlideShow()' slideShowSpeed); is missing the comma

t=setTimeout('runSlideShow()',slideShowSpeed);

dennic
08-21-2003, 08:04 AM
thanks mate, but its still not working for some reason, i cant seem to figure it out.

it keeps coming up with an error on the page, the website is

www.dennic.com.au

A1ien51
08-21-2003, 10:11 AM
document.images.SlideShow.style.filter="blendTrans
(duration=crossFadeDuration)";

that is split on 2 lines
should be

document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";

Capone
08-21-2003, 10:53 AM
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

HTML Slide Show Wizard

This wizard helps you create an HTML slide show of your digital pictures, ready to place on your Web site.

Why reinvent the wheel? Powerpoint makes slideshows also, if you have MS Office.

dennic
08-22-2003, 03:31 AM
sorry alien, you have repeated yourself dude, and i dont know what you mean