| X Prime | 11-13-2004 11:54 PM |
Well, one thing that always annoyed me with most of the 'contemporary' spoiler code was that if you either used a smilie or color formatting inside it, it would not be hidden. I edited the javascript spoiler code file here for an effect that fixes this... Essentially, it hides and unhides everything inside spoiler boxes when you click inside said box. There are a few catches however...
1) You'd need to reference this JS file on any page that has spoiler code... That means adding a line to... Four templates?
2) Clicking a spoiler box reveals all spoilers in the thread because I have absolutely no inkling on how to make it box specific.
3) You'd need to overwrite your current spoiler BBCode.
4) That Show All Spoilers / Hide all Spoilers thing wouldn't work anymore because I'm practically javascript illiterate.
Would you like to try it Krang?
Here's the contents of the modded JS file...
And the modded BBcode...
1) You'd need to reference this JS file on any page that has spoiler code... That means adding a line to... Four templates?
2) Clicking a spoiler box reveals all spoilers in the thread because I have absolutely no inkling on how to make it box specific.
3) You'd need to overwrite your current spoiler BBCode.
4) That Show All Spoilers / Hide all Spoilers thing wouldn't work anymore because I'm practically javascript illiterate.
Would you like to try it Krang?
Here's the contents of the modded JS file...
|
||||
And the modded BBcode...
|
||||