JavaScript error.

wxdqz

New Member
Could one of you graceful master debug this for me please.
cuz am begining to see double form the screen.
I am having problem that I can't get the text to appear when click on a pict.
neither will the pict appear now.
it used to do fine til I modified it and now it is a mess.



<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">

<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>SDK_Wes_Pict_Page_01</title>
<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- head Java Filmstrip begin -- loader -->

<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

var arMsg;
arMsg = new Array(20);
arMsg[ 0] = 'Rod, Geri, Melissa & Wes In Utal Skiing.';
arMsg[ 1] = 'Rod & Geri --> Wes's Parents';
arMsg[ 2] = 'Wes & Melissa In Utal.';
arMsg[ 3] = 'Wes & Melissa On The Tree In Front Of Wes's House K I S S I N G (there's suppose to be a dog there, but I ate him).';
arMsg[ 4] = 'Wes & Melissa New Year Pict.';
arMsg[ 5] = 'Wes & Melissa On Wes's Birthday.';
arMsg[ 6] = 'Tyler, Geri, Wes, Melissa, Wes Other Brother, and Tyler's GF.';
arMsg[ 7] = 'These People Has An Aptitute For Drinking.';
arMsg[ 8] = 'Wes, Tyler, Melissa.';
arMsg[ 9] = 'Wes's Other Brother, Wes(in the back), Geri, Tyler & Rod (on the floor)';
arMsg[10] = 'This is picture 4';
arMsg[11] = 'This is picture 4';
arMsg[12] = 'This is picture 4';
arMsg[13] = 'This is picture 4';
arMsg[14] = 'This is picture 4';
arMsg[15] = 'This is picture 4';
arMsg[16] = 'This is picture 4';
arMsg[17] = 'This is picture 4';
arMsg[18] = 'This is picture 4';
arMsg[19] = 'This is picture 4';

function doPic(imgName)
{
if (ns3up || ie4up)
{
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}
}
// End -->
</script>

<!-- head Java Filmstrip ends -->


</HEAD>

</head>


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

<SCRIPT LANGUAGE="JavaScript">
<!--Written by SDK-->
<!--Take my codes wid out asking will result in your death-->

<!-- Begin
/*
status bar
*/

//set message:
msg = "Welcome to Wesley Walz's Picture Page on SDK's Site";

timeID = 10;
stcnt = 16;
wmsg = new Array(33);
wmsg[0]=msg;
blnk = " ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
wmsg="";
for (j=0; j<msg.length; j++) wmsg=wmsg+msg.charAt(j)+b;
}
function wiper()
{
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
status = str;
clearTimeout(timeID);
timeID = setTimeout("wiper()",100);
}

wiper()
// -->
// End -->

</script>
<p>
<!-- Script Size: 1.28 KB -->

<center>
<!-- ********* MASTER TABLE *************** -->
<table border="0" width="1268" height="1024">
<tr>
<td background="../My%20Documents/My%20Pictures/New%20Folder%20(3)/WGW/WGWPictPage01.jpg" height="1024" valign="bottom" width="4">

<!-- ********* SINGLE CELL WITH BACKGROUND *************** -->

<BODY>
<table width="1268" border=0 cellspacing=0 cellpadding=0>
<!--Top Row of Picts-->
<tr>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWFam.JPG'); javascript:ShowText(19);"><img src="WGWFam_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWParents.JPG'); javascript:ShowText(18);"><img src="WGWParents_small.JPG" width=123 height=122 border=00></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW%20&%20MJ%2001.JPG'); javascript:ShowText(17);"><img src="WGW%20&%20MJ%2001_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW & MJ 02.JPG'); javascript:ShowText(16);"><img src="WGW & MJ 02_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW%20&%20MJ%20NYr.JPG'); javascript:ShowText(15);"><img src="WGW%20&%20MJ%20NYr_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW&MJ.JPG'); javascript:ShowText(14);"><img src="WGW&MJ_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpKit02.JPG'); javascript:ShowText(13);"><img src="WGWBDGrpKit02_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpDrk.JPG'); javascript:ShowText(12);"><img src="WGWBDGrpDrk_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpKit01.JPG'); javascript:ShowText(11);"><img src="WGWBDGrpKit01_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="143" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWJstFam.JPG'); javascript:ShowText(10);"><img src="WGWJstFam_small.JPG" width=123 height=122 border=0></a></td>
</center>
</tr>
<tr>
<!-- The fullsize pict -->
<td colspan=10 rowspan=1 align=center width="1268" height="478">
<img name="mainpic" src="p1.jpg" width=1268 height=509 border=0></td>
</tr>
<!-- Bottom Row of Picts-->
<tr>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWFam.JPG'); javascript:ShowText(0);"><img src="WGWFam_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWParents.JPG'); javascript:ShowText(1);"><img src="WGWParents_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW%20&%20MJ%2001.JPG'); javascript:ShowText(2);"><img src="WGW%20&%20MJ%2001_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW & MJ 02.JPG'); javascript:ShowText(3);"><img src="WGW & MJ 02_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW%20&%20MJ%20NYr.JPG'); javascript:ShowText(4);"><img src="WGW%20&%20MJ%20NYr_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGW&MJ.JPG'); javascript:ShowText(5);"><img src="WGW&MJ_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpKit02.JPG'); javascript:ShowText(6);"><img src="WGWBDGrpKit02_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpDrk.JPG'); javascript:ShowText(7);"><img src="WGWBDGrpDrk_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWBDGrpKit01.JPG'); javascript:ShowText(8);"><img src="WGWBDGrpKit01_small.JPG" width=123 height=122 border=0></a></td>
</center>
<td width="131" height="49">
<center>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:doPic('../My Documents/Wes Clear/WGWJstFam.JPG'); javascript:ShowText(9);"><img src=http://www.webdeveloper.com/forum/archive/index.php/"WGWJstFam_small.JPG" width=123 height=122 border=0></a></td>
</center>
</tr>
</table>
<div ID=test>&nbsp;<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</div>



</center></td>
</tr>
</table> <!-- ********* END MASTER TABLE *************** -->
</center>
</BODY>
</html>
<script language="javascript">

function ShowText(PictCapts)
{
test.innerText = arMsg[PictCapts];
}

</script>
 
Back
Top