X
X
I cannot figure this one out. I would like to traverse through and
elements styles (not class) and get a list of all properties using
javascript property names and css property names along with the
corresponding values.
I cannot figure this out, it seems like it should be easy. Everything
out there only shows when people know the property they need, nothing on
full lists. I want to be able to go through the properties and search
for settings, merge and so forth.
cssTest will not work because it modifies the values. Example on border,
it would take a 3 property border statment and merge the values into one
border statement. No good. I would like to see the raw/orignal style.
Example
<td name="frank" onclick="showit(this)"
style="padding:4px;margin:4px;color:blue">
function showit(me) {
for (var i=1; i<me.style.length-1;i++) {
alert(me.stlye);
}
}
So basically, I would just like to run through the style and get a line
by line listing of the properties with CSS names and with the JS Names.
Something like this would be nice
w3c prop name js prop name value
padding padding 4px
margin margin 4px
color color 4px
background-color bgcolor blue
Is this at all possible?
Thanks.
elements styles (not class) and get a list of all properties using
javascript property names and css property names along with the
corresponding values.
I cannot figure this out, it seems like it should be easy. Everything
out there only shows when people know the property they need, nothing on
full lists. I want to be able to go through the properties and search
for settings, merge and so forth.
cssTest will not work because it modifies the values. Example on border,
it would take a 3 property border statment and merge the values into one
border statement. No good. I would like to see the raw/orignal style.
Example
<td name="frank" onclick="showit(this)"
style="padding:4px;margin:4px;color:blue">
function showit(me) {
for (var i=1; i<me.style.length-1;i++) {
alert(me.stlye);
}
}
So basically, I would just like to run through the style and get a line
by line listing of the properties with CSS names and with the JS Names.
Something like this would be nice
w3c prop name js prop name value
padding padding 4px
margin margin 4px
color color 4px
background-color bgcolor blue
Is this at all possible?
Thanks.