Beowulf
20th-June-2007, 03:20 PM
THIS IS A SPOILER
nope that didn't work..
ah. I see it's a custom BB tag not a standard one..
I don't know about Vbulletin but I know you can put custom tags in the BBS system I use.
This "Should" do it I guess
<div>
<div style="background:#B7E5CE;border:1px dotted #000;border-bottom:0;border-left:4px solid #429E6F;color:#000;font-weight:bold;font-size:10px;margin:8px auto 0 auto;padding:3px;">
Spoiler! <a href="javascript:void(0);" onclick="javascript:if(parentNode.parentNode.getElementsByT agName('div')[1].style.display=='block'){parentNode.parentNode.get ElementsByTagName('div')[1].style.display='none';this.innerHTML='--Click here to view--';}else {parentNode.parentNode.getElementsByTagName('div')[1].style.display='block';this.innerHTML='--Click here to hide--';}">--Click here to view--</a>
</div>
<div style="color:#000;background:#FAFCFE;border:1px dotted #000;border-left:4px solid #429E6F;border-top:0;padding:4px;margin: 0 auto 8px auto;display:none;">{content}</div>
</div>
ooh err.. or perhaps not! :whistle:
nope that didn't work..
ah. I see it's a custom BB tag not a standard one..
I don't know about Vbulletin but I know you can put custom tags in the BBS system I use.
This "Should" do it I guess
<div>
<div style="background:#B7E5CE;border:1px dotted #000;border-bottom:0;border-left:4px solid #429E6F;color:#000;font-weight:bold;font-size:10px;margin:8px auto 0 auto;padding:3px;">
Spoiler! <a href="javascript:void(0);" onclick="javascript:if(parentNode.parentNode.getElementsByT agName('div')[1].style.display=='block'){parentNode.parentNode.get ElementsByTagName('div')[1].style.display='none';this.innerHTML='--Click here to view--';}else {parentNode.parentNode.getElementsByTagName('div')[1].style.display='block';this.innerHTML='--Click here to hide--';}">--Click here to view--</a>
</div>
<div style="color:#000;background:#FAFCFE;border:1px dotted #000;border-left:4px solid #429E6F;border-top:0;padding:4px;margin: 0 auto 8px auto;display:none;">{content}</div>
</div>
ooh err.. or perhaps not! :whistle: