怎样使以下这段JS代码与FIREFOX兼容?

来源:百度知道 编辑:UC知道 时间:2024/09/22 17:38:46
<div id="makewing" style="height:60px">
<script language=JavaScript >
marqueesHeight=20;
stopscroll=false;
with(makewing){
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;
makewing.innerHTML+=makewing.innerHTML;

function init_srolltext(){
makewing.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==300)
{
currentTop=0;
stoptime=0;

改成下面的吧:全部拷贝过去看看。
<div id="makewing_" style="height:20px;overflow:hidden">
<table width="100" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="20" class="hotwenzhang">$促销信息2$</td>
</tr>
<tr>
<td height="20" class="hotwenzhang"><script src="http://www.tiexin365.com/js/getnews.asp?classid=8&bytype=2&num=1&max=6"></script></td>
</tr>
<tr>
<td height="20" class="hotwenzhang"><script src="http://www.tiexin365.com/js/getnews.asp?classid=8&bytype=3&num=1&max=6