Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Getting global and external style sheet values in DHTML

Share this post!
 Vote this!

If you work with CSS, you probably know that the best place to define it in most cases is either in the HEAD section of your page (global CSS), or as a separate css file (external CSS). And you probably won't ever regret this decision either, unless you need to dynamically retrieve one of its properties' value that is. You quickly run into a problem- probing the familiar "style" object of DHTML in both IE and Firefox doesn't do much good in this case, as it can only help you get values of inline CSS property values, not global/external. In this tutorial, I'll discuss how to overcome this limitation. more...

0 comments:

Post a Comment