How does Googlebot function?

Discussion in 'Google' started by vastbeyond, Jan 20, 2007.

  1. #1
    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)
     
    vastbeyond, Jan 20, 2007 IP
  2. FFMG

    FFMG Well-Known Member

    Messages:
    1,091
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    160
    #2
    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
     
    FFMG, Jan 20, 2007 IP
  3. vastbeyond

    vastbeyond Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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?
     
    vastbeyond, Jan 20, 2007 IP
  4. netmarketing

    netmarketing Well-Known Member

    Messages:
    347
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Do some google searches, you will sure find very detailed information about spiders. Try a search for "search engines spiders", you will do good.
     
    netmarketing, Jan 20, 2007 IP
  5. Toopac

    Toopac Peon

    Messages:
    4,451
    Likes Received:
    166
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Toopac, Jan 20, 2007 IP
  6. FFMG

    FFMG Well-Known Member

    Messages:
    1,091
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    160
    #6
    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
     
    FFMG, Jan 20, 2007 IP
  7. Mihai

    Mihai Active Member

    Messages:
    567
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    60
    #7
    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
     
    Mihai, Jan 20, 2007 IP
  8. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #8
    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.
     
    oseymour, Jan 20, 2007 IP
  9. Toe

    Toe Peon

    Messages:
    370
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Toe, Feb 22, 2007 IP