Thread: onclick
View Single Post

  #1 (permalink)  
Old 04-11-2004, 03:21 PM
gary
Guest
 
Posts: n/a
Default onclick

cant get onclick button to work,

want to click on "eyeLast" triangle, and change colour of "eye1" circle. its something easy no doubt but don't have debugger to help. Anyone know this?


<script language="JavaScript">

function changeColour() {

eye1.style="fill:red"
}

</script>

<path id="eyeLast" onclick="changeColour()"
d="M 80 70 L 60 85 80 100 z"
style="stroke:black; stroke-width:3; fill:blue" />


<circle id="eye1" cx="520" cy="300" r="20" style="fill:blue" />
Reply With Quote