Reply
setAttribute values not "taking"
Old 07-28-2008, 09:38 PM setAttribute values not "taking"
Sleeping Troll's Avatar
Ultra Talker

Posts: 266
Name: Butch Begy
Trades: 0
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);
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-29-2008, 03:28 AM Re: setAttribute values not "taking"
chrishirst's Avatar
Super Moderator

Posts: 22,230
Location: Blackpool. UK
Trades: 0
IE no doubt! Internet Exploders "support" for setAttribute is, shall we say "sketchy" Some things work, some things don't!

though in this case the answer may be much simpler. Use "camelCaps" for "scrollDelay" and "scrollAmount"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-09-2008, 03:32 AM Re: setAttribute values not "taking"
Average Talker

Posts: 25
Trades: 0
newmarquee.setAttribute("scrollDelay","1");
newmarquee.setAttribute("scrollAmount","500");

case sensitive
softhink is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to setAttribute values not "taking"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10582 seconds with 13 queries