![]() |
jQuery Spoiler BB Code - Smooth Scrolling
Ive not seen a very pretty spoiler BB code so I thought I would make one. It uses some really simple jQuery code so its very easy to modify with some other cool effects ;)
Heres a demo Also, its worth mentioning that if you users browser is slow at parsing javascript they might see the spoiler for a split second. Anyway, heres how to install it. Open up the template headinclude, go to the bottom and add this code HTML Code:
<script src="http://code.jquery.com/jquery-latest.js"></script> Next add a new BB code use what ever options you want, but use this for the HTML replacement: HTML Code:
<div id="spoilerhead" class="thead">Spoiler</div> <div id="spoilercontent" class="alt1">{param}</div> |
Very nice, thanks!
|
Pretty stupid if it spoils it before the javascript loads, lol.
|
You should be able to avoid that problem; just have it hidden by default with the bbCode itself.
Code:
<div id="spoilerhead" class="thead">Spoiler</div> <div id="spoilercontent" class="alt1" style="display: none;">{param}</div> |
I saw the spoiler in your demo for about 30 seconds (after most of the page loaded all the way) then it finally hid itself.
|
no files - moved to graveyard
|
All times are GMT. The time now is 10:25 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:
|