2011-06-04 20 views
0

我做一些搜索引擎优化的网站,我还没有建成,它有这个导航条:那是导航栏阴性SEO

<div align="right" id="menu"> 
     <table border="0" cellpadding="0" cellspacing="0"> 
      <tr> 
      <td><div align="center" class="menuitem1" onmouseover="this.className='menuitem1a'" onmouseout="this.className='menuitem1'" onclick="window.location='index.php'" > 
        <div style="margin-top:80px">Profile</div> 
       </div></td> 
      <td><div align="center" class="menuitem2" onmouseover="this.className='menuitem2a'" onmouseout="this.className='menuitem2'" onclick="window.location='customers.php'"> 
        <div style="margin-top:80px">Customers</div> 
        </div></td> 
      <td><div align="center" class="menuitem3c"> 
        <div style="margin-top:80px">Services</div> 
        </div></td> 
      <td><div align="center" class="menuitem4" onmouseover="this.className='menuitem4a'" onmouseout="this.className='menuitem4'" onclick="window.location='products.php'"> 
        <div style="margin-top:80px">Products</div> 
        </div></td> 
      <td><div align="center" class="menuitem5" onmouseover="this.className='menuitem5a'" onmouseout="this.className='menuitem5'" onclick="window.location='contact.php'"> 
        <div style="margin-top:80px">Contact</div> 
        </div></td> 
      </tr> 
     </table> 
    </div> 

我注意到的第一件事,它没有锚! 第二次,当我做了网站的网站地图只有索引页在那里。 编辑:它也吐出评价错误! 这是否会对SEO的角度带来负面影响? 在此先感谢!

+2

绝对是。它看起来像一个可怕的实现,可以用纯HTML完成。 – Marcel 2011-06-04 07:33:40

回答

2

是的。由于JS是,通常被抓取工具忽略,所以无法进入其余页面,因为导航不起作用。您需要将这些DIV更改为定位点并适当地设置样式以保留旧样式。

此外,这种方法不容易访问,因为从页面内容不明显哪些元素是链接。没关系的语义

1

谷歌似乎可以跟随JS现在,但是,这是残酷的标记。对可访问性也很不好。而且很难保持。此外,它有更多的标记比需要,谷歌没有抱怨,如果你减轻你的页面大小。

至于验证,这可能不会对搜索引擎优化产生太大的影响(如果有的话,谷歌索引的一半将是空的)。

我的猜测是Adobe Dreamweaver标记大约在2000年左右,或者它出现在一个典型的不良CMS中。

0

@JohnP已经回答了这个问题 - 这真是糟糕的标记。

一个简单的方法是

<ul id="menu"> 
<li><a href="index.php">Profile</a></li> 
<li><a href="customers.php">Customers</a></li> 
.... 
</ul> 

,做通过CSS的样式。 (如果它们的风格不同,您可能需要将menuitem1,menuitem2类别添加到<li>元素。)