podz… it allows you to write text that needs to behighlighted in order to view it.
A lot of sites dedicated to tv shows have spoiler text.. (text goes to same color as background; generally shown as Spoiler Text:[XXXXXXXXXXXXXXXXXXXXXXXXX]
with inbetween brackets not shown until highlighted
And yeah, probably needed for those with fan/tv show blogs. I would actually like this myself for some things
In that case, just create the right css class and use either a span or a div for that.
I still wouldnt even know how to do that, but thanks.. will see if Lisa Explains has some tips on doing that
Add this to your style sheet:
Use this in your post:
<span class="spoiler">This is spoiler text.
<div class="spoiler">This is a div with nothing but spoiler text.
That should work!
In an entry:
<div class=”spoiler”>Hidden characters here I hope</div>
and you might want to add ‘display:inline;’ to that if you are going to plant it inside paragraphs.
HA! Some of your own medicine for a change, Podzie! 😛
I want it to show:
Click here for spoiler!
and when they click it, On the bottom, the spoiler will appear.
I have to leave or I would but it’s giving me an error
object = document.getElementById("spoiler");
object.disabled = true;
<span onclick="showSpoilers();" onmouseover="this.style.cursor="hand";">Show Spoilers</span>
Spoiler: <span class="spoiler">Spoiler would go here</span>
Spoiler: <span class="spoiler">Spoiler2 would go here</span>
— Also seems i broke bbPress 🙂
Its giving you a error because you got a typo =P.
Where do I insert that code..
Ok well the bbPress bugs the code a bit but ya
dcramer[at]gmail.com is my msn, or email, contact me and ill help ya set it up.
If you email me include what version of wordpress, ill also send you updated code
- The topic ‘WP 1.5: Spoiler hack needed.’ is closed to new replies.