解决方案 »
- 有一选择删除表格,删除其中某行后,其合计却不相应重计或重计不正确
- |zyciis| 如何得出当前控件的上下控件的ID IE和Firefox都能用的,谢谢
- 函数弹出页面的判断
- 如何javascript对Table进行隐藏(asp。net)
- 知道窗口名字,是否可以获得窗口对象?
- 图片上传数据库,上传的时候如何限制图片的大小(长、宽)
- 但怎么实现ASP动态页面的全屏???
- 怎样使指定文本框中输入内容时,输入法不可选,只能输入半角英文?
- 我想在脚本中执行一个shell 命令该怎么做
- web项目部署到linux远程服务器,访问时不能调用pc的摄像头
- 首页面是一个frameset框架下面有3个子页面,目地是在首页面屏蔽F1-F12键
- javascript转义特殊字符
http://www.cnblogs.com/cloudgamer/archive/2008/04/30/1177682.html
document.write('<span style="height:68px;overflow:hidden;width:290px;"><a id="img1" href="@[ad_link1]"><img src="http://i1.6.cn/7a/60/h450081244163854.jpg" border="0px" width="290px" height="68px"/></a></span>');
document.write('<span style="height:68px;overflow:hidden;width:290px;"><a id="img" href="@[ad_link2]"><img src="http://i2.6.cn/a5/e5/n948391244539267.jpg" border="0px" width="290px" height="68px"/></a></span>');
document.write('<span style="height:68px;overflow:hidden;width:290px;"><a id="img3" href="@[ad_link3]"><img src="http://i3.6.cn/f9/8a/k837331244192528.jpg" border="0px" width="290px" height="68px"/></a></span>');
document.write('</div>')var oMarquee = document.getElementById("picrun"); //滚动对象
var iLineHeight = 68; //单行高度,像素
var iLineCount = 3; //实际行数
var index=0;
function run() {
oMarquee.scrollTop += Math.ceil(((index+1)*iLineHeight-oMarquee.scrollTop)*0.2);
//alert(oMarquee.scrollTop);
if ( oMarquee.scrollTop == iLineCount * iLineHeight ){
oMarquee.scrollTop = index = 0;
}
var speed = 0;
if ( oMarquee.scrollTop % iLineHeight == 0 ) {
speed=1000;if(oMarquee.scrollTop!=0)index++;
}
window.setTimeout( "run()", speed);
}
oMarquee.innerHTML += oMarquee.innerHTML;
window.setTimeout( "run()", 1000 );
把图片换下就可以了