Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
How to retrieve CSS property in Opera?
Jay Damon
Ranch Hand
Posts: 282
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is the proper way to retrieve a linked style sheet property in Opera (version 7.10)?
I can't seem to get any of the following to work:
var styleInfo = ": "; if (gridCell.currentStyle) { styleInfo += gridCell.currentStyle.backgroundColor; } styleInfo += " : "; if (gridCell.runtimeStyle) { styleInfo += gridCell.runtimeStyle.backgroundColor; } if (window.getComputedStyle) { var computedStyle = window.getComputedStyle(gridCell, ""); styleInfo += computedStyle.getPropertyValue("background-color"); } alert(styleInfo);
Eric Pascarello
author
Posts: 15385
6
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So who is not using a current version of Opera? LOL
Look through this
thread
:
http://www.codingforums.com/archive/index.php?t-19008.html
for some ideas
Eric
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Glassfish App Server : How to get the Web Container Properties?
how to check the entered value present in XML file or not
Date validation in struts....
jQuery and Hidden Input type not working
Tricky form problem glad for any ideas or tell me its not possible
More...