当前位置: 代码迷 >> JavaScript >> java script程序,能否在多个页面内引用调用呢
  详细解决方案

java script程序,能否在多个页面内引用调用呢

热度:92   发布时间:2012-12-24 10:43:14.0
java script程序,可否在多个页面内引用调用呢
<script type="text/javascript">
<![CDATA[
function mout()  

{  

  alert(st1);  
 }  
 ]]>
</script>
  <object id="svg_obj" type="image/svg+xml" width="100%" height="80%" data="example_1.svg">
  Your browser is currently unable to display SVG images.
</object> //在example_1.svg 中 嵌入 java script st1="hello world";
   
<object id="svg_obj" type="image/svg+xml" width="100%" height="80%" data="example_2.svg">
  Your browser is currently unable to display SVG images.
</object> //在example_2.svg 的一个mouseout事件中 mouseout=mout() 返回helloworld的字符串 如何实现呢

 
  相关解决方案