Hi, I've been playing with svg for a few weeks, at the moment I've done
a little graph library.
Now, I want to get an effect like the famous "hint" of Delphi: if the
user put's the mouse over a node (a rect) I want to show a message
showing a description (a string).
The problem is that the event onmouseover and onmouseout (for deleting
the info message) are not "perfect". Sometimes it works, another it
doesn't. I've done a simple example basen on "the svg tutorial":
<code>
<svg xlink="http://www.w3.org/1999/xlink";
xmlns="http://www.w3.org/2000/svg";>
      <script languaje="JavaScript"
        type="text/javascript">
        <![CDATA[
           function onmouseover(evt){
             var elem = evt.target;
             var style = elem.getStyle();
             style.setProperty("fill-opacity",0.5);
           }
           
           function onmouseout(evt){
           var elem = evt.target;
           var style = elem.getStyle();
           style.setProperty("fill-opacity",1.0);
           }
        ]]>
      </script>
      <rect height="250" style="fill:red;stroke:none" width="250"
            x="20" y="20"
            onmouseover="onmouseover(evt)"
            onmouseout="onmouseout(evt)"
            />
</svg>
</code>

Have I made something wrong?, am i missing something?.
At the moment I am using Adobe SVG plugin 3.01 for Linux (debian sarge)
with mozilla-firefox.

Thanks

-- 

Manuel Cañón López
Departamento de I+D+I  -  Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: [EMAIL PROTECTED]
Tfno:+34 984 29 12 12
Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org




-----
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/

<*> 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