The Code
<style type="text/css"> // Entire spacer .LeftContentSpacer, .RightContentSpacer { vertical-align: top; cursor: pointer; } // Hide/Show link style .LeftContentSpacer a, .RightContentSpacer a { color: #bbbbbb; font-weight: bold; font-size: 12px; } // style shown when you hover over the spacer .LeftContentSpacer.hover, .RightContentSpacer.hover { background: #333; opacity: 0.7; filter: alpha(opacity=70); } </style> <script type="text/javascript" src="http://www.axiomfiles.com/Files/258012/hideshow-zone-min.js"></script> <script type="text/javascript"> $(document).ready(function() { hideSides(); }) </script>
Customizing the script
hideSides({ hideIndicator : "‹", showIndicator : "›", switchIndicators : false, tooltip : "Click to hide/show side bar", tooltipWidth : 180, clickableSpacer : true });
<
style
type
=
"text/css"
>
#ctl00_ContentPlaceHolder1_LeftSpacer { vertical-align: top; cursor: pointer; color: #ff9900; }
#ctl00_ContentPlaceHolder1_RightSpacer { vertical-align: top; cursor: pointer; color: #ff9900; }
</
script
"text/javascript"
var HArrow = "H<
br
>I<
>D<
>E<
><
>S<
>B<
>A<
>R";
var SArrow = "S<
>H<
>O<
>W<
// Don't change anything below
$(document).ready(function() {
$('#ctl00_ContentPlaceHolder1_LeftSpacer').html('<
a
id
"LIcon"
onClick
"javascript:hideSide(this.id)"
>'+HArrow+'</
>');
$('#ctl00_ContentPlaceHolder1_RightSpacer').html('<
"RIcon"
>')
});
function hideSide(selSide){
var side = (selSide == "LIcon") ? $('#ctl00_ContentPlaceHolder1_LeftPane') : $('#ctl00_ContentPlaceHolder1_RightPane');
if (side.css('display') == "none") {
side.css('display',"");
$('#'+selSide).html(HArrow);
} else {
side.css('display',"none");
$('#'+selSide).html(SArrow);
}