20.10.2014, 20:10
Code:
<div>
<input type="button" value="Zeigen" style="width:80px;background-color:#356EFF;border-color:#356EFF;border-radius:7px;color:#fff;font-size:12px;margin:5px;padding:2px;" 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 Spoiler'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Zeigen';}">
</div>
<div>
<div style="background: #ddd;margin: 0 15px 15px 15px;padding: 5px;border: 1px solid #858585;display: none;">
$1
</div>
</div>
</div>
Und zwar, möchte ich jetzt anstatt dem Button ein postbit.
Code:
<img src="images/elegantblue/postbit_spoiler.gif"
So, jetzt bin ich aufgeschmissen, habe da schon etwas rumprobiert aber hab es nicht geschafft das es funktioniert und das postbit angezeigt wird..
Hoffentlich kann mir hier jemand helfen

Mit freundlichen Grüßen