[svg-developers] Re: view info on mouse over?

2006-08-01 Thread Andreas Neumann
Hi Edith, --- In svg-developers@yahoogroups.com, "csorba_edith" <[EMAIL PROTECTED]> wrote: > > 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) { >

[svg-developers] Re: view info on mouse over?

2006-08-02 Thread csorba_edith
Hi, Thanks you for the help. Have one further question. I managed to change the .js for the viewInfo function, so now Opera and Firefox view it (although Batik still gives an error). But it works only for the ID, not for the Name: function viewInfoName(evt) { var infoLine = document.getE

[svg-developers] Re: view info on mouse over?

2006-08-02 Thread Andreas Neumann
Hi Edith, "name" is not a known attribute in the SVG namespace. You can define "name" in your own namespace however and prefix the attribute. You can say use attributes in a foreign namespace as follows: http://www.w3.org/2000/svg"; xmlns:attrib="http:// www.carto.net/attrib">