iAlex
Junior Member
Posts: 73
|
Post by iAlex on Dec 20, 2007 3:54:02 GMT -5
This will allow you to Expand/Collapse the Quick Reply box. This one will also remember whether you had the Quick reply expanded/collapsed last, and keep it like that when you next view it. (Magic =O)
Enjoy. ^^
Global Footer.
Cross Browser.
<script type="text/javascript"> <!--
/*Expand/Collapse Quick Reply - By iAlex - Open Source*/
if(location.href.match(/action=display/)){ var iTd=document.getElementsByTagName('td'); var i=iTd.length; while(--i){ if(iTd.item(i).width=="100%" && iTd.item(i).className=="titlebg" && iTd.item(i).innerHTML.match(/>Quick Reply</)){ var iQuiSpan=document.createElement('span'); iQuiSpan.innerHTML=' - <font size="1">(Expand/Collapse)</font>'; iQuiSpan.style.cursor='pointer'; iTd.item(i).appendChild(iQuiSpan); iQuiSpan.onclick=function(){iQuickColl(this);}; (document.cookie.match(/iQuickCollapse=iCollapsed/))? iQuickColl(iQuiSpan) : ''; break; } } } function iQuickColl(iSpan){ var iTr=iSpan.parentNode.parentNode.nextSibling; (iTr.style.display=="none")? document.cookie='iQuickCollapse=iCollapsed;expires=Sat, 20 Jan 1990 12:12:12 UTC; path=/;' : document.cookie='iQuickCollapse=iCollapsed;expires=Sat, 20 Jan 2050 12:12:12 UTC; path=/;'; (iTr.style.display=="none")? iTr.style.display='' : iTr.style.display='none'; }
//--> </script>
|
|