[TextLinkShaker]

Fahren Sie mit der Maus auf den textlink, um den Effekt zu sehen.

Dieses Script rüttelt Ihre Textlinks kräftig durch.

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript">

// 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

// This script was modified by N8i (www.nightfire.ch) in May 2005
// It works now with all DOM compliant browsers.


var oldtext
var newtext
var newlink
var speed=10
var i_speed=1.1
var i_text=1
var timer
var DOM = (document.getElementById)? 1 : 0;

function startshake(thislink) {
if (DOM) {
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 (DOM) {
clearTimeout(timer)
speed=20
newlink.childNodes[0].nodeValue=oldtext;
}
}

</script>

Aufruf des Scripts im Link

<a href="ihrlink" id="ein_name" onMouseOver="startshake(this.name)" onMouseOut="stopshake()">textlink</a>

Achten Sie bitte darauf, jedem Link eine eigene ID zu vergeben (grüner Bereich)!

[Autor]

24fun.com
modified by N8i (www.nightfire.ch)

[Download]

Kopieren Sie bitte den Scriptcode

Copyright © 1998- Nightfire Webworker Archiv Script No: 0286