Results 1 to 2 of 2

Thread: BB code test...

  1. #1
    Registered User Beowulf's Avatar
    Join Date
    Jul 2003
    Location
    The Beoverse
    Posts
    7,985
    Rep Power
    13

    BB code test...

    [spoiler]THIS IS A SPOILER[/spoiler]

    nope that didn't work..

    ah. I see it's a custom BB tag not a standard one..

    I don't know about Vbulletin but I know you can put custom tags in the BBS system I use.

    This "Should" do it I guess

    Code:
    <div>
    <div style="background:#B7E5CE;border:1px dotted #000;border-bottom:0;border-left:4px solid #429E6F;color:#000;font-weight:bold;font-size:10px;margin:8px auto 0 auto;padding:3px;">
    Spoiler! <a href="javascript:void(0);" onclick="javascript:if(parentNode.parentNode.getElementsByTagName('div')[1].style.display=='block'){parentNode.parentNode.getElementsByTagName('div')[1].style.display='none';this.innerHTML='--Click here to view--';}else {parentNode.parentNode.getElementsByTagName('div')[1].style.display='block';this.innerHTML='--Click here to hide--';}">--Click here to view--</a>
    </div>
    <div style="color:#000;background:#FAFCFE;border:1px dotted #000;border-left:4px solid #429E6F;border-top:0;padding:4px;margin: 0 auto 8px auto;display:none;">{content}</div>
    </div>
    ooh err.. or perhaps not!

  2. #2
    Commercial Operator
    Join Date
    Nov 2006
    Location
    Hastings
    Posts
    4,386
    Blog Entries
    2
    Rep Power
    10

    Re: BB code test...

    <div style="margin: 5px;">
    <div class="smallfont" style="margin-bottom: 2px;">
    <b>Spoiler!</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElements ByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline'){ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }else{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
    </div>
    <div class="alt2" style="border: 1px inset ; padding: 6px;">
    <div class="spoiler" style="display: none;"></div>
    </div>
    </div>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Personality Test - Which one are you?
    By Magic Hans in forum Chit Chat
    Replies: 26
    Last Post: 17th-June-2007, 04:53 PM
  2. test
    By BigBird in forum test messages
    Replies: 1
    Last Post: 18th-May-2007, 12:41 PM
  3. Intelligence test!
    By Katie Kicks Ass in forum Fun and Games
    Replies: 8
    Last Post: 7th-December-2006, 09:08 AM

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •