Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



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

Posts: 351
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
 
 
Register now for full access!
Old 07-29-2008, 03:28 AM Re: setAttribute values not "taking"
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,516
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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.52792 seconds with 12 queries