<html>
<head>
</head>
<body>
<button id=t1 style=background-color:#bfbfbf;cursor:hand;width:70 onMouseOver=setInterval('stCol(1,30,50,30)',1000); onMouseOut=reCol(1); onclick=alert('누꼬?');><span style="font-size:9pt;top:20px;border-style:none;height:5;font-weight:none;color:white;filter:shadow(color=gray,direction=135);">자바버튼</span></button>
<font size=2 face=돋움>
반짝거리는버튼!!옆버튼에 마우스를 올려보세요.1초만기다리세요^^
<br><p>
<BUTTON STYLE="background-color:#bfbfbf;cursor:hand;width:12;height:12;border:'1px outset'" onMouseOver="this.style.backgroundColor='red';this.style.border='1px inset'" onMouseOut="this.style.backgroundColor='#bfbfbf';this.style.border='1px outset'" onclick=alert('1번버튼클릭^^')></BUTTON>
<BUTTON STYLE="background-color:#bfbfbf;cursor:hand;width:12;height:12;border:'1px outset'" onMouseOver="this.style.backgroundColor='yellow';this.style.border='1px inset'" onMouseOut="this.style.backgroundColor='#bfbfbf';this.style.border='1px outset'" onclick=alert('2번버튼클릭^^')></BUTTON>
<BUTTON STYLE="background-color:#bfbfbf;cursor:hand;width:12;height:12;border:'1px outset'" onMouseOver="this.style.backgroundColor='green';this.style.border='1px inset'" onMouseOut="this.style.backgroundColor='#bfbfbf';this.style.border='1px outset'" onclick=alert('3번버튼클릭^^')></BUTTON>

꼬마버튼<p>
<script>

r=g=b=0;
var timerID=null;
function chCol(m,r2,g2,b2) {
                r+=r2;
                g+=g2;
                b+=b2;
                if (r>250||g>250||b>250) {
                        clearInterval(timerID);
                        reCol(m);
                        return;
                }
                str=r+','+g+','+b;
                document.all('t'+m).style.background='rgb('+str+')';
               
}
function reCol(dest) {
        r=g=b=0;
        document.all('t'+dest).style.background='#bfbfbf';
        clearInterval(timerID);
}
function stCol(n,r2,g2,b2) {
        timerID=window.setInterval('chCol('+n+','+r2+','+g2+','+b2+')',200);
}
</script>

</body>
</html>
Posted by 알 수 없는 사용자
,