/ Published in: JavaScript
URL: http://www.gtalbot.org/DHTMLSection/DynamicOpacity.html
Check whether style.opacity is available. If not, then apply IE proprietary opacity
Expand |
Embed | Plain Text
fadeDown: function (id) { var objToFade = document.getElementById(id); if(typeof objToFade.style.opacity == "string") { objToFade.style.opacity = 0.5; } else { //here use document.getElementById(id).filters.alpha.opacity } },
You need to login to post a comment.
