两个脚本起冲突,该怎么改呢?急~~~
一个<script type="text/javascript"><!--//--><![CDATA[//><!--
sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
window.onload=sfHover;
//--><!]]></script>
二个
function Func_HomeProductRe() {
if (document.all) {
HomeProductRe.filters.revealTrans.Transition=Math.floor(Math.random()*23);
HomeProductRe.filters.revealTrans.apply();
HomeProductRe.innerHTML="<table width=400 cellpadding=2 border=0 align=center style='cursor:hand;filter: revealTrans(Transition=40, Duration=1)' OnClick='javascript:gourl_ProductT(\""+ProductUrl[i_ProductImg]+"\")'><tr><td width=200 height=190 align=center><img src="+ProductImg[i_ProductImg]+" onResize='javascript:ImagesReSize(this)'></td><td class=EnglishFont style=LINE-HEIGHT: 140%>"+ProductDetail[i_ProductImg]+"<br><div align=right><a href="+ProductUrl[i_ProductImg]+" target=_blank>详细资料...</a></td></tr></table>"
HomeProductRe.filters.revealTrans.play();
if (i_ProductImg >= ProductImg.length-1) {
i_ProductImg = 0
}
else {
i_ProductImg++
}
}
timer = setTimeout("Func_HomeProductRe()",5000)
}
补充:我是在asp里运行,怎么关我主机什么事呢,能不能改这段脚本呢