[Sie-announce] SIEコード [1063] 不要なdiv要素を削除

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 11日 (水) 21:28:55 JST


Revision: 1063
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1063
Author:   dhrname
Date:     2009-03-11 21:28:55 +0900 (Wed, 11 Mar 2009)

Log Message:
-----------
不要なdiv要素を削除

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

Modified: branches/04x/044/sie.js
===================================================================
--- branches/04x/044/sie.js	2009-03-11 12:03:09 UTC (rev 1062)
+++ branches/04x/044/sie.js	2009-03-11 12:28:55 UTC (rev 1063)
@@ -1257,13 +1257,12 @@
     ele.setAttribute("type", "gradientTitle");
     ele.setAttribute("focus", "100%");
     ele.setAttribute("focusposition", "0.5 0.5");
-    var outline = document.createElement("div");
-    document.getElementById("_NAIBU_outline").appendChild(outline);
+    var outline = document.getElementById("_NAIBU_outline");
     var background = document.createElement("div"), gradient = document.createElement("div");
     background.style.position = "absolute"; gradient.style.position = "absolute";
     background.style.top = 0; background.style.left = 0; background.style.width = this.w; background.style.height = this.h;
-    outline.parentNode.insertBefore(background,outline);
-    outline.parentNode.insertBefore(gradient,outline.nextSibling);
+    outline.appendChild(background);
+    outline.appendChild(gradient);
     background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
     background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
     var elout = ele.outerHTML;




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