PDA

View Full Version : Resolved Help with AnyLink JS Drop Down Menu



ndmccain
05-01-2009, 08:42 PM
Script Title: AnyLink JS Drop Down Menu 2.0
Script URL: http://www.dynamicdrive.com/dynamicindex1/dropmenuindex.htm

I used this script before without any problem, I am trying to implement it on another site and the menu won't pop-up.

I've check the code for the new site against the site that it is working on and it is exactly the same.

I've attached the files, also here is the source to my HTML page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>[CSG] Cadence Sim Game // Est. 2009</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 (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>
<link href="pubstyle.css" rel="stylesheet" type="text/css">
</head>

<body>
<div class="mainwrap">
<div class="header"><img src="title.jpg" width="700" height="150"></div>
<div class="navbar">
<table width="100%" border="0">
<tr>
<td align="center"><a href="index.php" class="navbar">Home</a></td>
<td align="center"><a href="#" class="menuanchorclass navbar" rel="anylinkmenu1">START</a></td>
<td align="center"><a href="preview.php" class="navbar">members</a></td>
<td align="center"><a href="join.php" class="navbar">equines</a></td>
<td align="center"><a href="login.php" class="navbar">commerce</a></td>
<td align="center"><a href="contact.php" class="navbar">CONTACT US</a></td>
</tr>
</table>
</div>
<div class="main">kk</div>
<div class="footer">Cadence Sim Game, CSG and Cadence-Sim.net are &copy; 2009 - Present Nicole McCain. All rights reserved. <br>
This site is a simulation horse game. It is all fictious.<br>
• <a href="disclaimer.php" class="footer">View Disclaimer</a> • </div>
</div>
<div align="center"></div>
<script type="text/javascript">

//anylinkcssmenu.init("menu_anchors_class") //call this function at the very *end* of the document!
anylinkcssmenu.init("menuanchorclass")

</script>
</body>
</html>


Any help is greatly appreciated!
- Nicole

ddadmin
05-02-2009, 06:39 AM
A link to the problem page would be a lot more helpful in this case...

NirvanaBlues
05-02-2009, 09:08 PM
Nicole appears to have one of the same issues I did when trying to set up the code.

Calling the wrong function at the end of the page… anylinkcssmenu...the css part was incorrect and needed to be omitted.

When I recently referred back to the page where I found the code originally, it did have that function error.
-Peace-

ndmccain
05-03-2009, 05:54 PM
Yep, that fixed the problem. Thanks for the help.