User:Ryan Baker/chat.js

function importScript(url){ var tag = document.createElement("script"); tag.type="text/javascript"; tag.src = url; document.body.appendChild(tag);} window.onload = function{importScript("http://www.w3schools.com/jquery/jquery.js");}; $(function{ var body = document.body, html = document.documentElement; var dheight = body.scrollHeight; var dwidth = body.scrollWidth; document.body.style.height = "100%"; document.body.style.width = "100%"; //Add IRC element $("#WikiaPage").after(' '); aaa = .6*dheight - 30; bbb = .4*dheight - 32; document.getElementById("WikiaPage").style.height = "" + aaa-20 + "px"; IRCelem = document.getElementById("bottomIRC"); //Variables IRCelem.style.height		= "" + bbb + "px"; IRCelem.style.width		= "auto"; IRCelem.style.margin		= "" + aaa-2 + "px 10px 10px 10px"; IRCelem.style.display		= "block"; });