svnno****@sourc*****
svnno****@sourc*****
2009年 3月 29日 (日) 22:55:39 JST
Revision: 1113 http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1113 Author: dhrname Date: 2009-03-29 22:55:39 +0900 (Sun, 29 Mar 2009) Log Message: ----------- Modified Paths: -------------- branches/04x/046/sie.js Modified: branches/04x/046/sie.js =================================================================== --- branches/04x/046/sie.js 2009-03-26 14:55:10 UTC (rev 1112) +++ branches/04x/046/sie.js 2009-03-29 13:55:39 UTC (rev 1113) @@ -97,8 +97,10 @@ //vmlの名前空間をセット(必須) function setVMLNameSpace() { - document.namespaces.add("v","urn:schemas-microsoft-com:vml"); - document.namespaces.add("o","urn:schemas-microsoft-com:office:office"); + if (!document.namespaces["v"]) { + document.namespaces.add("v","urn:schemas-microsoft-com:vml"); + document.namespaces.add("o","urn:schemas-microsoft-com:office:office"); + } var st = document.createStyleSheet(); var vmlUrl = "behavior: url(#default#VML);display:inline-block;"; //inline-blockはIEのバグ対策 st.addRule("v\\:rect",vmlUrl);