Thread: Spoiler BBCODE
View Single Post
  #3  
Old 11-24-2007, 05:55 PM
Weed Offline:
Newbie Poster
 
Join Date: Nov 2007
Posts: 9
Weed is on a distinguished road
Default

How to add custom image for the "Show" "Hide" button?

And here is a fix code with param.

Code:
<div style="margin: 5px;"> <div class="smallfont" style="margin-bottom: 2px;"> <b>Content Hidden!</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button"> </div> <div class="alt2" style="border: 1px inset; padding: 6px;"> <div class="spoiler" style="display: none;">{param}</div> </div> </div>
Reply With Quote