Okay, hab's gelöst
HTML-Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ // Using multiple unit types within one animation. $("#go").click(function(){ $("#block").animate({ height: "0px" }, 1000, '', function() { var cssObj = { 'display' : 'none' } $("#block").css(cssObj); }); }); }); </script> <style> div { background-color:#bca; width:100px; border:0px solid green; } </style> </head> <body> <button id="go">» Run</button> <div id="block">Hello!</div> </body> </html>


LinkBack URL
About LinkBacks


Zitieren