![]() |
Better Spoiler bb code
Hello, i had to post this for a friend,
Enjoy it. Code made by ilT My site: http://somewhereyoubelong.com No Title Title: Spoiler (No Title) Tag: spoil Replacement: Code:
<div id="spoiler"><div><input type="button" value="Show Spoiler!" style="width:100px;font-size:12px;margin:10px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" /> Use Option: No With Title Title: Spoiler (With Title) Tag: spoil Replacement: Code:
<div id="spoiler"><div><font size="4">{option}</font><input type="button" value="Show Spoiler!" style="width:100px;font-size:12px;margin-left:10px;margin-bottom:3px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" /> Use Option: Yes Screenshot https://vborg.vbsupport.ru/external/2007/11/9.png |
thanks much - here is the image so people can upload it to their own server. Can the hidden text be viewed in archive mode?
|
Just change the image with anything you want...
All i can say is that it's pretty nasty from him to add such a background. |
no go error
Warning: sprintf() [function.sprintf]: Too few arguments in includes\class_bbcode.php on line 1115 |
I get this error also.
Other than that it looks good. |
Very, very cool. I like it. :)
[high]* projectego clicks install[/high] |
Does this function properly with multiple spoilers in a single post? I hacked my own board for somethign similar, but ran into that particular hurdle.
|
The problem with this is the spoilers are shown in the mouse over even since the replacement doesn't take effect until they view the thread.
|
can someone tweak this into so that we can use our own images?
like we can supply our own little thumbnail for each spoiler ? thanks |
Quote:
Just change picture link to you. |
All times are GMT. The time now is 07:05 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:
|