You are not logged in.

  • Login

1

Tuesday, May 10th 2011, 9:34am

jquery fade out

Hallo,

ich möchte gerne, wenn ich eine Seite betrete, direkt nach 5 oder 10 sekunden ein Container ausgeblendet wird

JavaScript Code

1
2
3
$("div.container").click(function () {
  $("div.container").fadeOut("slow");
  });


Ich bekomm das zwar mit clicken auf diesen container hin, aber ich möchte das es automatisch funktioniert.
Hat da jemand eine Idee?

2

Tuesday, May 10th 2011, 10:04am

JavaScript Code

1
2
3
setTimeout(function(){ 
	$("div.container").fadeOut("slow");
  },10000);

3

Tuesday, May 10th 2011, 10:07am

vielen dank :)

Social bookmarks