[Sie-announce] SIEコード [1109] outlineのdiv要素生成方法を変えた

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 24日 (火) 21:51:34 JST


Revision: 1109
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1109
Author:   dhrname
Date:     2009-03-24 21:51:34 +0900 (Tue, 24 Mar 2009)

Log Message:
-----------
outlineのdiv要素生成方法を変えた

Modified Paths:
--------------
    branches/04x/046/sie.js

Modified: branches/04x/046/sie.js
===================================================================
--- branches/04x/046/sie.js	2009-03-23 13:28:55 UTC (rev 1108)
+++ branches/04x/046/sie.js	2009-03-24 12:51:34 UTC (rev 1109)
@@ -80,6 +80,9 @@
   NAIBU.STObject = new Objectembeds();
   if (isMSIE) {
     setVMLNameSpace();
+    var oba = document.createElement("div");
+    oba.setAttribute("id","_NAIBU_outline");
+    document.body.appendChild(oba);
     NAIBU.STObject.next();
     success = true;
   } else if (/a/[-1] === 'a'){ //Firefoxだったらtrueを返す
@@ -1301,7 +1304,8 @@
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
     var circle = '<v:shape style="position:relative; antialias:false; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +ellipse+ '" stroked="f">' +ele.outerHTML+ '</v:shape>';
-    background.innerHTML = '<v:shape style="position:relative; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
+    background.innerHTML = '<v:shape style="position:relative; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" ></v:shape>';
+    } catch(e) {stlog.add(e,1175);}
     background.filters[0].apply();
     background.innerHTML = circle;
     background.filters[0].play();
@@ -1309,7 +1313,6 @@
     this.tar.setAttribute("filled", "false");
     ellipse = circle = data = list = pl = plm = gt = cx = cy = r = null;
     return true;
-    } catch(e) {stlog.add(e,1175);}
   }
   } else {
     return false;
@@ -1909,17 +1912,13 @@
   obst.width = regwv;
   obst.height = reghv;
   ob.setAttribute("coordsize",regwv  +" "+  reghv);
-  var oba = document.createElement("div");
-  oba.setAttribute("id","_NAIBU_outline");
-  obj.parentNode.appendChild(oba);
   var dn = new Date();
   STdocument[dn] = new SVGtoVML(obc,obwidth,obheight,regw,regh);
   obj.parentNode.insertBefore(ob,obj);
   STdocument[dn].read();
   STdocument[dn].set();
-  obj.parentNode.removeChild(oba);
   alert((new Date()).getTime() - dn.getTime());
-  data = oba = dc = null;
+  data = dc = null;
   if (NAIBU.STObject !== void 0) {NAIBU.STObject.next();}
 }
 }




Sie-announce メーリングリストの案内
Zurück zum Archiv-Index