Tech Support Forum banner
Status
Not open for further replies.
1 - 5 of 5 Posts

· Registered
Joined
·
26 Posts
Discussion Starter · #1 ·
Hello there. I need some help modifying this code a bit.

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>
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?
 

· Registered
Joined
·
312 Posts
Try.... No idea if it would work or not :)

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: block;">{INPUT}</div>
Change red text above from display:none; to display:block; ? Worth a shot.
 
1 - 5 of 5 Posts
Status
Not open for further replies.
Top