View Single Post
Old 17-02-2009, 08:37 AM   #6
_r.u.s.s.
I'm not Russ
but an ex-alektorophobic
 
_r.u.s.s.'s Avatar


 
Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
Default

there you go, all nicely in a button

HTML Code:
<div class="spoiler">

<input type="button" class="button" onclick='
if(this.nextSibling.nextSibling.style.display =="none"){
    this.nextSibling.nextSibling.style.display="block";
    this.value="Hide "+this.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;;
}else{
    this.nextSibling.nextSibling.style.display="none";
    this.value="Show "+this.nextSibling.nextSibling.nextSibling.firstChild.nodeValue;
}
' value="Show potatoes"/>



<span style="display:none;" class="content">{param}</span><div style="display:none;">{option}</div>
</div>
^ NO WHITESPACE HERE!: {param}</span><div style="dis..

example (accept university certificate)

also, i cannot see the condition you are using in case of empty bbtag attribute so figure yourself. you add it only to one place where {option} is
__________________

Last edited by _r.u.s.s.; 17-02-2009 at 08:40 AM.
_r.u.s.s. is offline                         Send a private message to _r.u.s.s.
Reply With Quote