http://hisasann.com/housetect/2008/07/jquery_2.html
- $(function(){
- var left = Math.floor(($(window).width() - $("#hoge").width()) / 2);
- var top = Math.floor(($(window).height() - $("#hoge").height()) / 2);
- $("#hoge")
- .css({
- "top": top,
- "left": left,
- "opacity": 0
- })
- .animate({opacity: "1"},{queue: true, duration: 4000, easing: "linear", complete: function(){}});
- });
0 件のコメント:
コメントを投稿