Click to See Complete Forum and Search --> : Script Confusion


krismisz
01-08-2003, 04:06 PM
I was wondering if anyone might be able to help me. I found a script at the below address that I would love to use on my site. It's perfect, but I can't get it to work for me. I'm new at the whole Java thing and I don't know what to alter to have it work for my site. If anyone can give me any help in that area, I'd greatly appreciate it!

http://javascript.internet.com/navi...-navigator.html

That is where the script is located.

Thanks!
krismisz

ChikoritaPro
01-08-2003, 04:11 PM
Complete the URL of that location please, then I may be able to help. If it continues doing that, just give the parts of the URL. Thanks :)!

krismisz
01-08-2003, 04:54 PM
Sorry about that! Here it is:

http://javascript.internet.com/navigation/thumbnail-navigator.html

Thanks!
krismisz

ChikoritaPro
01-08-2003, 07:49 PM
Hmmm, the Slideshow seems perfectly fine to me.


<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Daniel Smith (xalres@earthlink.net) -->
<!-- Web Site: http://home.earthlink.net/~xalres -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
prev1 = new Image (32,18);
prev1.src = "prev1.jpg";
prev2 = new Image (32,18);
prev2.src = "prev2.jpg";

next1 = new Image (32,18);
next1.src = "next1.jpg";
next2 = new Image (32,18);
next2.src = "next2.jpg";

go1 = new Image (48,24);
go1.src = "go1.jpg";
go2 = new Image (48,24);
go2.src = "go2.jpg";

maxPic = 5;

p1 = new Image (144,96);
p1.src = "1-thumb.jpg";
link1 = "1-full.jpg";

p2 = new Image (144,96);
p2.src = "2-thumb.jpg";
link2 = "2-full.jpg";

p3 = new Image (144,96);
p3.src = "3-thumb.jpg";
link3 = "3-full.jpg";

p4 = new Image (144,96);
p4.src = "4-thumb.jpg";
link4 = "4-full.jpg";

p5 = new Image (144,96);
p5.src = "5-thumb.jpg";
link5 = "5-full.jpg";

count = 1;
function next() {
count++;
if (count > maxPic) {
count = 1;
}
eval("document.p.src=p" + count + ".src");
}
function back() {
count--;
if (count == 0) {
count = maxPic;
}
eval("document.p.src=p" + count + ".src");
}
function link() {
location.href=eval("link" + count);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<table bgcolor="#003366" border=0>
<tr>
<td align=center width=300>
<font color=white face="Arial, Helvetica" size="+1">Thumbnail Navigator</font>
<br><br>
<img name=p src="1-thumb.jpg" border=0 width=144 height=96>
<br>
<table border=0>
<tr>
<td><a href="javascript:back()" onmouseover="prev.src=prev2.src" onmouseout="prev.src=prev1.src"><img src="prev1.jpg" width="32" height="18" border="0" name="prev"></td>
<td><a href="javascript:link()" onmouseover="go.src=go2.src" onmouseout="go.src=go1.src"><img src="go1.jpg" width="48" height="24" border="0" name="go"></td>
<td><a href="javascript:next()" onmouseover="next.src=next2.src" onmouseout="next.src=next1.src"><img src="next1.jpg" width="32" height="18" border="0" name="next"></td>
</tr>
</table>
<br>
<font color="#A3ACC9" size="2" face="Arial">
Browse to a picture you like and click "GO".</font>
</td>
</tr>
</table>
</center>


Just be sure to change only the name of the file, without changing the quotation marks at all. Also, when you test it, be sure that you load EVERYTHING before you try it. If it still doesn't work, give me your webpage with the script, or the script itself, and I'll see if I can see what's going on.

krismisz
01-08-2003, 08:05 PM
Thanks so much! I have one last question for you though. Which file names do I change and where? It would help if you cold bold it for me, if you don't mind. I hate to be a pain in the butt, and I really appreciate your help!

Thanks!
krismisz