head中也加入了:
<script src="/ks_inc/jquery.js"></script>
<script>
$(document).ready(function(){
var linkItem = document.getElementsByTagName("a");
for(var i=0; i<linkItem.length; i++){
var obj = linkItem[i];
if (typeof(obj.id)!="undefined"&&obj.id.substring(0,4)=="link")
{
$("#"+obj.id).click(function(){
var id=$(this).attr("id").substring(4);
$.ajax({
url: "/Plus/Link/hits.asp",
cache: false,
data: "linkid="+id,
success: function(d){
}
});
})
}
}
});
</script>
后台设置中也开启了!
前台网页中链接:
<a id="link8" href="/plus/link/To?8" target="_blank" title="">0000</a>
点击以后还是不增加?