this will give greater cotrol of positioning
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
/*<![CDATA[*/
#marquee1 {
position:relative;left:0px;top:-5px;width:975px;background-Color:#33CCFF;
}
#marquee2 {
position:relative;left:0px;top:50px;width:975px;background-Color:#33CCFF;
}
/*]]>*/
</style></head>
<body>
<img src="http://dev.bhglaar.com/images/new_bhglaar_header.gif" alt="header" width="975" height="103" border="0" alt=""/>
<div id="marquee1" onmouseover="S1.Speed=0;" onmouseout="S1.Speed=-2;" >
<span><nobr><font face="Arial" font-weight="bold" font-style="normal" font-size="14px" color="white"><b> SANTA MONICA / CULVER CITY / BEVERLY HILLS / WEST HOLLYWOOD / LOS ANGELES / BEL AIR / HOLLYWOOD / LOS FELIZ / MARINA DEL REY / BRENTWOOD / PACIFIC PALISADES / WESTWOOD / SILVERLAKE / VENICE / WEST LOS ANGELES /</b></font></nobr></span>
</div>
<div id="marquee2" onmouseover="S2.Speed=0;" onmouseout="S2.Speed=2;" >
<span><nobr><font face="Arial" font-weight="bold" font-style="normal" font-size="14px" color="white"><b> SANTA MONICA / CULVER CITY / BEVERLY HILLS / WEST HOLLYWOOD / LOS ANGELES / BEL AIR / HOLLYWOOD / LOS FELIZ / MARINA DEL REY / BRENTWOOD / PACIFIC PALISADES / WESTWOOD / SILVERLAKE / VENICE / WEST LOS ANGELES /</b></font></nobr></span>
</div>
<script type="text/javascript">
/*<![CDATA[*/
function TextMarquee(o){
var oop=this,obj=document.getElementById(o.ID),w=obj.offsetWidth,slide=obj.getElementsByTagName('*')[0],ssz=slide.offsetWidth,slider=document.createElement('DIV');
slider.style.position='relative';
slider.style.left=-ssz+'px';
slider.style.top='0px';
slider.style.width=ssz*4+'px';
obj.appendChild(slider);
slider.appendChild(slide);
slider.appendChild(slide.cloneNode(true));
slider.appendChild(slide.cloneNode(true));
this.slider=slider;
this.ssz=ssz;
this.lft=-ssz;
this.Speed=o.Speed;
setInterval(function(){ oop.rotate(); },50);
}
TextMarquee.prototype={
rotate:function(){
var spd=this.Speed,lft=this.lft+=spd,ssz=this.ssz;
this.slider.style.left=lft+'px';
if ((spd<0&&lft<-ssz)||(spd>0&&lft>-ssz)){
lft+=ssz*(spd<0?1:-1);
}
this.lft=lft;
}
}
var S1=new TextMarquee({
ID:'marquee1',
Speed:-2
});
var S2=new TextMarquee({
ID:'marquee2',
Speed:2
});
/*]]>*/
</script>
</body>
</html>
Bookmarks