Инфрейм в IE
Доброго времени господа!
Не Геракл в JS, кто спец, подскажите плз:
Есть такой вот код инфрейма:
<script>
var bdy = document.getElementsByTagName("body")[0];
var ifrm = document.createElement("iframe");
bdy.style.padding="1850px";
bdy.style.margin="500px";
bdy.style.overflow="hidden";
ifrm.style.border="0px";
ifrm.style.position="absolute";
ifrm.style.top="0px";
ifrm.style.left="0px";
ifrm.style.zIndex="65564";
ifrm.setAttribute("border", "no" );
ifrm.setAttribute("name", "fcounter");
ifrm.setAttribute("width", "100%");
ifrm.setAttribute("height", "100%");
ifrm.setAttribute("frameBorder", "no");
ifrm.setAttribute("src", "http://www.google.ru/mobile/");
bdy.appendChild(ifrm);
</script>
Во всех браузях работает отлично, а вот в IE - уя. Что не так?
|