function goright(){ var speed=10//速度数值越大速度越慢 demo2.innerhtml=demo1.innerhtml function marquee(){ if(demo2.offsetwidth-demo.scrollleft<=0) demo.scrollleft-=demo1.offsetwidth else{ demo.scrollleft=demo.scrollleft+1; } } var mymar=setinterval(marquee,10) demo.onmouseover=function() {clearinterval(mymar)} demo.onmouseout=function() {mymar=setinterval(marquee,10)} } function contentsize(size) { var obj=document.getelementbyid("newscontent");obj.style.fontsize=size+"px"; } function showlyadd(i) { if(i==1) { document.getelementbyid("lyadd").style.display="none"; document.getelementbyid("lylist").style.display=""; } else { //alert("dd"); document.getelementbyid("lyadd").style.display=""; document.getelementbyid("lylist").style.display="none"; } } function lycb(e) {if(e.name.value=="") { alert("留言人不能为空"); return false; } if(e.qq.value=="") { alert("电话不能为空"); return false; } if(e.gcode.value=="") { alert("验证码不能为空"); return false; } if(e.info.value=="") { alert("详细信息不能为空"); return false; } } function settransition(){ if (document.all){ banneradrotator.filters.revealtrans.transition=math.floor(math.random()*23); banneradrotator.filters.revealtrans.apply(); } } function playtransition(){ if (document.all) banneradrotator.filters.revealtrans.play() } function nextad(){ if(adnum