![]() |
Inline Hover Spoiler BBCode
I'm fairly new to the vBulletin scene. Having been a member of Something Awful for a while, I've grown to really like their spoiler tag. I searched around, but I couldn't find a similar spoiler tag for vB3. Every single spoiler tag I saw requires that you either click a button (which doesn't allow inline spoilers) or highlight text (which requires unnecessary work). I wanted to mimic SA's simple tag on my forum, so I figured out how to do it, and this is what you see here today. This mod is completely theme-independent (it's just a BB code, nothing else!), and it'll keep your site W3C compliant.
Without hovering, you see nothing but black: https://vborg.vbsupport.ru/external/2012/03/41.jpg However, when you hover the mouse over the black section of text, it magically appears: https://vborg.vbsupport.ru/external/2012/03/41.jpg Title: Spoiler BB Code Tag Name: spoiler Replacement: HTML Code:
<span style="color: #000000; background: #000000;" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color='#000000';">{param}</span> Description: This tag changes the text into a black box which is unreadable. If you hover the mouse over the black box, the text will magically appear. Use Option: No Image: https://vborg.vbsupport.ru/external/2009/01/66.jpg Note: Depending on your template, you may need to change the colors in the HTML replacement code. Just make sure that color, background, and onmouseout match and that onmouseover is different. The colors in the above code are ideal for a template with a light background and dark text. |
Works great, thanks! Installed.
|
Fantastic works great, thanks
|
I was always wondering whats the purpose of spoiler , what its good for ?
Greets for SA |
Quote:
I'm glad you guys like it. It's very simple, but it's incredibly effective. :) |
Quote:
|
This was exactly what I was looking for and works perfectly, thanks.
|
Very nice - the collapse boxes were getting to be a lot of work for game hints. :)
|
Perfect! Thank You!!
|
coolllll.. thanks :)
|
All times are GMT. The time now is 12:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|