【返回顶部代码】文字就行 换成图片就不行为什么?该怎么处理
【返回顶部代码】文字就行 换成图片就不行为什么?
我把 返回顶部 四个字换成了 图片 就不可以了。请问为什么。
------解决方案--------------------
啊偶
------解决方案--------------------
reference:
http://www.cnblogs.com/insus/articles/1406122.html
我把 返回顶部 四个字换成了 图片 就不可以了。请问为什么。
- JScript code
<script> lastScrollY=0; function heartBeat(){ var diffY; if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop; else if (document.body) diffY = document.body.scrollTop else {/*Netscape stuff*/} percent=.1*(diffY-lastScrollY); if(percent>0)percent=Math.ceil(percent); else percent=Math.floor(percent); document.getElementById("full").style.top=parseInt(document.getElementById("full").style.top)+percent+"px"; lastScrollY=lastScrollY+percent; } suspendcode="<div id=\"full\" style='right:1px;POSITION:absolute;TOP:600px;z-index:100'><a onclick='window.scrollTo(0,0);'>返回顶部</a><br></div>" document.write(suspendcode); window.setInterval("heartBeat()",1); </script>
------解决方案--------------------
啊偶
------解决方案--------------------
reference:
http://www.cnblogs.com/insus/articles/1406122.html