--- In [email protected], "swapnil06" <[EMAIL PROTECTED]> wrote: > > My need is to show inside svg > a AutoCad map and when i move my mouse pointer on an object i need to > get the information of it. > > The svg page should be divided into two halfs one for the autocad map > and one for the information of the object on the map on mouseover > > can anybody help me as soon as possible > > Thanks in advance >
Can you just embed your information within XML attributes of your own namespace? <svg xmlns:swapni="http://your.url/"> <g id="City1" onmouseover="displayTip(true,evt)" onmouseout="displayTip(false,evt)" swapni:Pop="40000" swapni:Lat="44.0456" swapni:Long="80.1235" > ... rest of SVG for the city graphical object here ... </g> </svg> Then you use JavaScript to pull out the swapni: attributes and display them wherever... var ns = {swapni:"http://your.url/"}; function displayTip( bDisplay, evt ) { var target = evt.target; if(bDisplay) { // extract the info var population = target.getAttributeNS(ns.swapni, "Pop"); ... // display tooltip with info... } else { // hide tooltip here... } } ----- 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/

