
function GetCurrentStyle (obj, prop) {
if (obj.currentStyle) {
return obj.currentStyle[prop];
}
else if (window.getComputedStyle) {
prop = prop.replace (/([A-Z])/g, "-$1");
prop = prop.toLowerCase ();
return window.getComputedStyle (obj, "").getPropertyValue(prop);
}
return null;
}
代码来自于http://tvweek.com/javascripts/default.js
标签:
技术
分类: ajax/javascript
所属版块
: 科技
: 科技
本文章引用通告地址(TrackBack Ping URL)为: 

本文章尚未被引用。
下一篇: linux下adsl拨号还没搞定:(
上一篇: fedora终于装好了
