|
-
Jun 4th, 2004, 06:34 AM
#3
It's almost correct, but you need to translate the names of the CSS properties. Every - in the name gets removed and the next character becomes uppercase, e.g.
font-weight -> fontWeight
And of course you need JavaScript-style assignment, that is
document.getElementById('thediv').style.fontWeight = "bold";
There are far more complicated ways to do other interesting things too, but they don't work in IE so they're usually not interesting.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|