Shawn Olson Guestbook
Shawn Olson said: [ Regarding Altering CSS Class Attributes with JavaScript ]
I have just updated the script to add rules when the properties you want to set are not in the CSS. This may have been your problem when setting values with a dash. However, I could not replicate the dash problem in IE7 or Firefox 2. Could you let me know what browser and version is having that problem?[ See Responses ]
Kurt Munro said: [ See Comment Stimulus ]
Had major issues with this, then realised it's because you missed the // after http:// in the javascript src link...
[ See Responses ]
Reinier Post said: [ See Comment Stimulus ]
The problem is that CSS properties with a dash are spelled differently as Javascript DOM .style properties, e.g. background-color corresponds to .style.backgroundColor, so you have to insert a conversion function before you get or set the DOM property. This is true for at least IE 7 and Firefox 2.
Please note that not all of the ideas, opinions and statements made in this guestbook necessarily represent the views and opinions of Shawn Olson.
This guestook is kept spam-free by the protection of the GoodGuest System.
Featured Articles by Shawn Olson
November 18, 2009 Newsletter
11.18.09 November 18, 2009 Newsletter with a discussion on social networking sites like Facebook. Links to latest projects.
New CS:Source Map de_tension
11.17.09 My return to mapping is official with the remake of de_tension for CS:Source. This new map includes a novel mapping technique developed by Andrew Penry and myself called Dynamic Mapping.
Well Shark
11.03.09 A cartoon about the infamous well shark--a creature that is not as benign as is commonly thought.
Dragon Maze
10.04.09 A maze challenge featuring dragon art. Try to sneak past the dragon and escape the maze.







