N
NeoPhreak
This function is called on the onMouseOut even of a table cell for a menu.
I want it to sort of fade out but for some reason i can't get it to work.
If some one could help me out on this one i would greatly appreciate it.
function out(obj)
{
var colors = new Array(5);
colors[0]='#006666';
colors[1]='#003333';
colors[2]='#002222';
colors[3]='#001111';
colors[4]='';
for(i=0; i<5; i++)
{
setTimeout("return","200");
obj.style.backgroundColor= colors;
}
}
would be called like this:
<td onMouseOut="Out(this);">Something</td>
Thanks in advance.
NeoPhreak >.<
I want it to sort of fade out but for some reason i can't get it to work.
If some one could help me out on this one i would greatly appreciate it.
function out(obj)
{
var colors = new Array(5);
colors[0]='#006666';
colors[1]='#003333';
colors[2]='#002222';
colors[3]='#001111';
colors[4]='';
for(i=0; i<5; i++)
{
setTimeout("return","200");
obj.style.backgroundColor= colors;
}
}
would be called like this:
<td onMouseOut="Out(this);">Something</td>
Thanks in advance.
NeoPhreak >.<