inserting script into an svg

Anonymous
06-17-2004, 01:42 PM
What I really want to do is have a javascript function written in an HTML file that embeds the SVG. I want the SVG, upon zooming in the Adobe Viewer, to call the javascript function in the HTML file.
I'd like to do that so that I won't have to put duplicate code in every SVG file.
Whats the best way to do that?

Anonymous
06-19-2004, 01:12 AM
You can put your function in html and to get svg root use
document.YourEmbedName.getSVGDocument().firstChild

In svg use onzoom = "parent.YourFunction()"

Michel

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum