Hi Jeff,

The following is a good reference (with examples) of modifying CSS
attributes directly with JavaScript:

http://www.w3schools.com/htmldom/dom_obj_style.asp

You can modify any CSS property on the fly using JavaScript, or you can
switch out the class name.

Seth Newton
Profound Logic Software
iSeries Web Development Is Too Easy...
with RPGsp (www.RPGsp.com)


-------- Original Message --------

Hi,
 
To date, I've only worked with "hard-coded" CSS.  Recently, I've been
looking for a means of dynamically changing CSS values on the fly... ie.
create a link on the page, and when you click it, it runs some javascript
that changes the CSS.  
 
Considering the number of items this would affect, using multiple CSS files
and switching between them won't work.
 
Does anyone know how to change CSS values on the fly? ... any ideas?
 
Thanks!
Jeff



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.