首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

【返回顶部代码】文字就行 换成图片就不行为什么?该怎么处理

2012-04-11 
【返回顶部代码】文字就行 换成图片就不行为什么?我把 返回顶部 四个字换成了 图片 就不可以了。请问为什么。J

【返回顶部代码】文字就行 换成图片就不行为什么?
我把 返回顶部 四个字换成了 图片 就不可以了。请问为什么。

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.scrollTopelse    {/*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

热点排行