کد دکمه ای در حال حرکت
<!--This is a scrolling alert button. This example is for mail, but if you change <br>the action = to a URL, it will also go to a site. Make sure to reflect the words <br>on your scroll to match where you are taking them--> <br> <br><form name="form2" action=mailto:m_hackeri@yahoo.com> <br><input type="submit" name="banner" VALUE=".......Submit......." onClick="alert("Here We go !")"> <br><br> <br></form> <br>< language="Java"> <br>// Modified by CoffeeCup Software <br>var id,pause=0,position=0; <br> <br>function banner() <br>{ <br> // variables declaration <br> var i,k,msg=" Mail Mail MAil Mail MAil"; <br> <br> // increase msg <br> k=(60/msg.length)+1; <br> for(i=0;i<=k;i++) msg+=" "+msg; <br> <br> // show it to the window <br> document.form2.banner.value=msg.substring(position,position+60); <br> <br> // set new position <br> if(position++==msg.length) position=0; <br> <br> // repeat at entered speed <br> id=setTimeout("banner()",150); } <br> <br>// end --> <br>banner(); <br></>