User:Techman129/global.js

importScriptPage('User:Joeytje50/ChatPMs.js', 'c'); importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); function SideRailSubmenus { if($('#WikiaMainContent').width < 1000) { $('body').prepend('.rail-menu-tab-right {width:35px; height:25px; background-image:-moz-linear-gradient(top, white 35%, #F2F2F2 65%); background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(35%, white), color-stop(65%, #F2F2F2)); border:1px solid #ccc; float:right;} #WikiaRail {z-index:99999999999;} #WikiaRail div > section, #WikiaRail div > form {width:300px; -webkit-box-shadow:#ccc 0px 0px 2em 0.1em; box-shadow:#ccc 0px 0px 2em 0.1em;} '); $('#WikiaPageHeader details').css({"width": '980px'}); $('#WikiaMainContent').css({"width": '1000px'}); $('#catlinks').css({"width": '1000px'}); $('.article-comm-text').css({"width": 'auto'}); var topmargin = -32; $('#WikiaRail').css({"position": 'absolute', "margin-left": '727px', "margin-top": '80px'}); window.modulearr = []; for(var i = 0; i < document.getElementById('WikiaRail').children.length; i++) { window.modulearr.push(module = document.getElementById('WikiaRail').children[i]); }		for(var i in window.modulearr) { topmargin += 32; var module = window.modulearr[i]; //The module we're acting on			module.style.display = 'none !important'; var div = document.createElement('div'); div.style.cssText = 'margin-top:' + topmargin + 'px;'; div.innerHTML = ' '; module.parentNode.insertBefore(div, module); div.appendChild(module); //Start clock on mouseover, if the mouse doesn't move out in 3/10 second, show module //If the mouse moves out, clear timer. Nifty little setup module.parentNode.onmouseover = function(event) {window.modulepar = this; window.timemodule = setTimeout('ShowRailMenu', 300);} module.parentNode.onmouseout = function(event) {window.modulepar = undefined; clearTimeout(window.timemodule);} }		window.modulepar = window.modulearr[window.modulearr.length - 1]; HideRailMenu; } }