Hello,
I have a question. Does anybody know how to make it so that when a user clicks on an object, that object changes behavoir more than one time? I have:
<script type="text/ecmascript">
function Click(evt)
{
evt.target.setAttribute("transform", "scale(0.9)");
} //this function supposed to reduce an image
</script>
//this function draws an image and calls Click()
<path class="Shape" d="M 99 50 L 143 125 L 56 124 L 99 50z" onclick="Click(evt);"/>
The problem I have is that an image gets reduced only ONCE. How can I call Click() indefinitely to apply its behaviour on an object?
Thank you,
Victor.