|
Post by Zaxinou on Jul 12, 2011 10:56:12 GMT 10
This code was made by iAlex and I'm reposting here.
This will allow you to Expand/Collapse the Quick Reply box. It will also remember whether you had it expanded/collapsed last, and keep it like that. (Magic =O)
Enjoy. ^^
Global Footer.
Cross Browser.
Proboards.
<script type="text/javascript"> <!--
/*Expand/Collapse Quick Reply - Open Source Thanks to Smangii for the idea =P - By iAlex*/
if(location.href.match(/action=display/)){ var iTd=document.getElementsByTagName('td') for(i=0;i<iTd.length;i++){ if(iTd.item(i).width=="100%" && iTd.item(i).className.match(/titlebg/) && iTd.item(i).innerHTML.match(/>Quick Reply</)){ var iExCo=document.createTextNode(' - (Expand/Collapse)'); iTd.item(i).appendChild(iExCo); if(document.cookie.match(/iLurvCookies=disabled/)){ iTd.item(i).parentNode.parentNode.rows[1].style.display='none'; } iTd.item(i).onmouseover=function(){this.style.cursor='pointer';}; iTd.item(i).onclick=function(){ var iQuick=this.parentNode.parentNode.rows[1] if(iQuick.style.display=="none"){ document.cookie='iLurvCookies=enabled;expires=Sat, 20 Jan 2050 12:12:12 UTC; path=/;'; iQuick.style.display=''; } else{ document.cookie='iLurvCookies=disabled;expires=Sat, 20 Jan 2050 12:12:12 UTC; path=/;'; iQuick.style.display='none'; } } } } }
//--> </script>
|
|