Results 1 to 4 of 4

Thread: Error - "Anylink menu undefined"

  1. #1
    Join Date
    Mar 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error - "Anylink menu undefined"

    I am trying to add this script to my website, using Frontpage 2002. I have one link on the navigation bar that I want to have a drop down menu (the APPLY.htm page). I have copied the 3 files, edited the menucontents file to add the menu options, identified the anchor link with the "menuanchorclass" name, and included rel="anylinkmenu1".

    This is the coding that I have for the APPLY anchor link:
    <a href="http://www.flemingmusicscholarship.org" class="menuanchorclass" rel="anylinkmenu1">APPLY</a>.

    The script does not run - says that "anylinkmenu is undefined." What am I doing wrong?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This page has not been published yet - I'm redo the entire website. Below is the coding on the page for the dropdown menu for the APPLY anchor link.


    Code:
    <html>
    
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Home Page</title>
    <style>
    <!--
     li.MsoNormal
    	{mso-style-parent:"";
    	margin-bottom:.0001pt;
    	font-size:12.0pt;
    	font-family:"Times New Roman";
    	margin-left:0in; margin-right:0in; margin-top:0in}
    -->
    </style>
    
    <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 (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Project Page at http://www.dynamicdrive.com/dynamici...pmenuindex.htm for full source code
    ***********************************************/
    
    </script>
    
    <script type="text/javascript">
    
    //anylinkmenu.init("menu_anchors_class") //Pass in the CSS class of anchor links (that contain a sub menu)
    anylinkmenu.init("menuanchorclass")
    
    </script>
    
    </head>
    
    <body bgcolor="#CCCCCC" link="#000000" alink="#000000">
    
    <div align="center">
      <center>
      <table border="20" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800" background="piano2_rev.jpg">
        <tr>
          <td><font size="2">&nbsp;&nbsp; </font>
          <p>&nbsp;&nbsp;<font color="#FFFFFF"> <span style="font-family: Edwardian Script ITC">
          <font style="font-size: 45pt">Attrus 
          C. Fleming</font></span><span style="font-size: 26.0pt; font-family: Edwardian Script ITC"> </span>
          <span style="font-family: Engravers MT"><font style="font-size: 15pt">Music 
          Scholarship Fund</font></span></font></p>
          <p><font size="5">&nbsp;&nbsp; </font></p>
          <p>&nbsp;</p>
          <p>&nbsp;</td>
        </tr>
      </table>
      <div align="center">
        <center>
        <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#996633" width="800" bgcolor="#996633">
          <tr>
            <td width="800" height="50">
            <p align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br>
            <b>HOME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            SCHOLARS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CONCERT SERIES&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
            CONTRIBUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="http://www.flemingmusicscholarship.org" class="menuanchorclass" rel="anylinkmenu1">APPLY</a>
    &nbsp;&nbsp;&nbsp;&nbsp; 
            CONTACT US</b></td>
          </tr>
        </table>
        </center>
    Last edited by jscheuer1; 08-01-2012 at 03:29 PM. Reason: Format

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Works fine here. You are probably missing one or more of the highlighted files:

    Code:
    <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 (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Project Page at http://www.dynamicdrive.com/dynamici...pmenuindex.htm for full source code
    ***********************************************/
    
    </script>
    Did you download them from the demo page:

    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    If not, see Step 1 on that page. Put them in the same folder as your page that uses them.

    If you still want more help, please put up a live demo of the problem and provide a link to it.
    - John
    ________________________

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

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
  •