I am loading a Table via xmlhttpresponse, I am then creating a new marquee element and inserting the table via innerhtml, I set the properties of the marquee via setAttribute.
behaviour,slide fine
direction,left fine
scrolldelay,1 ?
scrollamount not working
Anybody know whats up?
Code:
var newmarquee = document.createElement("marquee");
newmarquee.setAttribute("behavior","slide");
newmarquee.setAttribute("direction","left");
newmarquee.setAttribute("scrolldelay","1");
newmarquee.setAttribute("scrollamount","500");
newmarquee.innerHTML = xmlHttp.responseText;
var Locate = document.getElementById("Start");
Locate.id = "Old";
newmarquee.id = "Start";
Locate.parentNode.insertBefore(newmarquee,Locate);
var t=setTimeout("Refresh()",5000);