New Spoilers Tag

Tools    





I've wanted to do this forever. I experimented for hours with JavaScript something like two years ago, at one point, trying to create a script that could automatically highlight spoilers. This week, however, it occurred to me that I could achieve the same effect (only better) with a bit of DHTML. Here's the result:

WARNING: "Citizen Kane" spoilers below
Rosebud's his sled. And all you didn't even have to drag your cursor over any text to find out, either.

I can now die happy.

This change is retroactive, so all previous uses of the spoilers tag will now operate this way.



A system of cells interlinked
Hmmm, doesn't seem to do anything when I click the reveal....
__________________
“Film can't just be a long line of bliss. There's something we all like about the human struggle.” ― David Lynch



Very cool.... thanks O' Wise One...
__________________
You never know what is enough, until you know what is more than enough.
~William Blake ~

AiSv Nv wa do hi ya do...
(Walk in Peace)




Originally Posted by Sedai
Hmmm, doesn't seem to do anything when I click the reveal....
I had to add a couple of JavaScript functions to the thread display page, so it's possible it's a minor cache problem. Can you try a hard-refresh, and perhaps a cache clearing, and let me know if you still have the problem?



Originally Posted by Sinny McGuffins
It doesn't work for me. I tried a refresh, and I even cleared out my cache. Still nothing.
Is there an error in the status bar of your browser? If so, what does it say? Also, can you view the source of the page, run a search, and tell me if the phrase "function show" appears anywhere?



A system of cells interlinked
Viewed the source, and it does have a "function show" entry (aside from your reply, of course.)

No error in my bar. Still not seeing it. I am on latest Firefox, but I am also walled, not sure if that matters.



It works for me...
__________________
Vice, Virtue. It's best not to be too moral. You cheat yourself out of too much *life*. Aim above morality. If you apply that to life, then you're bound to live life fully.
-Ruth Gordon, Harold and Maude



Female assassin extraordinaire.
*smother's yoda with kisses*

you wonderful, wonderful dude ...
__________________
life without movies is like cereal without milk. possible, but disgusting. but not nearly as bad as cereal with water. don't lie. I know you've done it.



Originally Posted by Yoda
Is there an error in the status bar of your browser? If so, what does it say? Also, can you view the source of the page, run a search, and tell me if the phrase "function show" appears anywhere?
No error in the status bar. How do I run a search on the source of the page?

When I click on "View Spoilers", the page just refreshes itself.



The People's Republic of Clogher
Works great, so thanks Chris...

...but.

Whaddabout those poor people who've never seen Citizen Kane? The suspense concerning the workings of the new spoilers tags must be killing them!

WARNING: "Something that everyone can read without fear" spoilers below
I've got a blue toilet seat.


Ah wait, it's backwards compatible you say?

As you were, everyone...
__________________
"Critics are like eunuchs in a harem; they know how the Tatty 100 is done, they've seen it done every day, but they're unable to do it themselves." - Brendan Behan



Randomly visiting for now
I'm gonna test as well.

WARNING: "Click to reveal hidden message" spoilers below
BLeeeaAAA!!!................................woahh!!!! *I love this new system, It's very cool Chris..................................SPUCKETAAAA!!!