User:Olipro/monobook.js

function EQ2Newsfeedy { var replace = document.getElementById("eq2newsfeedy"); if (null != replace) { var scpt = document.createElement('script'); scpt.setAttribute('type', 'text/javascript'); scpt.setAttribute('src', 'http://eq2players.station.sony.com/en/newsfeed/javascript.vm'); scpt.setAttribute('language', 'JavaScript'); var ifrm = document.createElement('iframe'); ifrm.setAttribute('height', '100%'); ifrm.setAttribute('width', '100%'); //ifrm.setAttribute('frameborder', '0'); replace.innerHTML = ''; replace.appendChild(ifrm); ifrm.innerHTML = 'Test '; ifrm.appendChild(scpt); } //alert(document.getElementById("eq2newsfeed").innerHTML); }

// if (window.addEventListener) window.addEventListener("load",addOnloadHook,false); // else if (window.attachEvent) window.attachEvent("onload",addOnloadHook);

addOnloadHook(EQ2Newsfeedy);