PDA

View Full Version : can i add news scroller in rounded corner box/div



lavanya
04-22-2008, 06:54 PM
1) Script Title:
Cross browser Marquee script
2) Script URL (on DD):
http://dynamicdrive.com/dynamicindex2/cmarquee.htm
3) Describe problem:
Can i add the scrolling news inside a round cornered box
how can i do it?
i changed the java script like below
if (iedom||document.layers){
with (document){
document.write('<div class="t"><div class="b"><div class="l"><div class="r"><div class="bl"><div class="br"><div class="tl"><div class="tr"><table id="newsScroller" border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+marqueewidth+';height:'+marqueeheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+marqueewidth+';height:'+marqueeheight+';background-color:'+marqueebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">')
write('<div id="iemarquee" style="position:absolute;left:0px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+marqueewidth+' height='+marqueeheight+' name="ns_marquee" bgColor='+marqueebgcolor+'>')
write('<layer name="ns_marquee2" left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table></div></div></div></div></div></div></div></div>')
}
}

lavanya
04-22-2008, 06:55 PM
but in IE only one side of box is displaying