SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Degrading Gracefully PalmerB's Avatar
    Join Date
    Sep 2001
    Location
    Ohio - U.S.A. Outlook: Cautiously Optimistic
    Posts
    3,283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Help, I messed up my menu...

    Dang it, I changed a few thing in my hand made javascript menu include and now it crashes Netscape browsers, what did I screw up in this code, please forgive my methods of JavaScript I'm not a programmer...

    Code:
    <!--
    {
    document.write(' <font size="1">');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/index.html">Home</a><br><br> ');
    document.write(' &nbsp;Custom Start Pages…<br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/examples.htm">Products &amp; Prices</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/psp/" target="_blank">Individual</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/gs2.htm" target="_blank">Grade Schooler</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/noah.htm" target="_blank">Toddler</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/corporate.htm" target="_blank">Company</a><br><br> ');
    document.write(' &nbsp;Webmaster Resources…<br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/resources.htm">YourWebBuddy boxes</a><br> '); 
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/aff.htm">Affiliate Boxes</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/nb.htm">Your Brand</a><br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/quotes.asp">Quote Boxes</a> (free)<br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/kids.asp">Kid&#039;s Stuff</a> (free)<br> ');
    document.write(' &nbsp;&#126;<a style="font-size: 10px" href="http://www.yourwebbuddy.com/trivia.asp">Trivia Boxes</a> (free)<br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/members.asp">Webmaster Portal</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/more.htm">Useful Links</a><br><br> ');
    document.write(' &nbsp;Buy our products…<br> ');
    document.write(' &nbsp;<a href="https://www3.security-one.com/yourwebbuddy.com/store/mcart.htm">The Store</a><br><br> ');
    document.write(' &nbsp;Help section…<br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/help.htm">Contact info</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/faq.htm">FAQ</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/helpform.htm">Contact Us</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/newsletter.htm">Newsletter</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/privacy.htm">Privacy Policy</a><br> ');
    document.write(' &nbsp;<a href="http://www.yourwebbuddy.com/forum">Message Boards</a><br> ');
    document.write(' &nbsp;<a href="mailto:help@yourwebbuddy.com">E-Mail Us</a><br> '); 
    document.write(' </font> ');
    document.write('<form action="search.asp" method="post">&nbsp;<input type="text" size="16" class="box" value="Search" name="searchtext" onFocus="doClear(this)"><input type=image src="http://www.yourwebbuddy.com/go.gif" border="0" name="search"></form>');
    
    }
    //-->
    Thanks in advance,
    Palmer

  2. #2
    Degrading Gracefully PalmerB's Avatar
    Join Date
    Sep 2001
    Location
    Ohio - U.S.A. Outlook: Cautiously Optimistic
    Posts
    3,283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forget it I figured it out.

    Palmer

  3. #3
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you found the solution post it. There may be someone else out there who has the same problem?



    Si

  4. #4
    Degrading Gracefully PalmerB's Avatar
    Join Date
    Sep 2001
    Location
    Ohio - U.S.A. Outlook: Cautiously Optimistic
    Posts
    3,283
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you found the solution post it. There may be someone else out there who has the same problem?

    No normal person would ever make a JavaScript menu the way I did but here is the solution to what was wrong.

    2 things gave Netscape a problem, one was a couple of rogue spaces left over from a copy&paste I did. Any spaces in your code causes a hissy fit with Netscape. The other thing has to do with the code below...

    <a style="font-size: 10px" href="http://...etc.

    For some reason, when you put certain style tags in JavaScript it causes Netscape to crash and burn. Who knows why.

    Palmer


Bookmarks

Posting Permissions

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