Results 1 to 6 of 6

Thread: All Levels Navigation Menu - Using rel=nofollow?

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default All Levels Navigation Menu - Using rel=nofollow?

    Hey everyone,
    I have spend hours upon hours implementing this script and getting to to work how I want.... but I ran into a problem. I need to use rel="nofollow" in some links. The problem is that the script uses the rel attribute to assign the submenus.

    http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/

    If I attempt to assign a rel=nofollow to a link....it breaks script.

    Any ideas of how to fix this? I attempted to change all the rel= to rev= in both the script and the attribute.... but that did not work.

    Help?

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    A simple search and replace of "rel" inside the .js file with "rev" instead should do it. I've attached the modified .js file. Inside your HTML, be sure to change rel="..." to rev="...".
    DD Admin

  3. #3
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I wish it were that easy. Like I said in the post, I tried that already. And then I just tried it again since you said it.... and.... well.... it just doesn't work....

    Any other ideas? Thanks bunch for the response.

  4. #4
    Join Date
    Jan 2009
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    you could try it like this. i am not sure it will work but give it a spin.
    <a href="LINK" rel="nofollow">

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Quote Originally Posted by phanak View Post
    I wish it were that easy. Like I said in the post, I tried that already. And then I just tried it again since you said it.... and.... well.... it just doesn't work....

    Any other ideas? Thanks bunch for the response.
    It does for me actually. I tested using the modified .js file, plus changing rel to rev inside the menu HTML. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

  6. #6
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the late reply. For some reason, I wasnt notified of new posts.

    you could try it like this. i am not sure it will work but give it a spin.
    <a href="LINK" rel="nofollow">
    thats the problem. the rel= is used by the javascript.... even rel=booger would case the problem...

    ddadmin - my apologies for not believing you

    I had forgotted I consolidated all the javascripts into one file to clean up my <head> the changes I made were to the single ddlevel javascript file, not the included one. No wonder it wouldnt work!!!

    And instead of the rev, i renamed them to narf to see if it would work, and yep! Sure did.

    Thanks a bunch for the help!

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
  •