Heaven cascada
New member
I need an HTML spoiler code that expands by clicking. I originally used this code:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><strong>Spoiler :</strong> {TEXT1} : <input type="button" value="Afficher" style="width:60px;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 = 'Masquer'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Afficher'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT2}</div></div></div>
But the HTML wasn't interpreted. Can someone help me and give a working html spoiler code or maybe fix the above one?
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><strong>Spoiler :</strong> {TEXT1} : <input type="button" value="Afficher" style="width:60px;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 = 'Masquer'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Afficher'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT2}</div></div></div>
But the HTML wasn't interpreted. Can someone help me and give a working html spoiler code or maybe fix the above one?