HTML: The Spoiler “Tag”

By Daniel Miessler on August 18th, 2006: Tagged as HTML | Internet | Programming
  • http://www.jemjabella.co.uk/ Jem

    Your example spoiler code will not work in IE, you do know this.. right? It’d be easier to write black text on a black background and have visitors highlight it. Alternatively, a little JavaScript and you can hide/display content as much as you like.

  • http://www.jemjabella.co.uk Jem

    Your example spoiler code will not work in IE, you do know this.. right? It’d be easier to write black text on a black background and have visitors highlight it. Alternatively, a little JavaScript and you can hide/display content as much as you like.

  • http://dmiessler.com/ Daniel Miessler

    Nope, I didn’t know that. But I do now…thank you. LOL

    I have to disagree that it’s “easier” for users to highlight text. Most would consider that “work” and get annoyed. But I agree it’s kludgy. I’ll work on a more elegant solution.

  • http://dmiessler.com Daniel Miessler

    Nope, I didn’t know that. But I do now…thank you. LOL

    I have to disagree that it’s “easier” for users to highlight text. Most would consider that “work” and get annoyed. But I agree it’s kludgy. I’ll work on a more elegant solution.

  • http://www.slashback.org/ Tim

    I don’t think it would be easier to write black text on a black background since that’s what IE does anyway — allowing the user to highlight the block to see the text. True, not as snazzy as in FF, but it gets the job done.

  • http://www.slashback.org Tim

    I don’t think it would be easier to write black text on a black background since that’s what IE does anyway — allowing the user to highlight the block to see the text. True, not as snazzy as in FF, but it gets the job done.


Top

Popular

Information Security / Technology

Politics

Philosophy & Religion

Technology & Science

Culture & Society

Miscellaneous

Arguments

Projects

Collections

Twitter

What I'm Reading

Favorite Books and Essays

Top Blog Categories

Inputs