谢谢回复,主要是要怎么弄呢?
或者我这儿现在有这样的代码,但是是不停的运动,在这基础上能修改出我一楼说的那种效果吗?<div id=demo align="center" style=overflow:hidden;height:105;width:540;background:#ffffff;color:#ffffff>
<div id=demo1>
<table width="543" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=60" target="_blank"><img src="http://www.591job.com/ad/20059171439212767.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.jingu-expo.com/&id=59" target="_blank"><img src="http://www.591job.com/ad/20059171438292702.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=58" target="_blank"><img src="http://www.591job.com/ad/20059171438032683.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yizhigao.com/www/&id=57" target="_blank"><img src="http://www.591job.com/ad/20059171429482080.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.worldyigao.com/main.asp&id=56" target="_blank"><img src="http://www.591job.com/ad/20059171429142056.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.mengnina.com/&id=55" target="_blank"><img src="http://www.591job.com/ad/20059171428462008.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.zzjj.net/&id=54" target="_blank"><img src="http://www.591job.com/ad/20059171421421511.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=53" target="_blank"><img src="http://www.591job.com/ad/20059171421061486.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yuanmengfdz.com/&id=52" target="_blank"><img src="http://www.591job.com/ad/20059171419181353.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
</tr>
</table>
</div>
<div id=demo2></div>
</div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
或者我这儿现在有这样的代码,但是是不停的运动,在这基础上能修改出我一楼说的那种效果吗?<div id=demo align="center" style=overflow:hidden;height:105;width:540;background:#ffffff;color:#ffffff>
<div id=demo1>
<table width="543" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=60" target="_blank"><img src="http://www.591job.com/ad/20059171439212767.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.jingu-expo.com/&id=59" target="_blank"><img src="http://www.591job.com/ad/20059171438292702.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=58" target="_blank"><img src="http://www.591job.com/ad/20059171438032683.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yizhigao.com/www/&id=57" target="_blank"><img src="http://www.591job.com/ad/20059171429482080.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.worldyigao.com/main.asp&id=56" target="_blank"><img src="http://www.591job.com/ad/20059171429142056.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.mengnina.com/&id=55" target="_blank"><img src="http://www.591job.com/ad/20059171428462008.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.zzjj.net/&id=54" target="_blank"><img src="http://www.591job.com/ad/20059171421421511.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=53" target="_blank"><img src="http://www.591job.com/ad/20059171421061486.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yuanmengfdz.com/&id=52" target="_blank"><img src="http://www.591job.com/ad/20059171419181353.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
</tr>
</table>
</div>
<div id=demo2></div>
</div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
解决方案 »
- 为什么调用不了这个函数,,属于jQuery
- 求助.Extjs4 Grid 分页
- 高分 :用 jQuery 插件 easyUI 实现高级查询,无法获取动态添加行的元素,求教。。。
- JS解密...JS解密高手请帮忙
- 求助:jsp页面传值中文乱码,急!
- JS问题 请教
- 急需调用个搜索筐,谁能帮我实现调用成功,我愿意为您提供2张20元的网上电影充值卡
- 新手求助,请高手进来看看,分不够可以再加的
- javascript 表单 是否填写HELP
- 请问高手:body的onload时为什么有时对象初始化了,有时没有?
- window.print()的问题
- ViewPage - 网页分析工具(IE/Maxthon/MyIE2/TheWorld 插件)
<div id=demo align="center" style=overflow:hidden;height:105;width:540;background:#ffffff;color:#ffffff>
<div id=demo1>
<table width="543" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=60" target="_blank"><img src="http://www.591job.com/ad/20059171439212767.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.jingu-expo.com/&id=59" target="_blank"><img src="http://www.591job.com/ad/20059171438292702.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=58" target="_blank"><img src="http://www.591job.com/ad/20059171438032683.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yizhigao.com/www/&id=57" target="_blank"><img src="http://www.591job.com/ad/20059171429482080.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.worldyigao.com/main.asp&id=56" target="_blank"><img src="http://www.591job.com/ad/20059171429142056.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.mengnina.com/&id=55" target="_blank"><img src="http://www.591job.com/ad/20059171428462008.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.zzjj.net/&id=54" target="_blank"><img src="http://www.591job.com/ad/20059171421421511.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=53" target="_blank"><img src="http://www.591job.com/ad/20059171421061486.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yuanmengfdz.com/&id=52" target="_blank"><img src="http://www.591job.com/ad/20059171419181353.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
</tr>
</table>
</div>
<div id=demo2></div>
</div>
<script>
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0){
setTimeout(Marquee,2000)
demo.scrollTop-=demo1.offsetHeight
}
else{
setTimeout(Marquee,30)
demo.scrollTop++
}
}
var MyMar=setTimeout(Marquee,speed)
</script>
<div id=demo align="center" style=overflow:hidden;height:105;width:540;background:#ffffff;color:#ffffff>
<div id=demo1>
<table width="543" border="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=60" target="_blank"><img src="http://www.591job.com/ad/20059171439212767.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.jingu-expo.com/&id=59" target="_blank"><img src="http://www.591job.com/ad/20059171438292702.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=58" target="_blank"><img src="http://www.591job.com/ad/20059171438032683.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yizhigao.com/www/&id=57" target="_blank"><img src="http://www.591job.com/ad/20059171429482080.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.worldyigao.com/main.asp&id=56" target="_blank"><img src="http://www.591job.com/ad/20059171429142056.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.mengnina.com/&id=55" target="_blank"><img src="http://www.591job.com/ad/20059171428462008.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">3
<a href="AdRedirect.asp?Url=http://www.zzjj.net/&id=54" target="_blank"><img src="http://www.591job.com/ad/20059171421421511.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=53" target="_blank"><img src="http://www.591job.com/ad/20059171421061486.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yuanmengfdz.com/&id=52" target="_blank"><img src="http://www.591job.com/ad/20059171419181353.gif" width="150" height="40" border="0"></a>
</div></td>
</tr><tr>
<td width="165" height="52"> <div align="right">4
<a href="AdRedirect.asp?Url=http://www.zzjj.net/&id=54" target="_blank"><img src="http://www.591job.com/ad/20059171421421511.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.591job.com&id=53" target="_blank"><img src="http://www.591job.com/ad/20059171421061486.gif" width="150" height="40" border="0"></a>
</div></td>
<td width="165" height="52"> <div align="right">
<a href="AdRedirect.asp?Url=http://www.yuanmengfdz.com/&id=52" target="_blank"><img src="http://www.591job.com/ad/20059171419181353.gif" width="150" height="40" border="0"></a>
</div></td>
</tr>
</table>
</div>
<div id=demo2></div>
</div>
<script>
pos=Math.round((demo2.offsetTop)/2);
var speed=30
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0){
setTimeout(Marquee,2000)
demo.scrollTop-=demo1.offsetHeight
}
else{
if(demo.scrollTop==pos)
setTimeout(Marquee,2000)
else
setTimeout(Marquee,30)
demo.scrollTop++
}
}
var MyMar=setTimeout(Marquee,speed)
</script>