Forum Moderators: open
var x = screen.width;
var y = screen.height;
How to change style then I am unsure. It has sth to do with document.style, however I forgot the proper syntax (I usually use this.style.backgroundColor='rgb(0,0,0)';)
Hope this helps a bit.
Best regards
Michal Cibor
On the other hand I just read:
Replacing Style Sheets
You can replace one style sheet with another by setting the href property of the style sheet to the URL of the replacement, as in the following example:
if (document.styleSheets(0).href!= null)
document.styleSheets(0).href = "newstyle.css";
More of this on:
[msdn.microsoft.com...]