Results 1 to 3 of 3

Thread: Page Won't Open

  1. #1
    Join Date
    Mar 2009
    Thanked 0 Times in 0 Posts

    Default Page Won't Open

    1) Script Title: Anylink

    2) Script URL (on DD):

    3) Describe problem: I downloaded the 3 files and the script, had it working for a while. I started adding and changing links, and now (Using Frontpage) when opening/previewing, the page will actually open, but with a popup box that says that Internet Explorer can not open the page that it in fact just opened. I click the OK box then get a page that says the requested page can not be displayed...

    I have downloaded all 3 files again. Without modifying MenuContents.js file at all, my page will open, but of course my menu items are not working. I change the MenuContents.js file for my menu names, and that's when the page opens with the popup box.

    my page is

  2. #2
    Join Date
    Mar 2005
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries


    IE often requires valid code when loading pages that have scripts on them. It may even go so far as requiring closing tags to elements that don't always require them.

    Now, your menucontents.js has only one menu in it, so there will still be errors, but the one menu you have will work. Try this valid code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>GMA Home Page</title>
    <link rel="stylesheet" type="text/css" href="anylinkmenu.css">
    <script type="text/javascript" src="menucontents.js"></script>
    <script type="text/javascript" src="anylinkmenu.js">
    * AnyLink JS Drop Down Menu v2.0-  Dynamic Drive DHTML code library (
    * This notice MUST stay intact for legal use
    * Visit Project Page at for full source code
    <body bgcolor="#C2CDC6" link="#808000" vlink="#808000">
    <div align="center">
      <table border="0" width="981">
          <td width="251" bgcolor="#C2CDC6">
            <p align="center"><img alt="" border="0" src="images/Logo/GMALogo-20-3-250.gif" width="190" height="200"></td>
          <td width="411" bgcolor="#C2CDC6">
            <p align="center"><img alt="" border="0" src="images/AerialView2-Wayne.jpg" width="353" height="227">&nbsp;&nbsp;
          <td width="297" bgcolor="#C2CDC6" valign="top"> 
                <img alt="" border="0" src="images/HomePage/white-carson.jpg" width="297" height="224">
      <p align="center"><b><font size="2" face="Arial">
     <a href="" class="menuanchorclass" rel="menu99">About Us</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu2" rev="lr">Members</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu3" rev="lr">Events</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu4" rev="lr">Safety &amp; Rules</a>&nbsp;&nbsp;&nbsp; 
      <a href="" class="menuanchorclass" rel="menu5" rev="lr">Location</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu6" rev="lr">News</a>&nbsp;&nbsp;&nbsp; 
      <a href="" class="menuanchorclass" rel="menu7" rev="lr">Forums</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu8" rev="lr">Gallery</a>&nbsp;&nbsp;&nbsp; 
      <a href="" class="menuanchorclass" rel="menu9" rev="lr">Contacts</a>&nbsp;&nbsp;&nbsp;
      <a href="" class="menuanchorclass" rel="menu10" rev="lr">Links</a></font></b>
    <script type="text/javascript">
    //anylinkmenu.init("menu_anchors_class")! //call this function at the very *end* of the document!
    Though I fixed many errors of validation in the HTML code, the most important change is the addition of the closing </p> tag (highlighted) near the end. Using p in a page is always risky where scripts are involved. It's generally a self closing tag, but if a script comes after it, browsers may become confused.
    - John

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Mar 2009
    Thanked 0 Times in 0 Posts


    Adding that ending /p seems to have fixed it. I'll go add the other links back in.


Posting Permissions

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