java script

Discussion in 'Search Engine Optimization' started by login, Aug 19, 2007.

  1. #1
    Will the SE`s see and count my links if i use this solution with java script ?

    java script:

    function toggleMenu() {
    var oMenu = document.getElementById("item");
    if(oMenu.style.display == "none")
    oMenu.style.display = "block";
    else
    oMenu.style.display = "none";
    }


    html:

    <ul>
    <li onclick="toggleMenu();">Menu</li>
    <li id="item" style="display:none;">
    <ul>
    <li><a href="http://www.site1.com">site1</a></li>
    <li><a href="http://www.site2.com">site2</a></li>
    </ul>
    </li>
    </ul>
     
    login, Aug 19, 2007 IP
  2. speda1

    speda1 Well-Known Member

    Messages:
    374
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Yes, those links are in the HTML, not the javascript.
     
    speda1, Aug 19, 2007 IP
  3. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #3
    google will follow href and src tags on a page.

    and i dont see any problem on your example.

    google can easyly follow links in your example
     
    trichnosis, Aug 19, 2007 IP
  4. SolomonZhang

    SolomonZhang Peon

    Messages:
    523
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Your javascript is only for changing the display of the menu, not "creating" the menu (which could be problematic with SEs), so don't worry about it.
     
    SolomonZhang, Aug 19, 2007 IP
  5. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Ok, I see. Hope Google dont think that I am hiding text then.
     
    login, Aug 19, 2007 IP