Otóż potrzebuję napisać skrypt który po najechaniu myszką na napis Autorzy zmieni kolor innego tekstu. Napisem tak:
<script type="text/ecmascript"> function zmien(item) { var element = document.getElementById("item"); element.setAttribute("fill","black"); } </script> <text onmouseover="zmien('link1')" style="fill:brown;font-size: 20px"> <tspan x="50" y="50">Autorzy:</tspan> </text> <text x="300" y="100" id="link1" fill="pink" style="font-size: 25px"> xxx <tspan x="50" y="100">imie nazwisko</tspan> <tspan x="50" y="150">imie2 nazwisko2</tspan> </text>
no i nie dziala. Proszę o pomoc!