Deff,
а не проще это сделать через обычные скрипты:
(function(){
var msie = +(((window["eval"] && eval("/*@cc_on 1;@*/") && /msie (\d+)/i.exec(navigator.userAgent)) || [])[1] || 0);
if (msie && msie < 9) {
// добавляем namespace
try {
if (!document.namespaces["v"])
document.namespaces.add("v", "urn:schemas-microsoft-com:vml", "#default#VML");
} catch(_e_) { }
// создаем стиль для VML элементов
var vmlStyles = document.createElement('style');
vmlStyles.type = "text/css";
vmlStyles.styleSheet.cssText =
'v\\:vmlframe,v\\:shapetype,v\\:formulas,v\\:f,v\\:group,v\\:shape,v\\:fill{'+
'behavior:url(#default#VML)}v\\:vmlframe,v\\:group,v\\:shape{display:inline-block'+
';left:0px;top:0px;width:100%;height:100%}v\\:shape,v\\:group{position:absolute;z-index:-1}';
document.documentElement.firstChild.appendChild(vmlStyles);
var eqns = [
"val width","val height","prod @0 1 pixelwidth","prod @1 1 pixelheight","prod #0 1 10000",
"prod @4 10000 1","sum #0 0 @5","if @4 @4 @6","prod @7 @2 1","prod @6 @3 1","prod #1 1 10000",
"prod @10 10000 1","sum #1 0 @11","if @10 @10 @12","sum pixelwidth 0 @13","prod @14 @2 1",
"prod @12 @3 1","prod #2 1 10000","prod @17 10000 1","sum #2 0 @18","if @17 @17 @19",
"sum pixelwidth 0 @20","prod @21 @2 1","sum pixelheight 0 @19","prod @23 @3 1","prod #3 1 10000",
"prod @25 10000 1","sum #3 0 @26","if @25 @25 @27","prod @28 @2 1","sum pixelheight 0 @27",
"prod @30 @3 1","sum #4 #6 0","sum #5 #7 0","sum @32 @33 0","prod #4 @3 1","if @34 @35 @9",
"prod #5 @2 1","sum @0 0 @37","if @34 @38 0","prod #6 @3 1","sum @1 0 @40","if @34 @41 @9",
"prod #7 @2 1","if @34 @43 0","sum @7 0 #7","if @45 @45 0","prod @46 @2 1","sum @47 @43 0",
"if @34 @48 0","sum @6 0 #4","if @50 @50 0","prod @51 @3 1","sum @52 @35 0","if @34 @53 @9",
"sum @13 0 #5","if @55 @55 0","sum pixelwidth 0 @56","prod @57 @2 1","sum @58 0 @37","if @34 @59 0",
"sum @12 0 #4","if @61 @61 0","prod @62 @3 1","sum @63 @35 0","if @34 @64 @9","sum @20 0 #5",
"if @66 @66 0","sum pixelwidth 0 @67","prod @68 @2 1","sum @69 0 @37","if @34 @70 0","sum @19 0 #6",
"if @72 @72 0","sum pixelheight 0 @73","prod @74 @3 1","sum @75 0 @40","if @34 @76 @9","sum @28 0 #7",
"if @78 @78 0","prod @79 @2 1","sum @80 @43 0","if @34 @81 0","sum @27 0 #6","if @83 @83 0",
"sum pixelheight 0 @84","prod @85 @3 1","sum @86 0 @40","if @34 @87 @9"
];
// создаем правило с формулой
var shapetype = document.createElement('v:shapetype');
shapetype.id = 'vml-radius';
shapetype.stroked = false;
shapetype.coordorigin = "-1,-1";
shapetype.coordsize = "1000000,1000000";
shapetype.path = 'm,@9qy@8,l@15,qx@0,@16l@0,@24qy@22,@1l@29,@1qx,@31l,@9xm@44,@54qy@49,@36'+
'l@60,@36qx@39,@65l@39,@77qy@71,@42l@82,@42qx@44,@88l@44,@54xe';
var formulas = document.createElement('v:formulas');
for(var f, i = 0; i < eqns.length; i++ ) {
f = document.createElement('v:f');
f.eqn = eqns[i];
formulas.appendChild(f);
}
shapetype.appendChild(formulas);
document.documentElement.firstChild.appendChild(shapetype);
}
})();
подключаем это дело на странице в HEAD:
<!--[if VML&(lt IE 9)]><script type="text/javascript" src="vml.js"></script><![endif]-->