Code: [ Select all ]
/* Start Toggle Show/Hide */.showBtn { cursor: pointer; display: block; padding: 10px 20px; border: 1px solid #0F0; border-radius: 4px; background: #444; color: #FFF; font-weight: 600; text-align: center; max-width: 250px; } .showBtn:hover { background: #0F0; border: 1px solid #666; color: #000; font-weight: 600; } .hideme { display: none; }/* End Toggle Show/Hide */
PHP: [ Select all ]
addJSToBody('includes/js/jquery.toggler.js','file');
{ATTACHBOX} {POLLBOX}
<tr> <td colspan="2"> <div class="showBtn">{L_ATTACHMENT_AOO}</div> <div class="hideme"> <table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline"> {ATTACHBOX} {POLLBOX} </table> </div> </td></tr>
<!-- BEGIN switch_quick_reply -->{QRBODY}<!-- END switch_quick_reply -->
<!-- BEGIN switch_quick_reply --><div class="showBtn">Show Quick Reply</div><div class="hideme"> {QRBODY}</div><!-- END switch_quick_reply -->
//// That's all, Folks!// -------------------------------------------------
/*****[START]****************************************** [ Base: Toggler Show/Hide ] ******************************************************/$lang['AttachAOO'] = 'Attachemts and other options';$lang['ShowQR'] = 'Show/Hide Quick Reply';/*****[END]******************************************** [ Base: Toggler Show/Hide ] ******************************************************/
'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'],'L_GOTO_PAGE' => $lang['Goto_page'],
'L_ATTACHMENT_AOO' => $lang['AttachAOO'],
'L_GOTO_PAGE' => $lang['Goto_page'],
'L_SHOW_QR' => $lang['ShowQR'],
jQuery.noConflict(), jQuery(function($) { $('.showBtn').click(function() { if ($(this).hasClass('active')) { $(this).removeClass('active'); $('.hideme').slideUp(1000); } else { $('.hideme').slideUp(1000); $('.showBtn').removeClass('active'); $(this).addClass('active'); $(this).next().filter('.hideme').slideDown(1000); } });});
<div class="showBtn">{L_ATTACHMENT_AOO}</div> <div class="hideme">
</div>
output generated using printer-friendly topic mod. All times are GMT - 7 Hours