Joined
·
26 Posts
Hello there. I need some help modifying this code a bit.
I need it so that it doesn't hide the contents by default. I've tried but I can't seem to figure it out.
Can someone assist me with this?
Code:
<span 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.innerHTML = '<b>PLAYER: </b><a href=\'#\' onClick=\'return false;\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>PLAYER: </b><a href=\'#\' onClick=\'return false;\'>show</a>'; }" /><b>PLAYER: </b><a href="#" onClick="return false;">show</a></span></div><div class="quotecontent"><div style="display: none;">{IMPUT}</div>
Can someone assist me with this?