Announcement

Collapse
No announcement yet.

[Release] A decent spoiler BB Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • gwon
    replied
    Got rid of the tables as they were complicating things. Went back to using the original method of a single Span/Class and now it works perfectly

    Mouse off:


    Mouse on:

    Leave a comment:


  • gwon
    replied
    it shouldn't be there forgot to edit it out, it wasn't needed in the end. I've edited the code appropriately.

    [EDIT #2] there we go. A full re-write. Works perfectly now.
    Last edited by gwon; Mon 23 Aug '04, 1:47pm. Reason: update

    Leave a comment:


  • Zachery
    replied
    What is the class for your span tag?

    Leave a comment:


  • gwon
    started a topic [Release] A decent spoiler BB Code

    [Release] A decent spoiler BB Code

    I've been trying to find a decent BB code for a spoiler for a while, and I've finally got one running and thought I'd share the code.

    Code:
    <SPAN CLASS="spoiler" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#000000'">&nbsp;{param}&nbsp;</span>
    And the class for your CSS variables

    Code:
    .spoiler {COLOR: black; TEXT-DECORATION: none; background-color: black; font-weight: normal;}
    Last edited by gwon; Mon 23 Aug '04, 1:46pm.

Related Topics

Collapse

Working...
X