The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Spoiler Tag: Visibility
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.. |
#2
|
||||
|
||||
i released one of bf2 that may help
|
#3
|
||||
|
||||
Cheers for the heads up..
Just viewed a demo with someone using your code and it worked perfectly in both browsers, so I'll have another crack at it tonight. It shouldn't be too hard to replace the button with a link instead.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|