以下超链接不起作用,但当您单击“在新选项卡中打开”按钮时它会起作用。
<div class="span12 category-products" style="margin: 0 auto;">
<div class="toolbar">
<div class="row big_with_description" style="position:relative;">
<a href="http://www.grewal.nl/reviveme/repair/mobile.html">
<div class="span5 product hover">
<img src="http://www.grewal.nl/reviveme/media/catalog/category/mobile2.jpg" class="category-thumbnail product-retina" width="499" height="268" alt="Mobile">
</div>
</a>
</div>
</div>
我尝试过使用 Chrome 和 Firefox。可以看到直播页面here http://www.grewal.nl/reviveme/repair.html.
如果禁用 JavaScript,则链接有效。在 ajaxtoolbar.js 中有以下代码:
$jq('a','.toolbar').click(function(event) {
link = $jq(this).attr('href');
if((link.search("mode=")!=-1||link.search("dir=")!=-1||link.search("price=")!=-1||link.search("p=")!=-1)&&(toolbarsend==false)){
event.preventDefault();
ajaxtoolbar.onSend(link,'get');
}
return false;
});
The return false;
防止链接触发。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)