以下是我这个blog [静态新闻/声明]里代码,问我怎么加计数器的朋友,可以看看。 希望你们也有个可以计量访问量的记数器,看到访问量慢慢增加,体会那种感觉,cool ! --------------------------------------------------------------------------------------------------------------- <div style="height:132;overflow:hidden;"> <embed src="http://www.clocklink.com/Clocks/0001-green.swf?TimeZone=CCT" width="150" height="150" _style="position:absolute;z-index:2;top:85;left:133;" wmode="transparent" type="application/x-shockwave-flash"> </div> 当前页:<img src="" id="PageView"><br> 总计数:<img src="" id="TotalView",style="display:none"><br>
<script> //设置两个计数计的外观样式,取值1-60 var PageCountStyle=48 var TotalCountStyle=48 try{ var sUrl=self.location.href var re=new RegExp("(.+\.net\/)([^\/]+)([^\.]*)","ig") if(re.test(sUrl)) { var blog_id=RegExp.$2; var page_id=blog_id+"__"+RegExp.$3.replace(/\//g,""); blog_id+="__CSDNBLOG" var cUrl="http://nmc2.jy.js.cn/cgi-bin/counter.pl?ln=8&bd=$0;$0;$255&from=0" document.all.PageView.src=cUrl+"&id="+page_id+"&md=a"+PageCountStyle document.all.TotalView.src=cUrl+"&id="+blog_id+"&md=a"+TotalCountStyle } }catch(e){;} </script> <hr> Ning Yan Bin<br> mail:<a href="mailto:[email protected]">[email protected]</a><br> msn:[email protected] <hr> <center>始建于2004年11月24日</center> <hr> <EMBED id=olplayer src=http://gf.yf163.com/tmp/mp3.asx width=180 height=45 type=video/x-ms-asf loop="false" AutoStart="false"> --------------------------------------------------------------------------------------------------------------- 
|