Post by SubDevo on Aug 16, 2009 13:25:40 GMT -5
Quick Reply - Expand/Collapse by SubDevo
Tested in IE, FF, Opera and Safari.
Preview at the bottom of this page. We use this code here at LSDp!
Nice code to give you the ability to hide/show (expand/collapse) your Quick Reply area! No text is added to your Quick Reply title bar. The entire row of the "Quick Reply" title is clickable. Click anywhere on the title bar to toggle the visibility of the Quick Reply. This code uses cookies to "remember" your preference, so they must be enabled. If your cookies are deleted, it will show the Quick Reply normally.
There are NO LOOPS in this code. Straight DOM. Fast...
Enjoy!!!
SubDevo
Location: Global Footer
Tested in IE, FF, Opera and Safari.
Preview at the bottom of this page. We use this code here at LSDp!
Nice code to give you the ability to hide/show (expand/collapse) your Quick Reply area! No text is added to your Quick Reply title bar. The entire row of the "Quick Reply" title is clickable. Click anywhere on the title bar to toggle the visibility of the Quick Reply. This code uses cookies to "remember" your preference, so they must be enabled. If your cookies are deleted, it will show the Quick Reply normally.
There are NO LOOPS in this code. Straight DOM. Fast...
Enjoy!!!
SubDevo
Location: Global Footer
<script type="text/javascript">
<!--
/* Quick Reply - Expand/Collapse by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */
var td=document.getElementsByName("message")[0]; var qrx="qrHideMe=qrHidden";
if(td&& !(document.searchForm||document.postForm||location.href.match(/=emailall/i))){
var qrR=td.parentNode.parentNode.parentNode.parentNode; qrR.id="qrL";
with(qrR.previousSibling.firstChild){title="Expand/Collapse"; style.cursor="pointer"; onclick=function(){qrHide();}}
qrR.style.display=(document.cookie.match(qrx))?"none":"";
}
function qrHide(){ var qrS=document.getElementById("qrL").style;
var tog=(qrS.display=="none")?1:0; qrS.display=(tog)?"":"none";
document.cookie=qrx+";expires=Sat, 17 Jan "+((tog)?"1984":"2100")+" 12:12:12 UTC; path=/;";
}
//-->
</script>