yellowboy
02-25-2003, 03:59 PM
any reason why a script would work on my comp in the browser but then not once uploaded?
|
Click to See Complete Forum and Search --> : scripts upload yellowboy 02-25-2003, 03:59 PM any reason why a script would work on my comp in the browser but then not once uploaded? Jona 02-25-2003, 04:27 PM Depends on what it is. Where is the script? yellowboy 02-25-2003, 05:04 PM <html> <head> <script language="javascript"> var delay = 3000; var lock = false; var run; var num = 1; var picy = 61; var img = new Array(); for(pict=1; pict<=25; pict=pict+1) {img[pict] = new Image(); img[pict].src = "000_00" + picy + ".jpg" ; picy = picy + 1; } function slideshowUp() { num = num + 1; if (num == 26) num = 1; document.mypic.src = img[num].src; } function slideshowBack() { num = num - 1; if (num == 0) num = 25; document.mypic.src = img[num].src; } function auto() { if (lock == true) { lock = false; window.clearInterval(run); } else if (lock == false) { lock = true; run = setInterval("slideshowUp()", delay); } } </script> <STYLE> <!-- A{text-decoration:none} --> </STYLE> </head> <body BGcolor="#600000" link="#FFFF00" Vlink="#FFFF00" text="#FFFF00"> <table><tr><td rowspan=3><a href="../indexweb2.html" border="none" target="_top"><img src="../back.gif" height=118 width=151 border="none"></a></td></tr> <tr><td></td></tr> <tr><td width=50></td><td><a href="../pictures.html">PICTURES</a></td><td width=50></td><td><a href="../pets.html">PETS</a></td><td width=50></td><td><a href="../linx.html">LyNX</a></td></tr> <tr><td></td></tr> <tr><td></td></tr> </table> <p> </p> <table align="center" cellpadding=0 cellspacing=0><tr><td colspan=3 bgcolor="#0080FF" height=5></td></tr><tr><td rowspan=2 bgcolor="#0080FF" width=5></td><td><IMG SRC="000_0061.jpg" NAME="mypic" BORDER=0 height=300 width=400 align="center"></td><td rowspan=3 bgcolor="#FF0000" width=5></td></tr><tr><td colspan=2 bgcolor="#FF0000" height=5></td></tr></table> <table align="center" bgcolor="#0080FF" cellpadding=0 cellspacing=0><tr><td><img src="roundl.gif" border="none"></td><td width=20></td><td><A HREF="JavaScript:slideshowBack()"><img src="left.gif" border="none"></A></td><td width=150></td><td><A HREF="JavaScript:auto()"><img src="play.gif" border="none"></A></td><td width=150></td><td><A HREF="JavaScript:slideshowUp()"><img src="right.gif" border="none"></A></td><td width=20></td><td><img src="roundr.gif" border="none"></td></tr></table> </body> </html> that works and the address is http://www-unix.oit.umass.edu/~kjdavis/webpage/aquarium/slideshow.html where it doesnt work pyro 02-25-2003, 05:11 PM Check to make sure you have all your images uploaded, because your script _was_ looking for the next image (000_0062.jpg), just not finding it... yellowboy 02-25-2003, 07:06 PM they are all there...i can view them just not through the slide show pyro 02-25-2003, 07:12 PM try re-uploading your image, because http://www-unix.oit.umass.edu/~kjdavis/webpage/aquarium/000_0062.jpg does not exist! voorheesj 02-25-2003, 07:18 PM you have some of the extensions capitalized, and some lowercased, your script is referencing them in lowercase form so it doesn't see them its looking for http://www-unix.oit.umass.edu/~kjdavis/webpage/aquarium/000_0062.jpg you have http://www-unix.oit.umass.edu/~kjdavis/webpage/aquarium/000_0062.JPG AdamBrill 02-25-2003, 07:52 PM You should resize the images to be the size that you want them to be before you upload them. You have them uploaded at 2080x1544, but you only display them at about 400x300. This makes the download time for the user MUCH longer. Your original file is 559kb... I got it down to under 5kb without losing any quality. Your users will like your site a lot more if they don't have to wait forever for it to load! :) voorheesj 02-25-2003, 09:32 PM looks good...but i do agree about the file size webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |