Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Dynamic Drive: AnyLink JS Drop Down Menu
Old 05-04-2011, 11:12 AM Dynamic Drive: AnyLink JS Drop Down Menu
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
What am I doing wrong here? I just need one stinkin' link to drop down with three additional links and this is simply not working. I can not do a standard CSS menu because I am editing an existing theme template that must retain it's original setup. This is why I am try to just edit this one link using this method as opposed to redoing the whole menu.

Tutorial Link

Code:
<?php 
  $url = explode('/', $_SERVER['REQUEST_URI']); 
  $section = $url[1] ? $url[1] : 'home'; 
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="<?php bloginfo( 'charset' ); ?>" />
        <title><?php the_title(); ?></title>
        <link rel="stylesheet" href="<?php echo home_url(); ?>/wp-content/themes/blueleaf-tsa/style.css" />
        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php wp_head(); ?>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="http://use.typekit.com/mel0fdp.js"></script>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>    
    <script src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/jquery.validate.min.js"></script>
    <script src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/application.js"></script>
    </head>
    <link rel="stylesheet" type="text/css" href="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/css/anylinkmenu.css" />
    <script type="text/javascript" src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/menucontents.js"></script>
    <script type="text/javascript" src="<?php echo home_url(); ?>/blog/wp-content/themes/blueleaf-tsa/js/anylinkmenu.js"></script>
    <script type="text/javascript">
    anylinkmenu.init("menuanchorclass")
    </script>
<body>
      <div id="header">
      <div class="sitewidth">
          
          <div id="right">
          
              <div id="secondary-nav">
            Already have an account?
            <a href="https://secure.blueleaf.com/signin">Sign in</a>
            </div>
          
              <div id="primary-nav">
            <a href="<?php echo home_url(); ?>/"> Home</a>
            <a href="<?php echo home_url(); ?>/about/">About</a>
            <a href="<?php echo home_url(); ?>/advisors/"><span class="for">for</span>Advisors</a>
            <a href="<?php echo home_url(); ?>/blog" class="menuanchorclass" rel="anylinkmenu1"> Blog</a>
              </div>
          
          </div>
      
          <div id="logo">
              <h1><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
          </div>
      
      </div> <!--END SITE WIDTH-->
      </div> <!--END HEADER-->
Quote:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} //First menu variable. Make sure "anylinkmenu1" is a unique name!
anylinkmenu1.items=[
["The Scalable Advisor<br/><small>Helping financial advisors grow their business</small>", "#"],
["Savings &amp; Interest<br /><small>Helping you make the most of your money</small>", "#"],
["Blueleaf Update<br /><small>The latest on the company and the product</small>", "#"]//no comma following last entry!
]
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
 
Register now for full access!
Old 05-04-2011, 02:30 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Use Firefox Error Display to show the main error.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 05-04-2011, 02:32 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I did. It's not telling me anything that I know how to fix.

Error: anylinkmenu is not defined Line 14
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 05-04-2011, 03:38 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
That simply means that you have tried to use a variable name that has not been defined and instantiated
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-04-2011, 03:43 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
Ok...Well what is wrong? I don't know how to fix it otherwise I wouldn't have posted here.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 05-04-2011, 03:51 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
anylinkmenu.js is returning a 404 response
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-04-2011, 03:54 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
Oooo, I see! It's because it was pulling the wrong URL from the previous theme. Nice. I spent an hour trouble shooting this for something so dumb...
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 05-04-2011, 04:01 PM Re: Dynamic Drive: AnyLink JS Drop Down Menu
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Another FF extension worth using for troubleshooting is LiveHTTPHeaders, lets you monitor every HTTP request and response.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Dynamic Drive: AnyLink JS Drop Down Menu
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32019 seconds with 12 queries