User:The last username left/FixedWikiaHeader.js

// var borderTopColour = "#617884"; var backgroundImage = "url(http://images1.wikia.nocookie.net/__cb45893/common/skins/oasis/images/checkers.png)"; function fixWikiaHeader{ $("#WikiaHeader nav, #AccountNavigation li").css("position", "fixed"); document.cookie = "fixWikiaHeader=true"; } function unfixWikiaHeader{ $("#WikiaHeader nav, #AccountNavigation li").css("position", "static"); document.cookie = "fixWikiaHeader=false"; } $(function{ borderTopColour = $("#WikiaHeader nav").css("width", "1010px").css("border-top-color");  if (!borderTopColour)    borderTopColour = "#617884";  $("#WikiaHeader").css("height", "37px")  $("#WikiaHeader nav ul").css("border-top", "1px solid " + borderTopColour).css("margin-top", "-1px");  var cookie = document.cookie.match('(^|;) ?fixWikiaHeader=([^;]*)(|$)');  var fixWikiaHeader = cookie? unescape(cookie[2]) : "false";  if ( == "true")    fixWikiaHeader;  else    unfixWikiaHeader; }); //