spoiler or hidden image?

Profile picture of LibraSid
LibraSid
@LibraSid
15 Years1,000+ PostsLibra

Comments: 0 · Posts: 4581 · Topics: 75
Ok so I see the div command, but then there's this button one Between arrows as well... Do I have to put all that too? I'm gonna have to save that text somewhere, I won't remember all that...

button title="Click to show/hide content" type="button" onclick="if(document.getElementById('spoiler') . style .display=='none') {document.getElementById('spoiler') . style .display=''}else{document.getElementById('spoiler') . style .display='none'}">Show/hide
Profile picture of Montgomery
Montgomery
@Montgomery
12 Years10,000+ Posts

Comments: 552 · Posts: 18848 · Topics: 149
Posted by Damnata
folks..when you put your text in, you left "spoiler" in it. that tag is for my first spoiler. replace it with any other word, everywhere you see "spoiler" in that line of code.




I did.

Quote me and have a look.

When I click it... NOTHING happens.



I think maybe it depends on other crap I don't

quite understand, like what I already have open etc.


Anywho....

It worked in preview. :/





Show/hide