Click to See Complete Forum and Search --> : Z-order change


Ice3T
04-03-2003, 01:30 AM
is it possible to change the z-order of an element with an event

onSomething="this.style.z-order='5'"

somthing just like that exept that it actually would work.

gil davis
04-03-2003, 06:02 AM
I believe you mean "z-index". To change a style using JavaScript, you use the same name as the style element except hyphenated ones. Then you drop the hyphen and capitalize the letter after the hyphen (e.g., "zIndex"). Also, that porperty is an integer, not a string.onmouseover="this.style.zIndex=5"

Ice3T
04-03-2003, 02:28 PM
Thanks :D