Script link vibranti
a cura della WEBURL Soc. Coop. - Cuneo/Piemonte/Italia
servizio on line dal 2001
info@weburl.it
http://www.dominioweb.org
Registrazione domini internet compresi di spazio web illimitato + utility a 19,17 euro all'anno www.dominioweb.org
Se volete far vibrare il link al passaggio del mouse, non avete che da copiare questo codice, inserendolo tra <head> e </head>.
(in blu il codice da copiare):
<script language="JavaScript"
type="text/javascript">
// Prelevato su http://web-link.it
// CREDITS:
// Textlink-Shaker onMouseOver
// by Urs Dudli and Peter Gehrig
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All
rights reserved.
// Permission given to use the script provided that this
notice remains as is.
// Additional scripts can be found at
http://www.24fun.com/fast/index.html
// info@24fun.com
// 1/5/2001
// IMPORTANT:
// If you add this script to a script-library or a
script-archive
// you have to insert a link to
http://www.24fun.com/fast/index.html
// right into the webpage where the script will be
displayed.
// CONFIGURATION:
// Go to http://www.24fun.com/fast/index.html, open
category 'utility' and
// download the ZIP-file of this script containing
// the script-file with colorized step-by-step
instructions for easy configuration
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;
}
}
// End -->
</SCRIPT>
// -->
</SCRIPT>