Shaky Link
Here is another Java code.This code will make the link shake when your curser touches the link.Just remember to put this in headers.
I cant give you a preview because it is awfuly fast.(Sorry about that)
Here is the code:
<SCRIPT
language="JavaScript"> // CREDITS: // Textlink-Shaker
onMouseOver
// by Jelly Raltr and Supernova // Copyright (c) 2007 Gary Peterson and
Supernova.
http://www.24fun.com All rights reserved. // Permission given to use the
script
provided that this notice remains as is. // Additional scripts can be
found at
http://www.hypergurl.com var oldtext var newtext var newlink var
speed=10 var
i_speed=1.1 var i_text=1 var timer function startshake(thislink) { if
(document.all)
{ newlink=eval("document.getElementById('"+thislink+"')")
oldtext=newlink.childNodes[0].nodeValue shaketext() } } function
shaketext() {
if (speed<=200) { if (i_text<0) {newtext=oldtext+" "} else if
(i_text>0) {newtext=" "+oldtext} newlink.childNodes
[0].nodeValue=newtext;
i_text=i_text*-1 speed=speed*i_speed timer=setTimeout("shaketext
()",speed)
} else { clearTimeout(timer) speed=20 newlink.childNodes
[0].nodeValue=oldtext;
} } function stopshake() { if (document.all) { clearTimeout(timer)
speed=20 newlink.childNodes[0].nodeValue=oldtext;
} } </script>
<a
href="http://www.yourlink.com" name="link1"
onMouseOver="startshake(this.name)"
onMouseOut="stopshake()">textlink</a>
Just remember to change your link.
<a
href="http://www.yourlink.com" name="link1" onMouseOver="startshake(this.name)"
onMouseOut="stopshake()">textlink</a>
If the shaky effect does not appear,try putting this code in Headers:
]<SCRIPT
language="JavaScript"> // CREDITS: // Textlink-Shaker
onMouseOver
// by Jelly Raltr and Supernova // Copyright (c) 2007 Gary Peterson and
Supernova.
http://www.24fun.com All rights reserved. // Permission given to use the
script
provided that this notice remains as is. // Additional scripts can be
found at
http://www.hypergurl.com var oldtext var newtext var newlink var
speed=10 var
i_speed=1.1 var i_text=1 var timer function startshake(thislink) { if
(document.all)
{ newlink=eval("document.getElementById('"+thislink+"')")
oldtext=newlink.childNodes[0].nodeValue shaketext() } } function
shaketext() {
if (speed<=200) { if (i_text<0) {newtext=oldtext+" "} else if
(i_text>0) {newtext=" "+oldtext} newlink.childNodes
[0].nodeValue=newtext;
i_text=i_text*-1 speed=speed*i_speed timer=setTimeout("shaketext
()",speed)
} else { clearTimeout(timer) speed=20 newlink.childNodes
[0].nodeValue=oldtext;
} } function stopshake() { if (document.all) { clearTimeout(timer)
speed=20 newlink.childNodes[0].nodeValue=oldtext;
} } </script>
And this code in footers,just remember to change the link to your desired link:
<a
href="http://www.yourlink.com" name="link1" onMouseOver="startshake(this.name)"
onMouseOut="stopshake()">textlink</a>
And if you too are a Java Guru like me,you should notice the
startshake
If you are good at java scripts you change that to your desired effect,but don't forget to change this code also:
stopshake
If you get any errors please comment,i will try to help you out.
Thank you for your time.