obj[i].innerHTML = "홍길동<br>이순신";
obj[i].style.backgroundColor = "#00ff00";
obj[i].style.border = "1px solid #ff0000"; // '1px solid DarkGreen'; dotted 2px #FF6600
obj[i].style.fontWeight = "bolder"; //bold,normal
obj[i].style.display = "block";
obj[i].style.fontStyle = "italic"; //italic,normal
obj[i].style.height = 40;
obj[i].style.width = 200;
obj[i].style.align = "center";
obj[i].style.top = 200;
obj[i].style.left = 200;
obj[i].style.zIndex = 0;
obj[i].focus();
obj[i].blur();
obj[i].style.letterSpacing = 20;
obj[i].style.letterPadding = "center";
obj[i].style.filter = "alpha(opacity=50)";
obj[i].style.cssText ="border:1px solid #ff0000;width:500px;text-align:center;padding-top:100px";
obj[i].style.overflow = "hidden";
obj[i].style.position = "relative";
obj[i].style.cursor = "pointer";
obj[i].style.padding = 10;
obj[i].style.paddingLeft = 30;
obj[i].style.paddingTop = 30;
obj[i].style.marginLeft = 50;
obj[i].style.marginTop = 50;
obj[i].style.fontFamily = 'Lucida Console'; //"궁서";
obj[i].style.backgroundImage = 'none';
obj[i].style.borderTopWidth = 5;
obj[i].style.fontSize = 15;
obj[i].innerText = "OK";
//alert( typeof(obj[i].innerText)); // string
obj[i].style.backgroundColor = "#00ff00";
obj[i].style.border = "1px solid #ff0000"; // '1px solid DarkGreen'; dotted 2px #FF6600
obj[i].style.fontWeight = "bolder"; //bold,normal
obj[i].style.display = "block";
obj[i].style.fontStyle = "italic"; //italic,normal
obj[i].style.height = 40;
obj[i].style.width = 200;
obj[i].style.align = "center";
obj[i].style.top = 200;
obj[i].style.left = 200;
obj[i].style.zIndex = 0;
obj[i].focus();
obj[i].blur();
obj[i].style.letterSpacing = 20;
obj[i].style.letterPadding = "center";
obj[i].style.filter = "alpha(opacity=50)";
obj[i].style.cssText ="border:1px solid #ff0000;width:500px;text-align:center;padding-top:100px";
obj[i].style.overflow = "hidden";
obj[i].style.position = "relative";
obj[i].style.cursor = "pointer";
obj[i].style.padding = 10;
obj[i].style.paddingLeft = 30;
obj[i].style.paddingTop = 30;
obj[i].style.marginLeft = 50;
obj[i].style.marginTop = 50;
obj[i].style.fontFamily = 'Lucida Console'; //"궁서";
obj[i].style.backgroundImage = 'none';
obj[i].style.borderTopWidth = 5;
obj[i].style.fontSize = 15;
obj[i].innerText = "OK";
//alert( typeof(obj[i].innerText)); // string
//obj[i].style.offsetLeft = 500;
//obj[i].style.offsetTop = 500;
//obj[i].posX = 500;
//obj[i].posY = 500;
//obj[i].text_ = "ttttttttttttt";
출처 : http://web7722.tistory.com
'IT > JavaScript' 카테고리의 다른 글
[JavaScript] document객체 정리 표입니다. (0) | 2011.10.19 |
---|---|
[JavaScript] 새로고침 방법 (0) | 2011.10.13 |
[JavaScript] disabled, visibility, display, readOnly (0) | 2011.10.10 |
[JavaScript] 배열 메소드 (0) | 2011.10.07 |
[JavaScript] - escape(), unescape() 함수 (0) | 2011.09.29 |