JS to create a dithering button effect (mouse on the start jitter)

Source: Internet
Author: User

&LT;HTML&GT;&LT;HEAD&GT;&LT;TITLE&GT;JS Create dithering button effects (mouse on the start jitter) _ Shijiazhuang Pump Factory | Lawn sales </title><meta http-equiv= Content-type content="text/html; charset=gb2312">5borderlight="Green"> <TBODY> <TR> <td align=left> <script language=javascript><!--Beginpos= the; to=NULL; function Shake_funct2 (Object, Speed) {obj= eval (Object) txt=Clear_space (Obj.value); if(pos = = the) {txt= txt +"   "; POS= - the; }  Else{txt="   "+txt; POS= the; } obj.value=txt; Obj.style.width= parseint (obj.style.width) +POS; Obj=ObjectSP= speed to= SetTimeout ("shake_funct2 (OBJ,SP)", speed);} function Clear_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); } returntext;} function End_shake_funct2 (Object) {cleartimeout (to); Obj= eval (Object); TXT=Clear_space (Obj.value); Obj.value=txt; //alert (POS);  if(pos = =- the) {Obj.style.width= parseint (obj.style.width) + the; } POS= the}//End -To</SCRIPT> <form name=myform2> <table border=0> <TBODY> <TR> <TD> General jitter buttons </TD> <td align=middle width= the><input Onmouseover=shake_funct2 ( This, -) style="font-size:12px; width:150px"Onmouseout=end_shake_funct2 ( This) Type=button value="General Speed"> </TD></TR> <TR> <TD> fast-jitter button </TD> <td align=middle Width= the><input Onmouseover=shake_funct2 ( This, -) style="font-size:12px; width:150px"Onmouseout=end_shake_funct2 ( This) Type=button value="Faster Speed"> </td></tr></tbody></table></form></td></tr></tbody></ Table></center><br></body>

JS to create a dithering button effect (mouse on the start jitter)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.