PDA

View Full Version : Still having trouble =)


Pyron
01-08-2001, 01:41 PM
Im still trying to figure out why this is returning errors, is the ***tion defined correctly or inncorrectly or not at all? if so could anyone tell me as to what to use to define it? Thanks in advance for any help

This is still returning errors, have i not defined the aysound function correctly or at all? Thanks in advance for any more help on the matter
<SCRIPT>

//
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 3) version = "n3";
else if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) >= 4) version = "n3";
else version = "n2";
function Glyph(TurnImageOn, TurnImageOff, Name){
if (version == "n3"){
this.ImageOn = new Image(150, 25);
this.ImageOn.src = TurnImageOn;
this.ImageOff = new Image(150,25);
this.ImageOff.src = TurnImageOff;
this.Name = Name;
aySound[0]="swordfx.wav";

}
}

Glyph[1] = new Glyph("Icon1.jpg", "images/Icon1a.jpg", "button1");
Glyph[2] = new Glyph("Icon2.jpg", "images/Icon2a.jpg", "button2");
Glyph[3] = new Glyph("Icon3.jpg", "images/Icon3a.jpg", "button3");
Glyph[4] = new Glyph("Icon4.jpg", "images/Icon4a.jpg", "button4");
Glyph[5] = new Glyph("Icon5.jpg", "images/Icon5a.jpg", "button5");
Glyph[6] = new Glyph("Icon6.jpg", "images/Icon6a.jpg", "button6");
Glyph[7] = new Glyph("Icon7.jpg", "images/Icon7a.jpg", "button7");
Glyph[8] = new Glyph("Icon8.jpg", "images/Icon8a.jpg", "button8");
Glyph[9] = new Glyph("Icon9.jpg", "images/Icon9a.jpg", "button9");
function ChangeImage(Mode, Offset){
if (version=="n3") (Mode == 1) ? this.document[Glyph[Offset].Name].src=Glyph[Offset].ImageOn.src : this.document[Glyph[Offset].Name].src=Glyph[Offset].ImageOff.src;
}
</SCRIPT>
<BR>
<BR>
<A TARGET="main" HREF="http://24.160.235.135/body.htm" onMouseOver="playSound(10) ; ChangeImage(0, 1)" onMouseOut="StopSound(10) ; ChangeImage(1, 1)"><IMG SRC="Icon1.jpg" NAME="button1" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/links.htm" onMouseOver="ChangeImage(0, 2)" onMouseOut="ChangeImage(1, 2)"><IMG SRC="Icon2.jpg" NAME="button2" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/structure.htm" onMouseOver="ChangeImage(0, 3)" onMouseOut="ChangeImage(1, 3)"><IMG SRC="Icon3.jpg" NAME="button3" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/cgi-bin/survey/poll.html" onMouseOver="ChangeImage(0, 4)" onMouseOut="ChangeImage(1, 4)"><IMG SRC="Icon5.jpg" NAME="button4" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/blahblah.htm" onMouseOver="ChangeImage(0, 5)" onMouseOut="ChangeImage(1, 5)"><IMG SRC="Icon5.jpg" NAME="button5" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/rooster.html" onMouseOver="ChangeImage(0, 6)" onMouseOut="ChangeImage(1, 6)"><IMG SRC="Icon6.jpg" NAME="button6" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/cgi-bin/calendar/calendar.pl" onMouseOver="ChangeImage(0, 7)" onMouseOut="ChangeImage(1, 7)"><IMG SRC="Icon7.jpg" NAME="button7" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://216.227.28.173/cgi-bin/ikonboard/ikonboard.cgi " onMouseOver="ChangeImage(0, 8)" onMouseOut="ChangeImage(1, 8)"><IMG SRC="Icon8.jpg" NAME="button8" BORDER=0 width="60" height="51"></A><BR>
<A TARGET="main" HREF="http://24.160.235.135/arena.html" onMouseOver="ChangeImage(0, 9)" onMouseOut="ChangeImage(1, 9)"><IMG SRC="Icon9.jpg" NAME="button9" BORDER=0 width="60" height="51"></A><BR>

</BODY>
</HTML>

Ian
01-08-2001, 05:32 PM
can you please tell us what sort of errors you are getting, or better still send us your url where we can view it and see whats wrong for ourselves.
Thanks

------------------
Ian

Web Development - BIG Resources Inc
Head Guide - 123Webmaster.com (http://www.123webmaster.com/)
ian@123webmaster.com
BIG Resources.com (http://www.bigresources.com)
ICQ: 25828668

Pyron
01-08-2001, 06:17 PM
Sure thing, here is a link

Http://24.160.235.135/troubleshooting.txt