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>
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
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.