function getStyle(obj, jsprop, cssprop) {
   if (obj.currentStyle) {
     return obj.currentStyle[jsprop];

   } else if (window.getComputedStyle) {
     return document.defaultView.getComputedStyle(obj, null).getPropertyValue(cssprop);

   } else {
     return null;
   }
 }

 function changeElement() {
   var obj = document.getElementById("myAnimalImg");
   var ret = getStyle(obj, "top", "top");

   alert(ret);
 }
2010/08/05 16:30 2010/08/05 16:30
Posted by Junios

트랙백 보낼 주소 : http://junios.net/tc/trackback/262

<< PREV : [1] : ... [30] : [31] : [32] : [33] : [34] : [35] : [36] : [37] : [38] : ... [187] : NEXT >>

BLOG main image
Junios World by Junios

카테고리

전체 (187)
주저리 (60)
Tips (8)
적어놓기 (7)
Hacking (1)
Programming (110)
(1)

최근에 받은 트랙백

글 보관함

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Total : 121509
Today : 21 Yesterday : 60