<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title><script language="javascript">var advInitTop=document.getElementById("apDiv2").style.pixelTop;function move(){document.getElementById("apDiv2").style.pixelTop=advTnitTop+document.body.scrollTop;}
window.onscroll=move;</script></head><body>
<div id="apDiv2" style="position:absolute; left:31px; top:32px; width:140px; height:119px; z-index:1;"><img src="file:///C|/Documents and Settings/Administrator/桌面/2.jpg" width="140" height="119" /></div></body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title><script language="javascript">var advInitTop=document.getElementById("apDiv2").style.pixelTop;function move(){document.getElementById("apDiv2").style.pixelTop=advTnitTop+document.body.scrollTop;}
window.onscroll=move;</script></head><body>
<div id="apDiv2" style="position:absolute; left:31px; top:32px; width:140px; height:119px; z-index:1;"><img src="file:///C|/Documents and Settings/Administrator/桌面/2.jpg" width="140" height="119" /></div></body>
</html>
解决方案 »
- jq 获取当前a标签title
- JS的轮换效果如何控制文字位置
- base64的js怎么运行?(在线)
- prototype.js 冲突? 如果去掉prototype.js 这个叶面运行正常 麻烦熟悉prototype.js 的指导一下
- javascript怎么把包含中文字符(unicode)的字符串转换为像C一样的字节数组
- 如果释放由removeNode()返回的DOM节点???
- java框架
- 耽误你 5 分钟..解决一个关于控件参数的问题.....
- 请问java中怎样替换字符串
- JS调用URL页面转向,控制器方法,点击按钮后报错
- 同一个页面出现两个以上window.onload起冲突的问题
- div 单击不能触发事件?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档 </title> <script language="javascript">
var advInitTop;
window.onload=function(){
advInitTop=document.getElementById("apDiv2").style.pixelTop;
}
function move(){ document.getElementById("apDiv2").style.pixelTop=advInitTop+document.body.scrollTop; }
window.onscroll=move; </script> </head> <body>
<div id="apDiv2" style="position:absolute; left:31px; top:32px; width:140px; height:119px; z-index:1;"> <img src="file:///C|/Documents and Settings/Administrator/桌面/2.jpg" width="140" height="119" /> </div> </body>
</html>