Hi,
I was trying to implement a mouseover effect on my SVG map - to view
the name of the feature the mouse points at on a line - and I was
using the following .js code:
function viewInfo(evt) {
        var infoLine = document.getElementById("infoNote");
        text= infoLine.getFirstChild;
        var note= evt.getTarget.getAttributeNS(null,"name");
        text.setData(note);
}
It functions OK in IE, but Opera/Firefox does not read this function
and Batik gives me an error:
"viewinfo is not defined"
The same is the situation with the .js code I use to check the
visibility of a layer (so it can be turned on/off):
function viewLayer(name) {
        theLayer = document.getElementById(name);
        theVisibility = theLayer.getAttributeNS(null,"visibility");
        if (theVisibility == "visible") {
                theLayer.setAttributeNS(null,"visibility", "hidden");
                }
        else if (theVisibility == "hidden") {
                theLayer.setAttributeNS(null,"visibility", "visible");
        }
}
The error message in Batik is the same:
"viewLayer is not defined"
Can anyone help me out what is the problem with these .js functions?
Thank you very much.
Csorba





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