Doing some dynamic links, and wanted to know if Googlebot can pick up on Javascript functions that are initiated by onMouseOver or onLoad or onBrowserEvent? What I am looking to do is make a static link that will be indexed by Googlebot and other spiders but also make users see the subsequent page as it was customized by my partner websites. Nothing blackhat, just changes to the look and feel of the subsequent page by changing the link's parameters with javascript. So, essentially I am looking for an SEO intelligence report. Does Googlebot "tab" through links on a page, or does it use events like a mouse moving over a link as well? I have phrased this question a couple of different ways in other sections but have not gotten a good response yet. Any help out there???? (PS--I have the code if you'd like to see what I mean)
Google bot is not very good with Javascript because it does not care much about it, (it sees the page as a visitor with no javascript would see it). Maybe if you had a link of a working example we might understand it better. FFMG
Thanks for the reply. Well, I have a rather sophisticated site which customizes the look and feel of a particular PHP landing page based on which partner site links to it. I want SERPs to include just the top level page (mysite.com/index.php), and so I do not want to fool around with htmaccess to make static links for each "version" of the page. Also, I am hesitant to use re-directs. So, I want to accomplish two things--have lots of pages link to ONE static URL (mysite.com/index.php) but also have those pages be able to pass PHP variables to change the look and feel of that static page when their users view the page. (like mysite.com/index.php?color=ffffff) What I have devised is a bit of Javascript code along with a static link. What I would like to know is how Google, Yahoo, MSN, etc. will interpret this code and whether it will in any way downgrade my site for the use of such Javascript? Essentially what it is is an anchor surrounded by a div. When the page loads, it shows up as just a regular link to the static page. When the user moves the mouse over the link, the link changes to be a link incorporating various PHP variables. Here is the code: <head> <script language=javascript> function clickDynamic() { var d2=document.getElementById('dynamicchange'); // -- d2Len holds the fixed starting value of the number of childNodes var d2Len=d2.childNodes.length; for (i=0;i<d2Len;i++){ d2.removeChild(d2.childNodes[0]); } var newLink=document.createElement('a'); newLink.setAttribute('href','http://www.mainsite.com/index.php?var1=100000'); var linkText=document.createTextNode('Link to Main Site'); newLink.appendChild(linkText); d2.appendChild(newLink); } </script> </head> <body> <div id="dynamicchange"><a onMouseOver="clickDynamic();" href="http://www.mainsite.com/index.php">Link to Main Site</a></div> </body> </html> Thoughts? Comments?
Do some google searches, you will sure find very detailed information about spiders. Try a search for "search engines spiders", you will do good.
From what i understand, i believe Google bot views your sites just like if you was viewing it via this http://www.yellowpipe.com/yis/tools/lynx/lynx_viewer.php Type in your URL & check
Form what I can see you are replacing one link with another. so you make the search engine that they are going to some site when in fact they are going to another. Not sure if Google will catch you, but when they do you will get a one way ticked to get banned. Regardless what the reason is for doing it. FFMG
I know that Java Script is not very Search Engine friendly, maybe some code is better then other but I do not recommend Java Script in SERPs critical webpages. Regards
I think that code that you are using is straddling the fence. You could probably get banned for it. I saw your question before. you got your answer..it probably wasn't the answer you wanted to hear.
reading about JavaScript and Google remind me of the article I have recently read. It is just about ability of search engines to follow links within scripts. Rather interesting read - Search engines and your fancy menu: will they escape?