how to implement the zoom on IE!
the code but it does not work!help me,please!

<svg xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; version="1.1" 
baseProfile="full" onload="Init(evt)" >
        <script type="text/javascript"><![CDATA[

//var doc=event.target.ownerDocument;
//var root=doc.getDocumentElement();
var doc;
var root;
var aa;
var count = 1;

 function Init(evt)//ͼƬ¼ÓÔØÊ±Ê¼þ
{
 doc=evt.target.ownerDocument;
 root=doc.documentElement;
 
 aa=doc.getElementById("TransformScale");
 //aa.addEventListener('DOMMouseScroll',fnZoomer,false);
 //aa.onmousewheel = fnZoomer();
}


function fnZoomer()
   
{
        count = fnCounting(count);
        fnResize(count);
        return false;
}
function fnCounting(count){   
        if (event.wheelDelta >= 120)
        count*=1.1;
        else if (event.wheelDelta <= -120)
        count*=0.9;   
        return count; 
}
function fnResize(count){    
      aa.transform = "scale("+ count +")";
}
 
         ]]>
        </script>

  <g id="TransformScale" fill-opacity="0.7" stroke="black" stroke-
width="0.1cm">
    <circle cx="6cm" cy="2cm" r="100" fill="red" transform="translate
(0, 50)"/>
    <circle cx="6cm" cy="2cm" r="100" fill="blue" transform="translate
(70, 150)"/>
    <circle cx="6cm" cy="2cm" r="100" fill="green" 
transform="translate(-70, 150)"/>
  </g>
</svg>


------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to