ialex
New Member
Posts: 10
inherit
143112
0
May 29, 2010 13:09:41 GMT -8
ialex
10
July 2009
ialex
|
Post by ialex on Jul 28, 2007 1:31:10 GMT -8
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>
|
|