/ Published in: JavaScript
URL: http://developer.apple.com/internet/webcontent/styles.html
Free, and cool! This gets aroung JS's issues with changing CSS styles on the fly.
Expand |
Embed | Plain Text
/* From Apple: http://developer.apple.com/internet/webcontent/styles.html setStyleById: given an element id, style property and value, apply the style. args: i - element id p - property v - value */ function setStyleById(i, p, v) { var n = document.getElementById(i); n.style[p] = v; }
You need to login to post a comment.
