Shawn Olson Guestbook
Brian H said: [ Regarding Altering CSS Class Attributes with JavaScript ]
Your script doesn't seem to work on any CSS properties that contain a dash (background-color, z-index, border-bottom-color, etc). Is there any specific reason for this? I'd like to be able to use this nice, simple script to move around the z-index of certain elements on a page.
[ See Responses ]
Gliktch Media said: [ See Comment Stimulus ]
(Replying to Brian H)
When using Javascript to modify/read a z-index, you have to use "zIndex" instead. I'm guessing the other properties you mentioned (pretty much anything with a hyphen or dash in it) would have a similar counterpart. This is so the function can differentiate between something like this:
variable1-variable2+variable3
and
variable-with-dashes
Capiche? ;)
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.
Preview of new CS:Source Map de_tension
11.17.09 My return to mapping is about to be official with the remake of de_tension for CS:Source. This new map includes a novel mapping technique developed my 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.
My Images by Shawn Olson
A view of the tunnels between bombsites A and B in de_tension.Preview of new CS:Source Map de_tension Posted on 11.17.09







