Hello again guys,
I have yet another problem and require your assisstants -
<html>
<body bgcolor="black" text="yellow">
<span onmouseover="up(this)" onmouseout="down(this)" style="position: relative;">I am a person who seems to like many things</span><br>
<span onmouseover="up(this)" onmouseout="down(this)" style="position: relative;">For example fruits, home, friends and a whole lot of other sutff...</span><br>
<span onmouseover="up(this)" onmouseout="down(this)" style="position: relative;">But could not care less about you !!!</span>
<script>
var min = 0
var t1
var t2
var counter=1
function up(obj) {
if (min!==10) {
min++
obj.style.letterSpacing=min + "px"
t1 = setTimeout("up()",100)}
if (counter==2) {
clearTimeout(t2)
counter=1}
}
function down(objb) {
clearTimeout(t1)
if (min!==0) {
min--
objb.style.letterSpacing=min + "px"
t2 = setTimeout("down()",100)
counter=2}
}
</script>
</body>
</html>
Please tell me what is wrong with it (it is supposed to animate the text your mouse is on and then basically reverse it when your mouse is out but instead of quick animation it takes long jumps between the spacings)...
Bookmarks