当前位置:开发者网络 >> 网页特效 >> 状态栏类 >> 内容
精彩推荐
分类最新特效
分类热点特效
  
状态栏显示页面的点击效数
日期:2004-06-17   人气:   【字体: 】【收藏此文


<!-- 网页特效代码由[中国WEB开发者网络:http://www.ChinaWebDev.com]提供! -->
<!-- 要实现此效果需要 2 个步骤: -->

<!-- 第 1 步: -->
<!-- 把下面的代码加到<HEAD></HEAD>区域中: -->

<script>
var count=0

function clickcount(){
count++
if(count==10){
showlink()
}
status=count
}

function showlink(){
var link="<a href=http://www.webasp.net/>中国WEB开发者网络</a>"
if(document.all){
document.all.hiddenlink.innerHTML=link
}else
if(document.layers){
with(document.layers["hiddenlink"].document){
open()
writeln(link)
close()
}
}else
if(document.getElementById){
document.getElementById("hiddenlink").innerHTML=link
}
}

if(document.layers){
document.captureEvents(Event.CLICK)
}
document.onclick=clickcount
</script>



<!-- 第 2 步: -->
<!-- 把下面的代码加到<BODY></BODY>区域中: -->

<p>点击页面看一下效果,点到10下,会有东东跑出来哟.</p>
<div id=hiddenlink></div>