I found a good ( I guess ) Solution
When click :
To do it like that, put this code at the end of your headinclude template
Code:
<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
function showArcade(block) {
block.nextSibling.nextSibling.style.display ="block";
block.parentNode.removeChild(block);
}
// -->
</script>
Then, in postbit_legacy (I am not using postbit), put
Code:
<div class="Arcade">
<input type="button" class="button" onClick="showArcade(this);" value="Arcade Highscore">
<span class="content" style="display:none">$post[crowns]$post[champtext]</span>
</div>
in there
Another way (only one template edit - postbit_legacy)
Code:
<div class="smallfont" style="margin-bottom:2px"><b>Arcade:</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" >
<div style="display: none;">
$post[crowns]$post[champtext]
</div>
</div>
</div>