2005-08-03から1日間の記事一覧
IEのcurrentStyleとDOMのgetComputedStyleを1個にまとめてみる。 function getCurrentStyle(obj,propertyName){ var Value = ''; if(document.body.currentStyle) { while(propertyName.match(/-([a-z])/)){ var S = RegExp.$1.toUpperCase(); propertyName…
IEのcurrentStyleとDOMのgetComputedStyleを1個にまとめてみる。 function getCurrentStyle(obj,propertyName){ var Value = ''; if(document.body.currentStyle) { while(propertyName.match(/-([a-z])/)){ var S = RegExp.$1.toUpperCase(); propertyName…