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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Topps Guest

    Default Fade in/Fade out DIV?

    I'm looking for a tutorial, know any?!

  2. #2
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    I believe Scriptaculous has a feature to do this?

    http://script.aculo.us/

    .:; Johno

  3. #3
    Topps Guest

    Default

    The thing with Scriptaculous is, it doesn't explain at all, so I really don't understand it, but I want something like just has class="FadeIn" when it enters the page.
    Last edited by Topps; 25-08-2007 at 08:10 PM.

  4. #4
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    http://wiki.script.aculo.us/scriptac...ow/Effect.Fade

    That might help, Doesnt explain it lots but it seems simple enough

    .:; Johno

  5. #5
    Topps Guest

    Default

    OK, I get it now, but how would you make it fade in, not out?

  6. #6
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:


  7. #7
    Join Date
    Jul 2007
    Location
    Swindon
    Posts
    990
    Tokens
    125

    Default

    I dont think the one johno posted (last post) works in firefox :S
    edit:
    or i just missed the div O.o
    Last edited by Eccentric; 26-08-2007 at 10:00 AM.

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

    Latest Awards:

    Default

    If you're NOT using Scripaculous for your javascript, you're an idiot

    The things it offers is a must for a Habbo Home script

    If you want something to fade COMPLETELY you could do Effect.Fade on the DIV either onClick or onLoad.

    If you want it to just fade a little bit black. Then just do:

    HTML Code:
    <script>
    function fade(div)
    {
    	/* Made by simon for the lulz */
    
    	$(div).morph("opacity:0.5", { duraton: 0.5 } );
    
    }
    </script>

  9. #9
    Topps Guest

    Default

    Quote Originally Posted by Invent View Post
    If you're NOT using Scripaculous for your javascript, you're an idiot

    The things it offers is a must for a Habbo Home script

    If you want something to fade COMPLETELY you could do Effect.Fade on the DIV either onClick or onLoad.

    If you want it to just fade a little bit black. Then just do:

    HTML Code:
    <script>
    function fade(div)
    {
        /* Made by simon for the lulz */
    
        $(div).morph("opacity:0.5", { duraton: 0.5 } );
    
    }
    </script>
    I am using Scriptaculous, but concentrating on the parts without it first.

    I JUST discovered that aswell LOL.
    Last edited by Topps; 26-08-2007 at 10:55 AM.

  10. #10
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    3,285
    Tokens
    0

    Latest Awards:

    Default

    Script.aculo.us is the choice for browser-based effects Habbo use it!



    i used to be NintendoNews. visit my blog or add me on twitter.
    need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!


    "I am the way, the truth, and the life. No one comes to the Father except through me"
    John 14:6 (NIV)


Page 1 of 2 12 LastLast

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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