Hello:
I want to capture the SVGZoom Event with JavaScript in my SVG file,
My code is:
<svg id="all" width="100%" height="100%" onzoom="zoom()">
<script type="text/JavaScript">
function zoom(){
var mess;
mess="";
mess+="\r\n";
mess+="zoomAndPan:"+evt.target.getAttribute("zoomA ndPan");
mess+="\r\n";
//How Can I get the "newScale" and the other Properties of the
SVGZoomEvent ;
alert(mess);
}
</script >
..............
..............
</svg>
Thank you for your help!!
My E-mail:we**********@163.com.cn