svnno****@sourc*****
svnno****@sourc*****
2009年 3月 13日 (金) 22:59:07 JST
Revision: 1075
http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1075
Author: dhrname
Date: 2009-03-13 22:59:07 +0900 (Fri, 13 Mar 2009)
Log Message:
-----------
グラデーションの位置調整
Modified Paths:
--------------
branches/04x/045/sie.js
Modified: branches/04x/045/sie.js
===================================================================
--- branches/04x/045/sie.js 2009-03-13 13:42:04 UTC (rev 1074)
+++ branches/04x/045/sie.js 2009-03-13 13:59:07 UTC (rev 1075)
@@ -1278,7 +1278,7 @@
}
el = cx - rx; et = cy - ry; er = cx + rx; eb = cy + ry;
var outline = document.getElementById("_NAIBU_outline");
- var background = document.createElement("div");
+ var background = document.createElement("v:group");
background.style.position = "absolute";
background.style.top = 0; background.style.left = 0; background.style.width = this.w; background.style.height = this.h;
outline.appendChild(background);
@@ -1286,13 +1286,12 @@
background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
var er2 = er - el / 2;
var ellipse = "ar " +el+ "," +et+ "," +er+ "," +eb+ " " +er2+ ",0 " +er2+ ",0 e";
- var circle = '<v:shape style="position:relative; antialias:false;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +ellipse+ '" stroked="f">' +ele.outerHTML+ '</v:shape>';
+ 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;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
background.filters[0].apply();
background.innerHTML = circle;
background.filters[0].play();
this.tar.parentNode.insertBefore(background, this.tar);
- background.style.left = "-40"; //ずれを修正
this.tar.setAttribute("filled", "false");
ellipse = circle = null;
return true;