MyBB Community Forums

Full Version: CSS Button for Multi-quote question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've replaced most of my button images with CSS buttons. However, I wondered if anyone could give me a few pointers for the multi-quote button?

The template I'm editing is the one below...

postbit_multiquote
<a href="javascript:Thread.multiQuote({$post['pid']});" style="display: none;" id="multiquote_link_{$post['pid']}"><img src="{$theme['imglangdir']}/postbit_multiquote.gif" alt="{$lang->postbit_multiquote}" title="{$lang->postbit_multiquote}" id="multiquote_{$post['pid']}" /></a>
<script type="text/javascript">
//<!--
	$('multiquote_link_{$post['pid']}').style.display = '';
// -->
</script>

An example of a template I've changed to a CSS button, "postbit" being the class for my button...

postbit_email
<a href="member.php?action=emailuser&amp;uid={$post['uid']}" title="{$lang->postbit_email}" class="postbit">Email</a>

For the multi-quote button I'd like to swap between two different classes, say "postbit" and "postbit_selected" when the user clicks on it. I'd also like to change the text from "QUOTE+" to "QUOTE-".

Is there a simple way to do this? Javascript isn't one of my strengths which is the main reason for asking.