|
function Here(evt){ var R=evt.target if (evt.type=="mouseover"){ R.setAttribute("stroke-dasharray", "4,8") R.setAttribute("stroke-width", "10") R.setAttribute("fill", "green") } else if (evt.type=="mouseout"){ R.setAttribute("stroke-dasharray", null) R.setAttribute("stroke-width", "2") R.setAttribute("fill", "blue") } } ]]> </script>
<text id="Text" x="67" y="100" font-size="26" fill="black">Click</text> <rect onmouseover="Here(evt)" onmouseout="Here(evt)" x="55" y="76" height="30" width="80" stroke="black" stroke-width="2" fill="blue" opacity=".5" rx="10"/>
|