inherit
134992
0
May 26, 2012 2:38:57 GMT -8
SubDevo
Creator of LSD...
3,861
December 2008
subdevo
|
Post by SubDevo on Aug 18, 2009 0:56:46 GMT -8
Quick Reply - Expand/Collapse by SubDevoTested in IE, FF, Opera and Safari. No Preview, but I think you will figure it out! 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 Code:<script type="text/javascript"> <!-- /* Quick Reply - Expand/Collapse by SubDevo */ /* Global Footer - Please leave this header intact. Do not repost. */ /* interoceandesigns.proboards.com or lsdp.proboards.com */ 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>
|
|