HighDots Forums  

how do I edit css using javascript?

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss how do I edit css using javascript? in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Woody W
 
Posts: n/a

Default how do I edit css using javascript? - 07-13-2007 , 02:17 PM






how do I edit css using javascript?

Can anyone help?



Reply With Quote
  #2  
Old   
RobertVA
 
Posts: n/a

Default Re: how do I edit css using javascript? - 07-21-2007 , 02:06 PM






Woody W wrote:
Quote:
how do I edit css using javascript?

Can anyone help?
You inquiry covers A LOT of territory!

Seer if you can figure out anything from this tutorial.

http://www.webmonkey.com/webmonkey/a...tutorial1.html


Reply With Quote
  #3  
Old   
tfeserver
 
Posts: n/a

Default Re: how do I edit css using javascript? - 10-27-2007 , 07:36 AM



Hello,

you can use the .style attribute of the hmtl element.
exemple:

var foo = document.getElementById("your_id");
foo.style.background="#bbb";

--
tfe
http://tfeserver.be



Woody W wrote:
Quote:
how do I edit css using javascript?

Can anyone help?




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.