<style type="text/css">
#marqueecontainer{
position: relative;
width:800px; /*marquee width */
height: 25px; /*marquee height */
background-color:white;
overflow: hidden;
border: 0px;
padding: 2px;
}
</style><script type="text/javascript">
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualwidth=''function scrollmarquee(){
if(parseInt(cross_marquee.style.left))>(actualwidth*(-1)+8))
cross_marquee.style.left=parseInt(caross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
}
function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.left=0
marqueewidth=document.getElementById("marqueecontainer").offsetWidth
actualwidth=cross_marquee.offsetWidth
if(window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){
cross_marquee.style.width=marqueewidth+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)',delayb4scroll)
}
if(window.addEventListener)
window.addEventListener("load",initializemarquee,false)
else if(window.attachEvent)
window.attach("onload",initializemarquee)
else if(document.getElementById)
window.onload=initializemarquee
</script>
前台<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98%;"><h4>Your scroller contents</h4></div>
</div>
要实现右到左的Div滚动  怎么不动呢? 错误在哪里?