I want to demonstrate two things.我想证明两件事。 First a simple way to create hyperlink without using the standard A tag with HREF attribute.首先一个简单的方法来建立超连结,而不使用标准标记href属性。 This works like a normal tag and looks the same.这个工程就像一个正常的标记,并期待相同。 Yet it uses CSS & javascript event handlers to achieve the same effect using a span tag.然而,它使用的CSS和JavaScript的事件处理程序,以达到相同的效果使用span标记。 This makes it potentially immune to crawling by robots.这使得它有可能幸免于抓取的机器人。

As a side effect I use this code to demonstrate the IE bug where you click on the link of a site.作为一个副作用,我使用此代码,以显示即臭虫你点击该链接的一个网站。 The site shows up properly in the browser window, yet it actually loads a different site.该网站显示正确,在浏览器窗口,但它其实是加载一个不同的网站。 As you will see from the demonstration that the status bar also displays properly the wrong site.正如您会看到从示威状态栏还显示,妥善错误的网站。 Without further ado here’s the example:没有进一步的ADO在这里的例子:

Microsoft? 微软? nope, we are better nope ,我们是更好的 : )

The code is:该代码是:


Microsoft? 微软? nope, we are better nope ,我们是更好的 : )

Look at the status bar and the Address bar of the displayed page to understand the effect.看看状态栏和地址栏中显示的网页了解的效果。 If you are using Netscape/Mozilla or other browsers based on the codebase you will not be able to view the spoof.如果您使用的是Netscape / Mozilla或其他浏览器的基础上的CODEBASE您将无法以查看欺诈。 In fact you will see the actual URL in the address bar.事实上,您会看到实际的URL地址栏中。
However the hyperlink, status and the rest will work fine.不过,超连结,地位和其余的将工作的罚款。