﻿var NWS_Obj = new Array(); var NWS_ALL = new Array(); function createIframe(all) { for (var i = 0; i < all.length; i++) { var url = all[i][0], el = all[i][1], h = all[i][2], w = all[i][3]; var f = document.createElement("iframe"); f.src = url; f.scrolling = "no"; f.frameBorder = "0"; f.width = w + "px"; f.height = h + "px"; f.allowTransparency = "true"; f.style.cssText = "overflow:hidden; background:#fff; border:none; width:" + w + "px; height:" + h + "px;"; document.getElementById(el).appendChild(f) } }; if (window.addEventListener) window.addEventListener("load", function (e) { createIframe(NWS_ALL) }, false); else if (window.attachEvent) window.attachEvent("onload", function (e) { createIframe(NWS_ALL) }); else window.onload = createIframe(NWS_ALL);
