한국어
<!--把如下代码加入<body>区域中--> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin pos = 15; 에 = 널; function shake_funct2(object,speed) { obj = eval(object) txt =clear_space(obj.value); if (pos == 15) { txt = txt + " "; 위치 = -15; } else { txt = " " + txt; 위치 = 15; } obj.value = txt; obj.style.width = parsInt(obj.style.width) + pos; obj = 객체 sp = 속도 TO = setTimeout("shake_funct2(obj,sp)",speed); } functionclear_space(text) { while (text.substring(0,1) == " ") { text = text.substring(1,text.length); } while(text.substring(text.length-1,text.length) == " ") { text = text.substring(0,text.length-1); } 텍스트를 반환합니다. } function end_shake_funct2(object) {clearTimeout(TO); obj = eval(객체); txt =clear_space(obj.value); obj.값 = txt; //경고(pos); if (pos == -15) { obj.style.width =parseInt(obj.style.width) +15; } pos = 15 } // 끝 --> </script> <form name=myform2> <table border=0> <tr><td> 一般抖动的按钮 </td> <td align=center width=160> <입력 유형=버튼 값 = "一般速degree" style="font-size:12;width:150" onmouseover="shake_funct2(this,100)" onmouseout="end_shake_funct2(this)"> </td></tr > <tr><td> 快速抖动的按钮 </td> <td align=center width=160> <input type=button value = "更快速titude" style="font-size:12;width:150" onmouseover ="shake_funct2(this,50)" onmouseout="end_shake_funct2(this)"> </td></tr> </Table> </form>