<marquee direction="up" onmouseover="this.stop()" onmouseout="this.start()">12342<br>33434<br></marquee>
解决方案 »
- div显示连接
- js重写浏览器方法
- 如何将checkbox选择的值以块的形式传到文本框,在线等,急……
- form表单提交之后,打开一新小窗口问题
- 小问题,如何给innertext加上样式?
- js中获取jsp页面变量值?
- Java 平台上进行 JavaScript 编程
- 我用window.open()打开一个窗口A,在A中又用window.open()打开一个窗口B,我想让B的位置和A的一样,假设不把B的参数和A设为一样,还有其它
- 求问一个数组问题
- 关于readonly与spry验证文本域的问题
- 有没有办法在WEB页中作出像COMBO BOX(组合窗口式菜单)的效果啊?用DW行吗?
- 急,小弟,我想用正则表达式来检查我输入的text的内容是否是5位的数字型(0-9),只能是5位
strArray[0]=' 4234343
strArray[1]=' 423434342343434234343
strArray[2]=' <a href=http://abc.html><font color=#FFFFFF>三○四毫三</font></a>'showId=Math.floor(Math.random()*2);
tempStr=strArray[showId];
strArray[showId]=strArray[0];
strArray[0]=tempStr;</script> <script>
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=20% align=center class=whiteText>'+s+'</td><td width=80%>'
+'<div id="icefable1" style="width:100%;">'
+'<table width=350 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=100% height=21 class="whiteText">'+strArray[0]+'</td></tr>'
+'<tr><td width=100% height=21 class="whiteText">'+strArray[1]+'</td></tr>'
+'<tr><td width=100% height=21 class="whiteText">'+strArray[2]+'</td></tr>'
+'</table>'
+'</div>'
+'<div id="icefable2" style="position:absolute;z-index:1;visibility:hidden"></div>'
+'</td></tr>'
+'</table>');
marqueesHeight=21;
stopscroll=false;
icefable1.scrollTop=0;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=0; stoptime=0;
function init_srolltext(){
icefable2.innerHTML="";
icefable2.innerHTML+=icefable1.innerHTML;
icefable1.innerHTML=icefable2.innerHTML+icefable2.innerHTML;
setInterval("scrollUp()",50);
}
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==50)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=icefable2.offsetHeight-marqueesHeight;
icefable1.scrollTop+=1;
}
}
}
init_srolltext();
</script>
<br>38844844484</marquee>这个就可以了,还没解决吗??