MyBB Community Forums

Full Version: Change Spoiler Button To Text
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What do I change to change it from a button to (Click To View)?
The replacement
<div><div style="margin-bottom:2px; font-size: 12px"> <b>$1</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px;">
<div style="display: none;">$2</div>
</div></div>
You should post more detail for the beginner MyBB users Smile
(2013-04-13, 06:12 PM)LCTG Wrote: [ -> ]You should post more detail for the beginner MyBB users Smile


It aint a tutorial. I need help from an advanced mybb user haha.

/close thread fixed it. thanks in advance
Please Image Broo Big Grin ,,
He is asking for help.
change <input> to <a href="#" onClick="....">TEXT</a>