Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Changing spoiler type.

  • 10-05-2005 05:03PM
    #1
    Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭


    I presume the way you have spoilers styled on boards is, the background colour of the text and the text become the same colour.

    Is there a way you could implement, so it has the background colour and the text color the same, but on a mouse hover, the background colour disappears, making the text visible?


Comments

  • Registered Users, Registered Users 2 Posts: 12,025 ✭✭✭✭Giblet


    OK I did the code of what I mean.

    For CSS file:
    .spoiler
    {
    color:#666666;
    background-color:#666666;
    }


    For HTML

    <SPAN class="spoiler" onmouseover="this.style.color='#FFFFFF';" onmouseout="this.style.color=this.style.backgroundColor='#666666'">TEXT HERE</span>


  • Registered Users, Registered Users 2 Posts: 11,985 ✭✭✭✭zAbbo


    What about people with different styles/theme's like that hidious cloud theme, eh, how would that work Horatio Alger


Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.

Advertisement