Results 1 to 3 of 3
  1. #1
    Member Cav's Avatar
    Join Date
    August 13th, 2008
    Location
    Ontario, Canada
    Posts
    98
    How does this nofollow script look?
    Just trying to see if I have everything covered.


    //This function will add the nofollow attribute to "a" tags that meet the criteria //
    // It will also omit links that are designated internal//
    function addNoFollow(){

    var myAnchors = document.getElementsByTagName("a");

    var i;
    for(i = 0; i < myAnchors.length; i++){
    //alert(myAnchors[i].name);
    if(myAnchors[i].name != "internalLnk"){
    myAnchors[i].setAttribute("rel","nofollow");

    }else{

    }
    }
    return;
    }

  2. #2
    Newbie
    Join Date
    November 13th, 2008
    Posts
    28
    It won't matter since that looks to be javascript. The nofollow will not be read by the crawler if that's the case. You'll need to add the "nofollow" using a server-side language (PHP, JSP, etc)

  3. #3
    Member Cav's Avatar
    Join Date
    August 13th, 2008
    Location
    Ontario, Canada
    Posts
    98
    Yeah I realized this a couple days ago , oh well ....

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. More nofollow nonsense...
    By Convergence in forum Midnight Cafe'
    Replies: 9
    Last Post: June 30th, 2014, 11:39 PM
  2. eBay and nofollow coding
    By Rollerblader in forum eBay Partner Network
    Replies: 3
    Last Post: April 28th, 2008, 07:00 PM
  3. nofollow & Javascript?
    By Amy_S in forum eBay Partner Network
    Replies: 33
    Last Post: April 13th, 2008, 10:13 AM
  4. What is the difference between dofollow and nofollow?
    By AndrewaSmith in forum Building Traffic, Newsletters & Advertising
    Replies: 14
    Last Post: March 11th, 2008, 10:40 PM
  5. nofollow
    By Zdig in forum Search Engine Optimization
    Replies: 2
    Last Post: May 25th, 2006, 11:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •