Posted by Irlan agous on 05/15/05 18:55
function switchColors(element, color)
{
links=document.getElementsByTagName("a") ;
for (var i = 0 ; i < links.length ; i ++)
links.item(i).style.color = 'blue' ;
element.style.color=color ;
}
I have an echo php link with a javascript mouseout, why doesnt this work?
<a href=\"$PHP_SELF?action=list_records&cur_page=$varray&id=$id\"
onmouseout=javascript:switchColors(this, 'yellow')> $array </a></td>";
Irlan
Navigation:
[Reply to this message]
|