[Sie-announce] SIEコード [2965]

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 9月 24日 (土) 23:24:21 JST


Revision: 2965
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2965
Author:   dhrname
Date:     2011-09-24 23:24:20 +0900 (Sat, 24 Sep 2011)

Log Message:
-----------


Modified Paths:
--------------
    branches/08x/086/org/w3c/dom/svg.js

Modified: branches/08x/086/org/w3c/dom/svg.js
===================================================================
--- branches/08x/086/org/w3c/dom/svg.js	2011-09-24 14:23:03 UTC (rev 2964)
+++ branches/08x/086/org/w3c/dom/svg.js	2011-09-24 14:24:20 UTC (rev 2965)
@@ -4890,14 +4890,10 @@
     tar._tar.setAttribute("target", tar.target.baseVal);
     tar = void 0;
   }, false);
-  this.addEventListener("mouseover", function(evt){
-    var tar = evt.target,
-        taro = tar.ownerDocument._document_;
+  this.addEventListener("click", function(evt){
+    var tar = evt.target;
     if (tar.href.baseVal.indexOf(".svg") !== -1) { //もし、リンク先がSVGファイルならば
-      tar.ownerDocument._window.event.cancelBubble = true;
-      document.write("<html><head><title></title></head><body>");
-      document.write("<object data='" +tar.href.baseVal+ "' width='1000' height='1000'></object></body></html>");
-      NAIBU._main();
+      document.body.lastChild.innerHTML = "<object data='" +tar.href.baseVal.split("#")[0]+ "' width='1000' height='1000' type='image/svg+xml'></object>";
     }
   }, false);
   SVGURIReference.apply(this, arguments);




Sie-announce メーリングリストの案内
Back to archive index