Indonesia
<!--把如下代码加入<body>区域中--> <SCRIPT LANGUAGE="JavaScript"> <!-- Mulai pos = 15; KE = nol; function shake_funct2(objek,kecepatan) { obj = eval(objek) txt = clear_space(obj.value); if (pos == 15) { txt = txt + " "; pos = -15; } else { txt = " " + txt; pos = 15; } obj.nilai = txt; obj.style.width = parseInt(obj.style.width) + pos; obj = objek sp = kecepatan TO = setTimeout("shake_funct2(obj,sp)",kecepatan); } function clear_space(teks) { while (teks.substring(0,1) == " ") { teks = teks.substring(1,teks.panjang); } while(teks.substring(teks.panjang-1,teks.panjang) == " ") { teks = teks.substring(0,teks.panjang-1); } mengembalikan teks; } fungsi end_shake_funct2(objek) { clearTimeout(TO); obj = eval(objek); txt = clear_space(obj.value); obj.nilai = txt; //peringatan(pos); if (pos == -15) { obj.style.width = parseInt(obj.style.width) +15; } pos = 15 } // Akhir --> </skrip> <nama formulir=formulir2> <batas tabel=0> <tr><td> 一般抖动的按钮 </td> <td align=center width=160> <tipe input=nilai tombol = "一般速度" 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> <tipe input=button value = "更快速度" style="font-size:12;width:150" onmouseover ="shake_funct2(ini,50)" onmouseout="end_shake_funct2(ini)"> </td></tr> </Tabel> </form>