Hi, Dave.
I'm writing to you, but anyone interested in contributing would be welcome to add in.
I'm trying to figure out how to create three hidden DOM elements (DIVs), set the background color of each one to a different color, then later read those colors.
Basically, it's sort of a rough 'CSS enabled' check. If the DIVs are created with, say, a red, white, and blue background, but are read back with different colors (or no color), then either CSS is disabled or unsupported, or the user has specified his own style sheet.
I know I'll probably have to use the DOM heirarchy (we won't worry about the older browsers) to do it, but I'm not sure how to get started.
Any ideas? Even if it doesn't use DIVs, that'd be fine, just some way to check for the style sheet I specified as the one being used.
Thanks
I'm writing to you, but anyone interested in contributing would be welcome to add in.
I'm trying to figure out how to create three hidden DOM elements (DIVs), set the background color of each one to a different color, then later read those colors.
Basically, it's sort of a rough 'CSS enabled' check. If the DIVs are created with, say, a red, white, and blue background, but are read back with different colors (or no color), then either CSS is disabled or unsupported, or the user has specified his own style sheet.
I know I'll probably have to use the DOM heirarchy (we won't worry about the older browsers) to do it, but I'm not sure how to get started.
Any ideas? Even if it doesn't use DIVs, that'd be fine, just some way to check for the style sheet I specified as the one being used.
Thanks