如何在每天不同时段实现网页表格每个单元格从左向右移动

来源:百度知道 编辑:UC知道 时间:2024/06/14 13:09:02
像这个网站http://bjxinniang.com/hqgs.aspx,都是由table做成的单元格,每过半个小时,每个<td>里面的内容会向左到右移动一次,从上往下也移动一次,这是怎么做成的哦,用js语言,知道的朋友请告诉我下哦,谢谢啦
像这个北京新娘网的金牌会员一栏,写着“上下排每小时滚动一次,左右排每天滚动一次,排名不分先后”
真不知道他们是怎么做成来的,我观察过,过了半个小时,确实单元格有所移动
第一位回答者的回答是错误的,你要一直停留在网页上,那才会滚动,我的要求是随着时间的变化,你再次打开浏览器,这时候已经移动过了

// JavaScript Document
marqueesHeight=40;
stopscroll=false;
with(icefable1){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}
preTop=0; currentTop=marqueesHeight; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;

function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",1);
}init_srolltext();

function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==500)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1