摘要: html页面使用embed嵌入*.svg,页面上使用js函数可不可以调用svg内部的js函数?可以,在*.svg中嵌入的js函数上加一句top.*=*,就可以在html页中使用该函数了,例如:top.show=show;function show(){alert('welcome');}在HTML中调用SVG中的JS,要注意要在<embed />载入后调用,可以写在<embed />的onload事件中 阅读全文
posted @ 2012-06-14 10:12 jake2011 阅读(693) 评论(0) 推荐(1) 编辑