»
EnglishFrenchVietnamese

Print - Textlink-Shaker onMouseOver - JavaScriptBank.com

Full version: jsB@nk » Link » Textlink-Shaker onMouseOver
URL: https://www.javascriptbank.com/textlink-shaker-onmouseover-2.html

Textlink-Shaker onMouseOver © JavaScriptBank.comJust move your cursor over any textlink and the textlink starts shaking. Great, if you want to add a special effect that certainly draws more attention than simple style CSS-rollovers.

Full version: jsB@nk » Link » Textlink-Shaker onMouseOver
URL: https://www.javascriptbank.com/textlink-shaker-onmouseover-2.html



JavaScript
<SCRIPT language=JavaScript><!-- Beginning of JavaScript -if (document.layers) {alert("This script does not work with Netscape Navigator")}var timervar do_rotate="yes"function posobject(newtext) {if (document.all) {do_rotate="yes"rotationstyle.innerHTML='<OBJECT ID="rotationobj" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="position:relative;width:600px;height:600px">'+'<PARAM NAME="Line0001" VALUE="SetLineStyle(0)">'+'<PARAM NAME="Line0002" VALUE="SetLineColor(255,255,100)">'+'<PARAM NAME="Line0003" VALUE="SetFillColor(255,255,100)">'+'<PARAM NAME="Line0004" VALUE="SetFont(\'Arial\', 10, 100, 0, 0, 0)">'+'<PARAM NAME="Line0005" VALUE="Text(\''+newtext+'\', 0, 0, 0)">'+'</OBJECT>'document.all.rotationstyle.style.posLeft=0document.all.rotationstyle.style.posTop=0startrotation()}}function startrotation() {if (do_rotate=="yes") {    rotationobj.Rotate(30,30,10)rotationobj.Scale(1.1,1.1,1.1)    timer=setTimeout("startrotation()",20)}else {    clearTimeout(timer)document.all.rotationstyle.style.posLeft=-2000}}function stoprotation() {do_rotate="no"}// - End of JavaScript - --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<SPAN id=rotationstyle style="LEFT: -2000px; POSITION: absolute"><OBJECT id=rotationobj style="HEIGHT: 600px; POSITION: relative; WIDTH: 600px"><PARAM NAME="Line0001" VALUE="SetLineStyle(0)"><PARAM NAME="Line0002" VALUE="SetLineColor(255,200,200)"><PARAM NAME="Line0003" VALUE="SetFillColor(255,200,200)"><PARAM NAME="Line0004" VALUE="SetFont('Arial', 80, 100, 0, 0, 0)"><PARAM NAME="Line0005" VALUE="Text('', 0, 0, 0)"></OBJECT></SPAN><A href="http://www.echip.com.vn" onmouseout=stoprotation() onmouseover="posobject('JavaScriptBank.com')" target=_blank>Mouse over this to test [JavaScriptBank.com]</A><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->