PDA

View Full Version : Trembling text



parasit-e
10-24-2006, 02:30 PM
1) CODE TITLE: Trembling text

2) AUTHOR NAME/NOTES: Sanjay Sajeevan

3) DESCRIPTION: This is just an alternative to the trembling text effect given in your website :)

4) URL TO CODE:
http://www.freewebs.com/parasit-e/gla.js

or, ATTACHED BELOW (see #3 in guidelines below):

Twey
10-24-2006, 03:11 PM
Hm... easier to write it like this:
function quiver(elm, turn) {
elm.style.left = (turn ? 0 : 5) + "px";
setTimeout(function(){quiver(elm, !turn);}, 100);
}

quiver(document.getElementById("txt1"), true);