[svn] Have different css for plain and eye candy views.

This commit is contained in:
martin speleo
2009-06-28 22:23:56 +01:00
parent 16b7404d9b
commit 22aa9990a5
3 changed files with 426 additions and 4 deletions

View File

@@ -79,7 +79,8 @@ $(hoverLink).bind('mouseout',
};
function showEyeCandy(){
function showEyeCandy(){
switchStylestyle("eyeCandy");
$("#eyeCandyFooterPopUps").load("/eyecandy");
$(".leftMargin,.rightMargin").show();
$(".showEyeCandy").hide();
@@ -90,13 +91,15 @@ linkHover("#surveyBinderLink","#surveyHover");
linkHover("#troggle","#timeMachine");};
function killEyeCandy(){
switchStylestyle("plain");
$(".leftMargin,.rightMargin").hide();
$(".showEyeCandy").show();
$(".killEyeCandy").hide();
$("#cavesLink").unbind('mouseover').unbind('mouseout');
$("#caversLink").unbind('mouseover').unbind('mouseout');
$("#surveyBinderLink").unbind('mouseover').unbind('mouseout');
$("#troggle").unbind('mouseover').unbind('mouseout');};
$("#troggle").unbind('mouseover').unbind('mouseout');
};
if (getCookie("eyeCandy") == "False")
{killEyeCandy();}
@@ -144,4 +147,14 @@ if (document.cookie.length>0)
}
}
return "";
};
};
/* Style Sheet Switcher */
function switchStylestyle(styleName)
{
$('link[@rel*=style][title]').each(function(i)
{
this.disabled = true;
if (this.getAttribute('title') == styleName) this.disabled = false;
});
}