Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / January 2005



Tip: Looking for answers? Try searching our database.

Having problem, I can see the cause - Help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David. E. Goble - 31 Jan 2005 12:43 GMT
Hi all; I have the following files;  index.html, sigsheader.js,
sigsboby.js, smilesbody.js and smiles.js. The sourse is below.

The page displays two manual slide shows... Each slideshow has a set
of buttons. the top slideshow (the smiles work fine. How ever the sigs
slideshow displays the pictures in the smiles section.

*************** index.html *****************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <title>Bow's and foggy's stored grahics</title>
<SCRIPT src="smilesheader.js"></SCRIPT>
<SCRIPT src="sigsheader.js"></SCRIPT>
</head>
<body
background="http://home.insightbb.com/clipart/backgrounds/bkgnd019.gif"
bgcolor="#ffffff" link="#0000ff" text="#000000" vlink="#ff0000">
<center>
<h1>Bow's and foggy's stored grahics</h1>
<h2 style="color: rgb(255, 0, 0);" color="red">Team Special
Forces</h2>
<table>
<tr>
<tb>

</tb>
<tb>
<SCRIPT src="smilesbody.js"></SCRIPT>
</tb>
</tr>
<tr>
<tb>
<SCRIPT src="sigsbody.js"></SCRIPT>
</tb>
</tr>
</table>
</center>
</body>
</html>

******************* smilesheader.js *******************************
document.writeln("<script type=\"text/javascript\">");
document.writeln("");
document.writeln("smilesImages=new Array()");
document.writeln("smilesImages[0]=\"smiles/007.gif\"");
document.writeln("smilesImages[1]=\"smiles/1luvu.gif\"");
document.writeln("smilesImages[2]=\"smiles/1zhelp.gif\"");
document.writeln("smilesImages[3]=\"smiles/22_yikes.gif\"");
document.writeln("smilesImages[4]=\"smiles/2evil.gif\"");
document.writeln("smilesImages[5]=\"smiles/test.jpg\"");
document.writeln("smilesImages[6]=\"smiles/2twocents.gif\"");
document.writeln("smilesImages[7]=\"smiles/321.gif\"");
document.writeln("smilesImages[8]=\"smiles/ak47.gif\"");
document.writeln("smilesImages[9]=\"smiles/ald.gif\"");
document.writeln("smilesImages[10]=\"smiles/alien.gif\"");
document.writeln("smilesImages[11]=\"smiles/angry.gif\"");
document.writeln("smilesImages[12]=\"smiles/arsch.gif\"");
document.writeln("smilesImages[13]=\"smiles/asdf.gif\"");
document.writeln("smilesImages[14]=\"smiles/aufreg.gif\"");
document.writeln("smilesImages[15]=\"smiles/aus.gif\"");
document.writeln("smilesImages[16]=\"smiles/axt.gif\"");
document.writeln("smilesImages[17]=\"smiles/a_plain.gif\"");
document.writeln("smilesImages[18]=\"smiles/bad.gif\"");
document.writeln("smilesImages[19]=\"smiles/badassleft.gif\"");
document.writeln("smilesImages[20]=\"smiles/badassright.gif\"");
document.writeln("smilesImages[21]=\"smiles/badsmile.gif\"");
document.writeln("smilesImages[22]=\"smiles/bananasmile.gif\"");
document.writeln("smilesImages[23]=\"smiles/bananawalk.gif\"");
document.writeln("smilesImages[24]=\"smiles/batman.gif\"");
document.writeln("smilesImages[25]=\"smiles/bazooka.gif\"");
document.writeln("smilesImages[26]=\"smiles/behead.gif\"");
document.writeln("smilesImages[27]=\"smiles/bekloppt.gif\"");
document.writeln("smilesImages[28]=\"smiles/bier.gif\"");
document.writeln("smilesImages[29]=\"smiles/bigthumb.gif\"");
document.writeln("smilesImages[30]=\"smiles/bigun2.gif\"");
document.writeln("smilesImages[31]=\"smiles/birthday.gif\"");
document.writeln("smilesImages[32]=\"smiles/blaah.gif\"");
document.writeln("smilesImages[33]=\"smiles/blbl.gif\"");
document.writeln("smilesImages[34]=\"smiles/blover.gif\"");
document.writeln("smilesImages[35]=\"smiles/bong.gif\"");
document.writeln("smilesImages[36]=\"smiles/bounce.gif\"");
document.writeln("smilesImages[37]=\"smiles/bricks1.gif\"");
document.writeln("smilesImages[38]=\"smiles/bs.gif\"");
document.writeln("smilesImages[39]=\"smiles/bunny.gif\"");
document.writeln("smilesImages[40]=\"smiles/byewhore.gif\"");
document.writeln("smilesImages[41]=\"smiles/casanova.gif\"");
document.writeln("smilesImages[42]=\"smiles/charley.gif\"");
document.writeln("smilesImages[43]=\"smiles/cry.gif\"");
document.writeln("smilesImages[44]=\"smiles/cussing.gif\"");
document.writeln("smilesImages[45]=\"smiles/drink.gif\"");
document.writeln("smilesImages[46]=\"smiles/dunno.gif\"");
document.writeln("smilesImages[47]=\"smiles/eek3.gif\"");
document.writeln("smilesImages[48]=\"smiles/eek7.gif\"");
document.writeln("smilesImages[49]=\"smiles/enforcer.gif\"");
document.writeln("smilesImages[50]=\"smiles/engel.gif\"");
document.writeln("smilesImages[51]=\"smiles/freak3.gif\"");
document.writeln("smilesImages[52]=\"smiles/girl.gif\"");
document.writeln("smilesImages[53]=\"smiles/grasseater.gif\"");
document.writeln("smilesImages[54]=\"smiles/grenade.gif\"");
document.writeln("smilesImages[55]=\"smiles/hammer.gif\"");
document.writeln("smilesImages[56]=\"smiles/headshake2.gif\"");
document.writeln("smilesImages[57]=\"smiles/laser_shot_jump.gif\"");
document.writeln("smilesImages[58]=\"smiles/microwave.gif\"");
document.writeln("smilesImages[59]=\"smiles/newbie.gif\"");
document.writeln("smilesImages[60]=\"smiles/nono.gif\"");
document.writeln("smilesImages[61]=\"smiles/nuts.gif\"");
document.writeln("smilesImages[62]=\"smiles/partyman.gif\"");
document.writeln("smilesImages[63]=\"smiles/remybussi.gif\"");
document.writeln("smilesImages[64]=\"smiles/robot2.gif\"");
document.writeln("smilesImages[65]=\"smiles/samurai.gif\"");
document.writeln("smilesImages[66]=\"smiles/scratch.gif\"");
document.writeln("smilesImages[67]=\"smiles/screwy.gif\"");
document.writeln("smilesImages[68]=\"smiles/sheep.gif\"");
document.writeln("smilesImages[69]=\"smiles/shoot.gif\"");
document.writeln("smilesImages[70]=\"smiles/silly.gif\"");
document.writeln("smilesImages[71]=\"smiles/sleeping.gif\"");
document.writeln("smilesImages[72]=\"smiles/southpark.gif\"");
document.writeln("smilesImages[73]=\"smiles/spam4.gif\"");
document.writeln("smilesImages[74]=\"smiles/sword.gif\"");
document.writeln("smilesImages[75]=\"smiles/taz.gif\"");
document.writeln("smilesImages[76]=\"smiles/twak.gif\"");
document.writeln("");
document.writeln("");
document.writeln("smilescounter=smilesImages.length-1");
document.writeln("smilesi=0");
document.writeln("");
document.writeln("");
document.writeln("function smilesfirst()");
document.writeln("{");
document.writeln("");
document.writeln("document.getElementById(\'imageviewer\').src=smilesImages[0]");
document.writeln("smilesi=0");
document.writeln("}");
document.writeln("");
document.writeln("function smilesprevious()");
document.writeln("{");
document.writeln("if (smilesi>0)");
document.writeln("    {");
document.writeln("    smilesi--");
document.writeln("
document.getElementById(\'imageviewer\').src=smilesImages[smilesi]");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("function smilesnext()");
document.writeln("{");
document.writeln("if (smilesi<smilescounter)");
document.writeln("    {");
document.writeln("    smilesi++");
document.writeln("
document.getElementById(\'imageviewer\').src=smilesImages[smilesi]");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("function smileslast()");
document.writeln("{");
document.writeln("document.getElementById(\'imageviewer\').src=smilesImages[smilescounter]");
document.writeln("}");
document.writeln("<\/script>");

******************** sigsheader.js **************************
document.writeln("<script type=\"text/javascript\">");
document.writeln("");
document.writeln("sigsImages=new Array()");
document.writeln("");
document.writeln("sigsImages[0]=\"sigs/finished1.jpg\"");
document.writeln("sigsImages[1]=\"sigs/foghorn.jpg\"");
document.writeln("sigsImages[2]=\"sigs/motto.jpg\"");
document.writeln("sigsImages[3]=\"sigs/sig.jpg\"");
document.writeln("sigsImages[4]=\"sigs/SWAT.jpg\"");
document.writeln("");
document.writeln("sigscounter=sigsImages.length-1");
document.writeln("sigsi=0");
document.writeln("");
document.writeln("");
document.writeln("function sigsfirst()");
document.writeln("{");
document.writeln("");
document.writeln("document.getElementById(\'imageviewer\').src=sigsImages[0]");
document.writeln("sigsi=0");
document.writeln("}");
document.writeln("");
document.writeln("function sigsprevious()");
document.writeln("{");
document.writeln("if (sigsi>0)");
document.writeln("    {");
document.writeln("    sigsi--");
document.writeln("
document.getElementById(\'imageviewer\').src=sigsImages[sigsi]");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("function sigsnext()");
document.writeln("{");
document.writeln("if (sigsi<sigscounter)");
document.writeln("    {");
document.writeln("    sigsi++");
document.writeln("
document.getElementById(\'imageviewer\').src=sigsImages[sigsi]");
document.writeln("    }");
document.writeln("}");
document.writeln("");
document.writeln("function sigslast()");
document.writeln("{");
document.writeln("document.getElementById(\'imageviewer\').src=sigsImages[sigscounter]");
document.writeln("}");
document.writeln("<\/script>");

**************** smilesbody.js *****************************
document.writeln("<center>");
document.writeln("<h1>smiles<\/h1>");
document.writeln("<form>");
document.writeln("<input value=\"First\" onclick=\"smilesfirst()\"
type=\"button\">");
document.writeln("<input value=\"Previous\"
onclick=\"smilesprevious()\" type=\"button\">");
document.writeln("<input value=\"Next\" onclick=\"smilesnext()\"
type=\"button\">");
document.writeln("<input value=\"Last\" onclick=\"smileslast()\"
type=\"button\">");
document.writeln("<\/form>");
document.writeln("<p><\/p>");
document.writeln("<table border=\"1\">");
document.writeln("<tr>");
document.writeln("<td align=\"center\">");
document.writeln("<img id=\"imageviewer\"
src=\"smiles/sword.gif\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<p><\/p>");
document.writeln("<form>");
document.writeln("<input value=\"First\" onclick=\"smilesfirst()\"
type=\"button\">");
document.writeln("<input value=\"Previous\"
onclick=\"smilesprevious()\" type=\"button\">");
document.writeln("<input value=\"Next\" onclick=\"smilesnext()\"
type=\"button\">");
document.writeln("<input value=\"Last\" onclick=\"smileslast()\"
type=\"button\">");
document.writeln("<\/form>");
document.writeln("<p><\/p>");
document.writeln("<p>If you have a smilely<\/p>");
document.writeln("<\/center>");

***************************** sigsbody.js ****************************
document.writeln("<center>");
document.writeln("<h1>signatures<\/h1>");
document.writeln("<form>");
document.writeln("<input value=\"First\" onclick=\"sigsfirst()\"
type=\"button\">");
document.writeln("<input value=\"Previous\" onclick=\"sigsprevious()\"
type=\"button\">");
document.writeln("<input value=\"Next\" onclick=\"sigsnext()\"
type=\"button\">");
document.writeln("<input value=\"Last\" onclick=\"sigslast()\"
type=\"button\">");
document.writeln("<\/form>");
document.writeln("<p><\/p>");
document.writeln("<table border=\"1\">");
document.writeln("<tr>");
document.writeln("<td align=\"center\">");
document.writeln("sigs must be within 400 X 150 pixels");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td align=\"center\">");
document.writeln("<img id=\"imageviewer\"
src=\"sigs/sig.jpg\"><\/td>");
document.writeln("<\/tr>");
document.writeln("<tr>");
document.writeln("<td align=\"center\">");
document.writeln("sigs must be within 400 X 150 pixels");
document.writeln("<\/td>");
document.writeln("<\/tr>");
document.writeln("<\/table>");
document.writeln("<p><\/p>");
document.writeln("<form>");
document.writeln("<input value=\"First\" onclick=\"sigsfirst()\"
type=\"button\">");
document.writeln("<input value=\"Previous\" onclick=\"sigsprevious()\"
type=\"button\">");
document.writeln("<input value=\"Next\" onclick=\"sigsnext()\"
type=\"button\">");
document.writeln("<input value=\"Last\" onclick=\"sigslast()\"
type=\"button\">");
document.writeln("<\/form>");
document.writeln("<p><\/p>");
document.writeln("<p>If you need a place to store your [SF]
sig<\/p>");
document.writeln("<\/center>");

Regards                          David. E. Goble
                          http://www.pnc.com.au/~degoble
            degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
David. E. Goble - 31 Jan 2005 13:23 GMT
>Hi all; I have the following files;  index.html, sigsheader.js,
>sigsboby.js, smilesbody.js and smiles.js. The sourse is below.
[quoted text clipped - 287 lines]
>sig<\/p>");
>document.writeln("<\/center>");

Regards                          David. E. Goble
                          http://www.pnc.com.au/~degoble
            degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.