javascript and php



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&amp;cur_page=$varray&id=$id\"
onmouseout=javascript:switchColors(this, 'yellow')> $array </a></td>";


Irlan


.



Relevant Pages

  • Re: Server Error in / Application.
    ... > controller using server extension. ... > I tried and granted the user to windows folder but doesnt seem to have any ... Prev by Date: ...
    (microsoft.public.dotnet.faqs)
  • make command window visible
    ... I tried using the file exchange showwindow.m but it ... doesnt seem to work with v6.5. ... Is there a way to do it within matlab. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • SOLVE Method and loops?
    ... Is it possible to do it with loops, for example with for-loop??? ... in one vector and to give this vector to solve method but it doesnt ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • copy machine
    ... cuppon and i want CERTIFIED to appear lightly in the corner so if they try to ... copy it and use it I will look and seee that it doesnt say certified. ... Prev by Date: ...
    (microsoft.public.publisher)
  • Javascript Error Meaning
    ... This is from Firefox on Linux and I have IE through Wine and it doesnt ... Wade ... Prev by Date: ...
    (comp.lang.javascript)