PDA

View Full Version : Fade in/Fade out DIV?



Topps
25-08-2007, 06:44 PM
I'm looking for a tutorial, know any?! :)

Johno
25-08-2007, 08:04 PM
I believe Scriptaculous has a feature to do this?

http://script.aculo.us/

.:; Johno

Topps
25-08-2007, 08:09 PM
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.

Johno
26-08-2007, 09:20 AM
http://wiki.script.aculo.us/scriptaculous/show/Effect.Fade

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

.:; Johno

Topps
26-08-2007, 09:45 AM
OK, I get it now, but how would you make it fade in, not out?

Johno
26-08-2007, 09:51 AM
http://wiki.script.aculo.us/scriptaculous/show/Effect.Appear

:)

.:; Johno

Eccentric
26-08-2007, 09:59 AM
I dont think the one johno posted (last post) works in firefox :S
edit:
or i just missed the div O.o

Invent
26-08-2007, 10:52 AM
If you're NOT using Scripaculous for your javascript, you're an idiot :P

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:



<script>
function fade(div)
{
/* Made by simon for the lulz */

$(div).morph("opacity:0.5", { duraton: 0.5 } );

}
</script>

Topps
26-08-2007, 10:54 AM
If you're NOT using Scripaculous for your javascript, you're an idiot :P

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:



<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. :P

I JUST discovered that aswell LOL. :P

timROGERS
26-08-2007, 11:02 AM
Script.aculo.us is the choice for browser-based effects :) Habbo use it!

Topps
26-08-2007, 11:07 AM
Well, I have most things now, just all I need is the font that Habbo have on the Web Store, I can't find it lol. :P

Invent
26-08-2007, 11:15 AM
It's probs Tahoma/Verdana ?

Topps
26-08-2007, 11:50 AM
It's probs Tahoma/Verdana ?

I just checked, its none of them, thanks for trying though.

Want to hide these adverts? Register an account for free!