Post by SubDevo on Sept 3, 2009 2:52:54 GMT -5
Info Center - Expand/Collapse by SubDevo
Tested in IE, FF, Opera and Safari.
Preview on the Home page. We use this code here at LSD!
This code gives you the ability to hide/show (expand/collapse) your Info Center! No text is added to your Info Center title bar. The entire row of the "Info Center" title is clickable. Click anywhere on the title bar to toggle the visibility of the Info Center. This code uses cookies to "remember" your preference, so they must be enabled. If your cookies are deleted, it will show the Info Center normally.
Enjoy!!!
SubDevo
NOTE:
If you are using another code to rename the Info Center Title, place THIS code ABOVE the "renaming" code.
Location: Main Footer
Tested in IE, FF, Opera and Safari.
Preview on the Home page. We use this code here at LSD!
This code gives you the ability to hide/show (expand/collapse) your Info Center! No text is added to your Info Center title bar. The entire row of the "Info Center" title is clickable. Click anywhere on the title bar to toggle the visibility of the Info Center. This code uses cookies to "remember" your preference, so they must be enabled. If your cookies are deleted, it will show the Info Center normally.
Enjoy!!!
SubDevo
NOTE:
If you are using another code to rename the Info Center Title, place THIS code ABOVE the "renaming" code.
Location: Main Footer
<script type="text/javascript">
<!--
/* Info Center - Expand/Collapse by SubDevo */
/* Main Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */
if(pb_action=="home"){
var tb=document.getElementsByTagName("table");var icx="icHideMe=icHidden";
for(x=tb.length-1;x>0;x--){
with(tb[x]){if(width=="100%"&&cellPadding==4&&innerHTML.match(/<b>info\scenter/i)){break;}}
} tb[x].id="icTB"; with(tb[x].rows[0].firstChild){title="Expand/Collapse"; style.cursor="pointer"; onclick=function(){icHide();}}
(document.cookie.match(icx))?icHide():"";
}
function icHide(){ var icS=document.getElementById("icTB").rows;
var tog=(icS[1].style.display=="none")?1:0;
for(x=1;x<icS.length;x++){icS[x].style.display=(tog)?"":"none";}
document.cookie=icx+";expires=Sat, 17 Jan "+((tog)?"1984":"2100")+" 12:12:12 UTC; path=/;";
}
// -->
</script>