|
Post by Wormopolis on May 19, 2011 19:15:12 GMT -8
Browsers Tested: IE and FF placement: global or board footer
lets you insert some HTML next to the Quick Reply area that will fit into the QR table itself.
you need some HTML with id="QRaddition" for it to insert
<table id="QRaddition" width="100%" style="display:none"> <tr> <td class="windowbg2"> blah blah<br>blah blah<br>blah blah<br>blah blah<br>blah blah<br>blah </td></tr></table>
<script type="text/javascript"> <!-- // content next to quickreply // by Wormopolis - www.wormocodes.com // request by 2787cmt // keep header intact // requires an element with id="QRaddition"
if (pb_action=='display') { for (frm=document.getElementsByTagName('form'), ff=frm.length-1; ff>=0; ff--) { if (frm[ff].method=='post' && frm[ff].message && frm[ff].message.accessKey && document.getElementById('QRaddition')) { var qrRow=frm[ff].parentNode.parentNode.parentNode; qrRow.cells[0].width=''; frm[ff].message.cols=''; frm[ff].message.style.width='90%'; var nwcl=qrRow.insertCell(-1); nwcl.className='windowbg'; qrRow.previousSibling.firstChild.colSpan=2; nwcl.appendChild(document.getElementById('QRaddition')); document.getElementById('QRaddition').style.display=''; break; } } }
// --> </script>
|
|
2787cmt
Not New Member
Posts: 5
2787cmt said 0 great things
|
Post by 2787cmt on May 26, 2011 10:02:20 GMT -8
Oh look, I'm famous. Lovely code.
|
|