View Full Version : Error - "Anylink menu undefined"
themoon2
07-31-2012, 05:52 PM
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?
jscheuer1
08-01-2012, 03:34 AM
Please include a link to the page on your site that contains the problematic code so we can check it out.
themoon2
08-01-2012, 12:52 PM
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.
<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/dynamicindex1/dropmenuindex.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"> </font>
<p> <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"> </font></p>
<p> </p>
<p> </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">
<br>
<b>HOME
SCHOLARS CONCERT SERIES
CONTRIBUTE
<a href="http://www.flemingmusicscholarship.org" class="menuanchorclass" rel="anylinkmenu1">APPLY</a>
CONTACT US</b></td>
</tr>
</table>
</center>
jscheuer1
08-01-2012, 03:39 PM
Works fine here. You are probably missing one or more of the highlighted files:
<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/dynamicindex1/dropmenuindex.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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.