Log in

View Full Version : Is this a not bugged spoiler code?


Sworm
05-01-2011, 12:37 PM
Hi all,

i have "adapted" a spoiler code to show only the button..... here the code:
<div style="margin:20px; margin-top:5px"><div class="quotetitle"><input type="button" value="Mostra" style="width:59px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Nascondi'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostra'; }" /></div><div class="quotecontent"><div style="display: none;">{param}</div></div></div>

Working well in my 3.8.7 version, but i'm not sure that if is good to use in.... some coder can check it?

thanks