Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Here I am, is Where I'm at!
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    HELP...I screwed up my script!

    ...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>
    Adopt a siggy!
    Your Message Here....

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    TEXAS . . . 'nuf said
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <! 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.
    Gordo
    "In the End, we will remember not the words of our enemies, but the silence of our friends."
    - Martin Luther King Jr. (1929-1968)

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    Here I am, is Where I'm at!
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <! 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>
    Last edited by Rockrz; 01-05-2004 at 03:01 AM.
    Adopt a siggy!
    Your Message Here....

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Gheeesh;

    I told you here 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 is the frame page in question, and anyone following the other link, needs to horizontaly scroll to find the posts in the other thread.
    Last edited by Willy Duitt; 01-05-2004 at 02:42 AM.

  • #5
    New Coder
    Join Date
    Aug 2002
    Location
    Here I am, is Where I'm at!
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!
    Adopt a siggy!
    Your Message Here....

  • #6
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    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!

    Code:
    <!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
    Last edited by Willy Duitt; 01-05-2004 at 03:19 AM.

  • #7
    New Coder
    Join Date
    Aug 2002
    Location
    Here I am, is Where I'm at!
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #8
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Attached Files Attached Files


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •