The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
I'm trying to make a spoiler tag similar to one that I used back in the UBB days.. I've succeeded to an extent, but maybe someone will be able to help me.
This is my Replacement HTML: HTML Code:
<div style="margin:20px; margin-top:5px; "> <table width="100%" border="0" align="center" cellpadding="6" cellspacing="0"> <tr> <td><fieldset><legend>spoiler (<a href="#" onclick="spoiler.className='showspoiler'; return false;" ondblclick="spoiler.className='spoiler'; return false;">click to view</a>)</legend><span id="spoiler" class="spoiler">Spoiler example..</span></fieldset></td> </tr> </table> </div> HTML Code:
.spoiler { visibility: hidden; } .showspoiler { visibility: visible; } Ideally, I'd like to click the link once to display the spoiler and then once again to hide it. The main issue that I'm having with Internet Explorer is when more than one post on a page uses the spoiler tag, it then ceases to function.. I imagine that I'd have to use some kind of $post[postid] variable with it? Firefox just never displays the spoiler in the first place after clicking the link.. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|