Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default Spoiler-Type Code

    Anyone know a code for like a spoiler which u can modify the text so like




    But changing the text saying spoiler to summing else

    Edited by Lµke (Forum Moderator): Thread Moved from Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 28-04-2007 at 06:33 PM.
    EDTALKING


  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    I have a JS code. Ill find it in a min.

    I just use JS to change the style attributes of a DIV [:

  3. #3
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by :Edzy View Post
    Anyone know a code for like a spoiler which u can modify the text so like




    But changing the text saying spoiler to summing else


    Just put one set of the tags within the other set? :S I'm not sure what you mean..

  4. #4
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Thanks Si

    +REP
    EDTALKING


  5. #5
    Join Date
    Feb 2006
    Location
    Sunderland
    Posts
    5,027
    Tokens
    1,306

    Latest Awards:

    Default

    Whats the acctual code for a spoiler?
    rofl


  6. #6
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Javascript:

    HTML Code:
    <script language="javascript">
    function drop(id){
    var dropdiv=document.getElementById(id);
    dropdiv.style.display=dropdiv.style.display=='none'? 'block' : 'block';
    }
    </script>
    And for the HTML:

    HTML Code:
    <a onClick="drop('rofl')">CLICKS ME</a>
    <div id="rofl" style="display: none">hiyar!!1</div>

  7. #7
    Join Date
    Dec 2006
    Location
    None of your business!
    Posts
    2,492
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    javascript:

    HTML Code:
    <script language="javascript">
    function drop(id){
    var dropdiv=document.getElementById(id);
    dropdiv.style.display=dropdiv.style.display=='none'? 'block' : 'block';
    }
    </script>
    And for the HTML:

    HTML Code:
    <a onClick="drop('rofl')">CLICKS ME</a>
    <div id="rofl" style="display: none">hiyar!!1</div>
    Thanks for the code Simon, well done. + rep.

  8. #8
    Join Date
    Sep 2006
    Location
    Doncaster, UK
    Posts
    4,081
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    javascript:

    HTML Code:
    <script language="javascript">
    function drop(id){
    var dropdiv=document.getElementById(id);
    dropdiv.style.display=dropdiv.style.display=='none'? 'block' : 'block';
    }
    </script>
    And for the HTML:

    HTML Code:
    <a onClick="drop('rofl')">CLICKS ME</a>
    <div id="rofl" style="display: none">hiyar!!1</div>
    Would the same concept work say, if I had an image and the image closed/opened the div when clicked?

    Just tell me if I'm making no sense.
    Quote Originally Posted by Nain View Post
    i voted 'Not Sure' as im, not sure!

  9. #9
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    javascript:

    HTML Code:
    <script language="javascript">
    function drop(id){
    var dropdiv=document.getElementById(id);
    dropdiv.style.display=dropdiv.style.display=='none'? 'block' : 'block';
    }
    </script>
    And for the HTML:

    HTML Code:
    <a onClick="drop('rofl')">CLICKS ME</a>
    <div id="rofl" style="display: none">hiyar!!1</div>
    thanxxxxxx
    EDTALKING


  10. #10
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    It would work fine with images Adam [:

Posting Permissions

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