...

View Full Version : HELP...I screwed up my script!



Rockrz
01-04-2004, 03:57 PM
...ok, all I did on the page where my drop down script was is change the logo from .jpeg to .gif and save it. I don't think my html editor changed anything, and I know I didn't change anything with the script, yet it won't work on my site now.

To see this drop down menu live, go to: http://www.austinsings.com/home.html

Here's the script code...any help fixing this would be greatly appreciated.
(I promise to back this code up in several different places once I get it fixed)



this is in the header
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function doSel(obj)

{

for (i = 1; i < obj.length; i++)

if (obj[i].selected == true)

eval(obj[i].value);

}



// End -->

</script>



this is in the body

<form name="jsMenu">
<select name="jsSelList" size="1" onchange="doSel(this)" style="COLOR: black; BACKGROUND-COLOR: yellow">
<option selected value="">---------SELECT A PAGE---------</option>
<option value="top.main.location.href='music.html'">Karaoke Music Store</option>
<option value="top.main.location.href='karaokestore.html'">Karaoke Accessories Store</option>
<option>-----------------------------</option>
<option value="top.main.location.href='sitesponsors.html'">Meet Our Sponsors</option>
<option value="top.main.location.href='latestnews.html'">GET THE LATEST NEWS!!!</option>
<option value="top.main.location.href='emaillist.html'">Join our E-Mail List</option>
<option>-----------------------------</option>
<option value="top.main.location.href='whatiskaraoke.html'">What Is Karaoke?</option>
<option value="top.main.location.href='10commandments.html'">Karaoke 10 Commandments</option>
<option>-----------------------------</option> <OPTION value="top.main.location.href='referrals.html'">Karaoke Show
Referrals</OPTION><OPTION value="top.main.location.href='http://www.austinsings.com/talkboard/'">Talkboard</OPTION>
<OPTION value="top.main.location.href='sponsor.html'">Become A Sponsor</OPTION>
<OPTION value="top.main.location.href='hotlinks.html'">HOT Local
Links</OPTION> <OPTION value="top.main.location.href='othercities.html'">Other Cities</OPTION>
<OPTION value="top.main.location.href='webrings.html'">WebRings</OPTION>
<OPTION value="top.main.location.href='sitesponsors.html'">MEET AUSTIN's
KJs</OPTION> <OPTION value="top.main.location.href='sitesearch.html'">SEARCH
AustinSings.com</OPTION> <OPTION value="top.main.location.href='main.html'">- - - - - H O M E P A G E - -
- -</OPTION></select>

Gordo
01-04-2004, 10:58 PM
<! drop down script starts here>
is this line valid?

Using N4.7, it keeps telling me "deSol is not defined" in your http://www.austinsings.com/header.html page.

Past that, I'm not sure where to go with it. JavaScript is not my forte.

Rockrz
01-05-2004, 12:24 AM
<! drop down script starts here>
This is just a placeholder that browsers ignore. I've got this all over all my sites as notes within my code to help me keep things straight. I doesn't affect anything.


Here's the entire code for my header page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<HTML>
<HEAD>
<TITLE>header</TITLE>
<META NAME="resource-type" CONTENT="document">
<META HTTP-EQUIV="distribution" CONTENT="Global">
<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="author" CONTENT="AustinSings.com">
<META HTTP-EQUIV="description" CONTENT="header">
<style>
<!--
a:link { color: #FFFF00; text-decoration: none; }
a:active { color: #FFFF00; text-decoration: none; }
a:visited { color: #FFFF00; text-decoration: none; }
a:hover { color: #000000; text-decoration: none; }
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function doSel(obj) {
for (i = 1; i < obj.length; i++)
if (obj[i].selected == true)
eval(obj[i].value);
}
// End -->
</script>


</HEAD>
<BODY BACKGROUND="background/bg-stars-sm.gif" bgproperties="fixed" BGCOLOR="#000000" TEXT="#ffff33" LINK="#ffff33" ALINK="#ffff33" VLINK="#ffff33" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin=0 bottommargin=0>
<STYLE>
BODY{
scrollbar-track-color:black;
scrollbar-arrow-color:red;
scrollbar-3dlight-color:yellow;
scrollbar-face-color:black;
scrollbar-darkshadow-color:red;
}
</STYLE>
<TABLE width="85%" height="30" align="center" border="0" CELLPADDING="0" CELLSPACING="0">
<TR><TD>
<P align="center">
<IMG height=2 src="Graphics/clear_pixel.gif" width=13 border=0><IMG height=47 alt=" AustinSings.com - THE Central Texas Karaoke Connection " src="Graphics/as-logo_header.gif" width=300 border=0></P></TD>
<TD><P align="left">
<! drop down script starts here>
<form name="jsMenu">
<select name="jsSelList" size="1" onchange="doSel(this)" style="COLOR: black; BACKGROUND-COLOR: yellow">
<option selected value="">---------SELECT A PAGE---------</option>
<option value="top.main.location.href='music.html'">Karaoke Music Store</option>
<option value="top.main.location.href='karaokestore.html'">Karaoke Accessories Store</option>
<option>-----------------------------</option>
<option value="top.main.location.href='sitesponsors.html'">Meet Our Sponsors</option>
<option value="top.main.location.href='latestnews.html'">GET THE LATEST NEWS!!!</option>
<option value="top.main.location.href='emaillist.html'">Join our E-Mail List</option>
<option>-----------------------------</option>
<option value="top.main.location.href='whatiskaraoke.html'">What Is Karaoke?</option>
<option value="top.main.location.href='10commandments.html'">Karaoke 10 Commandments</option>
<option>-----------------------------</option> <OPTION value="top.main.location.href='referrals.html'">Karaoke Show
Referrals</OPTION><OPTION value="top.main.location.href='http://www.austinsings.com/talkboard/'">Talkboard</OPTION>
<OPTION value="top.main.location.href='sponsor.html'">Become A Sponsor</OPTION>
<OPTION value="top.main.location.href='hotlinks.html'">HOT Local
Links</OPTION> <OPTION value="top.main.location.href='othercities.html'">Other Cities</OPTION>
<OPTION value="top.main.location.href='webrings.html'">WebRings</OPTION>
<OPTION value="top.main.location.href='sitesponsors.html'">MEET AUSTIN's
KJs</OPTION> <OPTION value="top.main.location.href='sitesearch.html'">SEARCH
AustinSings.com</OPTION> <OPTION value="top.main.location.href='main.html'">- - - - - H O M E P A G E - -
- -</OPTION></select>
<! drop down script ends here>
<BR>&nbsp;
<font size="1" ></font><EM><FONT face="Arial" color="#ffffff" size="2"><STRONG>&nbsp;Click A Link To Go There</STRONG></FONT></EM>&nbsp;<A title="Click Here for drop-down menu instructions" href="help.html" target=main><FONT><FONT style="BACKGROUND-COLOR: yellow" face="Arial" color="black" size="1"><STRONG>HELP</A></STRONG></FONT></FONT></form></P></TD></TR></TABLE>
<TABLE bgcolor="#000000" BORDER="0" ALIGN="center" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Sunday Shows" href="sundayandmonday.html" target=main><font face="arial" size="2"><b>Sunday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Monday Shows" href="sundayandmonday.html#mon" target=main><font face="arial" size="2"><b>Monday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Tuesday Shows" href="tuesday.html" target=main><font face="arial" size="2"><b>Tuesday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button.jpg" width="88" height="23"><center><A title="Wednesday Shows" href="wednesday.html" target=main><font face="arial" size="2"><b>Wednesday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Thursday Shows" href="thursday.html" target=main><font face="arial" size="2"><b>Thursday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Friday Shows" href="friday.html" target=main><font face="arial" size="2"><b>Friday</A></B></center></FONT></TD>
<TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Saturday Shows" href="saturday.html" target=main><font face="arial" size="2"><b>Saturday</A></B></center></FONT></TD>
</TR>
</TABLE>
<BR>
<BR>
<TABLE bgcolor="#000000" BORDER="0" ALIGN="center" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD width="80" height="25"><A target=main href="sundayandmonday.html"><IMG alt="Sunday Shows" src="Graphics/b-sunday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="sundayandmonday.html#mon"><IMG alt="Monday Shows" src="Graphics/b-monday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="tuesday.html"><IMG alt="Tuesday Shows" src="Graphics/b-tuesday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="wednesday.html"><IMG alt="Wednesday Shows" src="Graphics/b-wednesday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="thursday.html"><IMG alt="Thursday Shows" src="Graphics/b-thursday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="friday.html"><IMG alt="Friday Shows" src="Graphics/b-friday.gif" border=0></A></TD>
<TD width="80" height="25"><A target=main href="saturday.html"><IMG alt="Saturday Shows" src="Graphics/b-saturday.gif" border=0></A></TD>
</TR>
</TABLE>
<CENTER></CENTER></BODY></HTML>

Willy Duitt
01-05-2004, 02:35 AM
Gheeesh;

I told you here (http://www.htmlforums.com/showthread.php?s=&threadid=33233) that your function is being commented out due to your entire page codes being compressed into one long string.

You haven't even attempted to impliment my suggestion!

.....Willy

Edit: For anyone wanting to help, here (http://www.austinsings.com/header.html) is the frame page in question, and anyone following the other link, needs to horizontaly scroll to find the posts in the other thread.

Rockrz
01-05-2004, 02:59 AM
Apparently you haven't gone to my new code that I uploaded earlier to see that I in fact DID try your fix...

Problem is, your fix is no good...
Your fix is STILL on my page and it's STILL not working!

Willy Duitt
01-05-2004, 03:17 AM
If you fixed it. It is still one long string which places your function
on the same line as the comment and therefore is commented
out. Actually, all of your codes are on one line. :rolleyes:

At the risk of horrendously horizontal scrolling this thread.
Below you will find the page codes I just copied from your page.
Note: Everything is on one line!


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><META content="MSHTML 5.50.4611.1300" name=GENERATOR><HTML><HEAD><TITLE>header</TITLE><META NAME="resource-type" CONTENT="document"><META HTTP-EQUIV="distribution" CONTENT="Global"><META HTTP-EQUIV="expires" CONTENT="0"><META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"><META HTTP-EQUIV="author" CONTENT="AustinSings.com"><META HTTP-EQUIV="description" CONTENT="header"><style><!--a:link { color: #FFFF00; text-decoration: none; }a:active { color: #FFFF00; text-decoration: none; }a:visited { color: #FFFF00; text-decoration: none; }a:hover { color: #000000; text-decoration: none; }--></style><SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction doSel(obj) {for (i = 1; i < obj.length; i++)if (obj[i].selected == true)eval(obj[i].value);}// End --></script></HEAD><BODY BACKGROUND="background/bg-stars-sm.gif" bgproperties="fixed" BGCOLOR="#000000" TEXT="#ffff33" LINK="#ffff33" ALINK="#ffff33" VLINK="#ffff33" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin=0 bottommargin=0><STYLE>BODY{scrollbar-track-color:black;scrollbar-arrow-color:red;scrollbar-3dlight-color:yellow;scrollbar-face-color:black;scrollbar-darkshadow-color:red;}</STYLE><TABLE width="85%" height="30" align="center" border="0" CELLPADDING="0" CELLSPACING="0"> <TR><TD> <P align="center"> <IMG height=2 src="Graphics/clear_pixel.gif" width=13 border=0><IMG height=47 alt=" AustinSings.com - THE Central Texas Karaoke Connection " src="Graphics/as-logo_header.gif" width=300 border=0></P></TD> <TD><P align="left"><! drop down script starts here><form name="jsMenu"><select name="jsSelList" size="1" onchange="doSel(this)" style="COLOR: black; BACKGROUND-COLOR: yellow"><option selected value="">---------SELECT A PAGE---------</option><option value="top.main.location.href='music.html'">Karaoke Music Store</option><option value="top.main.location.href='karaokestore.html'">Karaoke Accessories Store</option><option>-----------------------------</option><option value="top.main.location.href='sitesponsors.html'">Meet Our Sponsors</option><option value="top.main.location.href='latestnews.html'">GET THE LATEST NEWS!!!</option><option value="top.main.location.href='emaillist.html'">Join our E-Mail List</option><option>-----------------------------</option><option value="top.main.location.href='whatiskaraoke.html'">What Is Karaoke?</option><option value="top.main.location.href='10commandments.html'">Karaoke 10 Commandments</option><option>-----------------------------</option> <OPTION value="top.main.location.href='referrals.html'">Karaoke Show Referrals</OPTION><OPTION value="top.main.location.href='http://www.austinsings.com/talkboard/'">Talkboard</OPTION><OPTION value="top.main.location.href='sponsor.html'">Become A Sponsor</OPTION> <OPTION value="top.main.location.href='hotlinks.html'">HOT Local Links</OPTION> <OPTION value="top.main.location.href='othercities.html'">Other Cities</OPTION> <OPTION value="top.main.location.href='webrings.html'">WebRings</OPTION> <OPTION value="top.main.location.href='sitesponsors.html'">MEET AUSTIN's KJs</OPTION> <OPTION value="top.main.location.href='sitesearch.html'">SEARCH AustinSings.com</OPTION> <OPTION value="top.main.location.href='main.html'">- - - - - H O M E P A G E - - - -</OPTION></select><! drop down script ends here><BR>&nbsp;<font size="1" ></font><EM><FONT face="Arial" color="#ffffff" size="2"><STRONG>&nbsp;Click A Link To Go There</STRONG></FONT></EM>&nbsp;<A title="Click Here for drop-down menu instructions" href="help.html" target=main><FONT><FONT style="BACKGROUND-COLOR: yellow" face="Arial" color="black" size="1"><STRONG>HELP</A></STRONG></FONT></FONT></form></P></TD></TR></TABLE><TABLE bgcolor="#000000" BORDER="0" ALIGN="center" CELLPADDING="1" CELLSPACING="0"><TR> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Sunday Shows" href="sundayandmonday.html" target=main><font face="arial" size="2"><b>Sunday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Monday Shows" href="sundayandmonday.html#mon" target=main><font face="arial" size="2"><b>Monday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Tuesday Shows" href="tuesday.html" target=main><font face="arial" size="2"><b>Tuesday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button.jpg" width="88" height="23"><center><A title="Wednesday Shows" href="wednesday.html" target=main><font face="arial" size="2"><b>Wednesday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Thursday Shows" href="thursday.html" target=main><font face="arial" size="2"><b>Thursday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Friday Shows" href="friday.html" target=main><font face="arial" size="2"><b>Friday</A></B></center></FONT></TD> <TD BACKGROUND="Graphics/button2.jpg" width="84" height="23"><center><A title="Saturday Shows" href="saturday.html" target=main><font face="arial" size="2"><b>Saturday</A></B></center></FONT></TD></TR></TABLE></BODY></HTML>

.....Willy

Rockrz
01-05-2004, 03:50 AM
funny thing that it doesn't look that way when I view the code!
You must be on a Mac, or something. Must be a loose nut behind the mouse...

Don't bother dude. I'll find another code on one of these sites that has javascripts and I'll figure it out.

Willy Duitt
01-05-2004, 04:10 AM
I'm using a PC and my OS is XP

And when right clicking and viewing source your page codes do
all appear on one line. However, I just downloaded your page
and the codes are not on one line when opened as a text file.

But, your script is still mashed together and
the function is tight up against the comment:

EG:
<--Beginfunction doSel(obj)

Add a line break or space between Begin and function

EG:
<--Begin
function doSel(obj)

.....Willy



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum