On Friday 2002-10-11 22:23 +0200, niala.esugo wrote:
> <a href="page1.html" name="link1" target="frame-content"                       
> onClick="link1.style.color='red';
>               link2.style.color='blue';">
>      First choice
> </a>

You need to replace link1 where you use it as a variable with:
  document.getElementsByName("link1")[0]
or use an ID attribute and document.getElementById("link1").
(Note that you can probably use "this" to refer to the current element,
but it won't work for the others.  I'm not completely sure of the
details.)

-David

-- 
L. David Baron        <URL: http://www.people.fas.harvard.edu/~dbaron/ >

Reply via email to