PDA

View Full Version : MultiFrame slide show HELP



dokkendude
01-12-2005, 10:32 PM
need some help with what i'm doing wrong
guess I don't see it
TIA for your help

the page it's on http://www.wreckd.net/Pictures.htm

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>The New Home Of Classic Hard Rock</title>
<base target="_self">
<script language="JavaScript">

//Preloaded slideshow script- By Jason Moon
//For this script and more
//Visit http://www.dynamicdrive.com

// PUT THE URL'S OF YOUR IMAGES INTO THIS ARRAY...
var Slides = new Array('http://www.wreckd.net/McCools/TonyMike.jpg','http://www.wreckd.net/McCools/Jeff.jpg','http://www.wreckd.net/McCools/Dave1.jpg','http://www.wreckd.net/McCools/Band1.jpg','http://www.wreckd.net/McCools/Scott.jpg','http://www.wreckd.net/McCools/Tony.jpg','http://www.wreckd.net/McCools/Mike1.jpg','http://www.wreckd.net/McCools/Dave.jpg','http://www.wreckd.net/McCools/Jeff1.jpg','http://www.wreckd.net/McCools/Band2.jpg','http://www.wreckd.net/McCools/Tony1.jpg','http://www.wreckd.net/McCools/Mike.jpg','http://www.wreckd.net/McCools/Jeff2.jpg','http://www.wreckd.net/McCools/Dave2.jpg','http://www.wreckd.net/McCools/Band3.jpg','http://www.wreckd.net/McCools/Mike2,jpg','http://www.wreckd.net/McCools/Tony2.jpg','http://www.wreckd.net/McCools/Band4.jpg);

// DO NOT EDIT BELOW THIS LINE!
function CacheImage(ImageSource) { // TURNS THE STRING INTO AN IMAGE OBJECT
var ImageObject = new Image();
ImageObject.src = ImageSource;
return ImageObject;
}

function ShowSlide(Direction) {
if (SlideReady) {
NextSlide = CurrentSlide + Direction;
// THIS WILL DISABLE THE BUTTONS (IE-ONLY)
document.SlideShow.Previous.disabled = (NextSlide == 0);
document.SlideShow.Next.disabled = (NextSlide ==
(Slides.length-1));
if ((NextSlide >= 0) && (NextSlide < Slides.length)) {
document.images['Screen'].src = Slides[NextSlide].src;
CurrentSlide = NextSlide++;
Message = 'Picture ' + (CurrentSlide+1) + ' of ' +
Slides.length;
self.defaultStatus = Message;
if (Direction == 1) CacheNextSlide();
}
return true;
}
}

function Download() {
if (Slides[NextSlide].complete) {
SlideReady = true;
self.defaultStatus = Message;
}
else setTimeout("Download()", 100); // CHECKS DOWNLOAD STATUS EVERY 100 MS
return true;
}

function CacheNextSlide() {
if ((NextSlide < Slides.length) && (typeof Slides[NextSlide] ==
'string'))
{ // ONLY CACHES THE IMAGES ONCE
SlideReady = false;
self.defaultStatus = 'Downloading next picture...';
Slides[NextSlide] = CacheImage(Slides[NextSlide]);
Download();
}
return true;
}

function StartSlideShow() {
CurrentSlide = -1;
Slides[0] = CacheImage(Slides[0]);
SlideReady = true;
ShowSlide(1);
}
</script>
</head>

<body text="#FFFFFF" bgcolor="#000000">

<body onLoad="StartSlideShow()">

<p align="center"><b><i><font size="5" color="#0000FF">The New Home Of Classic
Hard Rock</font></i></b></p>
<p align="center"><b>McCool's</b><br>
New Years Eve 12/31/04</p>
<p align="center">&nbsp;<form name="SlideShow">
<table>
<tr>
<td colspan=2><img name="Screen" width=500 height=375></td>
</tr>
<tr>
<td><input type="button" name="Previous"
value=" << "
onClick="ShowSlide(-1)"></td>
<td align="right"><input type="button" name="Next"
value=" >> " onClick="ShowSlide(1)"></td>
</table>
</form></p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center">&nbsp;</p>
<p align="center"> 2004/2005 Davis Graphics</p>
<p align="center">
<a href="mailto:dokkendude@comcast.net?subject=Website Build Info">
<img border="0" src="Images/Davis%20Graphics.GIF" width="128" height="128"></a></p>
<p align="center"><a href="mailto:webmaster@wreckd.net?subject=Problems/Info">
<img border="0" src="Images/webmaster.jpg" width="150" height="50"></a></p>

</body>

</html>

simonf
01-13-2005, 07:09 AM
Hi


('http://www.wreckd.net/McCools/TonyMike.jpg','http://www.wreckd.net/McCools/Jeff.jpg','http://www.wreckd.net/McCools/Dave1.jpg','http://www.wreckd.net/McCools/Band1.jpg','http://www.wreckd.net/McCools/Scott.jpg','http://www.wreckd.net/McCools/Tony.jpg','http://www.wreckd.net/McCools/Mike1.jpg','http://www.wreckd.net/McCools/Dave.jpg','http://www.wreckd.net/McCools/Jeff1.jpg','http://www.wreckd.net/McCools/Band2.jpg','http://www.wreckd.net/McCools/Tony1.jpg','http://www.wreckd.net/McCools/Mike.jpg','http://www.wreckd.net/McCools/Jeff2.jpg','http://www.wreckd.net/McCools/Dave2.jpg','http://www.wreckd.net/McCools/Band3.jpg','http://www.wreckd.net/McCools/Mike2,jpg','http://www.wreckd.net/McCools/Tony2.jpg','http://www.wreckd.net/McCools/Band4.jpg);

In the last picture url you are missing a ' so the this line should be:


('http://www.wreckd.net/McCools/TonyMike.jpg','http://www.wreckd.net/McCools/Jeff.jpg','http://www.wreckd.net/McCools/Dave1.jpg','http://www.wreckd.net/McCools/Band1.jpg','http://www.wreckd.net/McCools/Scott.jpg','http://www.wreckd.net/McCools/Tony.jpg','http://www.wreckd.net/McCools/Mike1.jpg','http://www.wreckd.net/McCools/Dave.jpg','http://www.wreckd.net/McCools/Jeff1.jpg','http://www.wreckd.net/McCools/Band2.jpg','http://www.wreckd.net/McCools/Tony1.jpg','http://www.wreckd.net/McCools/Mike.jpg','http://www.wreckd.net/McCools/Jeff2.jpg','http://www.wreckd.net/McCools/Dave2.jpg','http://www.wreckd.net/McCools/Band3.jpg','http://www.wreckd.net/McCools/Mike2,jpg','http://www.wreckd.net/McCools/Tony2.jpg','http://www.wreckd.net/McCools/Band4.jpg');

dokkendude
01-13-2005, 11:08 PM
OMG damn can't believe the little stuff you miss that messes the whole thing up
Thank you very much