1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Is this code bad for SEO

Discussion in 'Programming' started by madmn, Feb 20, 2006.

  1. #1
    I have heard that getting javascript out of your pages and putting it on a separate page is good for SEO. The following code is before my content text on my homepage. Is this type of code something I should put in a separate page aswell?


    <th width="113" scope="col"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','images/home-50grey-dark.gif',1)"><img src="images/home-50grey.gif" name="Image15" width="113" height="28" border="0" id="Image15" /></a></th>
    <th width="1" scope="col"><img src="images/topban_11.gif" width="1" height="28" /></th>
    <th width="175" scope="col"><a href="properties.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','images/topban_12-dark.gif',1)"><img src="images/topban_12.gif" name="Image16" width="175" height="28" border="0" id="Image16" /></a></th>
    <th width="1" scope="col"><img src="images/topban_11.gif" width="1" height="28" /></th>
    <th width="174" scope="col"><a href="about.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','images/topban_14-dark.gif',1)"><img src="images/topban_14.gif" name="Image17" width="174" height="28" border="0" id="Image17" /></a></th>
    <th width="1" scope="col"><img src="images/topban_11.gif" width="1" height="28" /></th>
    <th width="173" scope="col"><a href="contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','images/topban_16-dark.gif',1)"><img src="images/topban_16.gif" name="Image18" width="173" height="28" border="0" id="Image18" /></a></th>
    <th width="1" scope="col"><img src="images/topban_11.gif" width="1" height="28" /></th>
    <th scope="col"><a href="links.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','images/links-50grey-dark.gif',1)"><img src="images/links-50grey.gif" name="Image19" width="111" height="28" border="0" id="Image19" /></a></th>
     
    madmn, Feb 20, 2006 IP
  2. Old Welsh Guy

    Old Welsh Guy Notable Member

    Messages:
    2,699
    Likes Received:
    291
    Best Answers:
    0
    Trophy Points:
    205
    #2
    yep, the best way to do it is to call the javascript from an external file.
     
    Old Welsh Guy, Feb 20, 2006 IP
  3. HN Will

    HN Will Guest

    Messages:
    111
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah - the general rule is if you don't like looking at it (not counting whitespace characters, of course), neither do the spiders.

    But then again, it looks like you need some CSS action, not javascript.
     
    HN Will, Feb 20, 2006 IP
  4. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #4
    You might even try a CSS menu rollover instead of javascript, that would be quite a bit cleaner looking than javascript.
     
    fsmedia, Feb 20, 2006 IP