<
script
src
="lib/jquery.js"
type
="text/javascript"
></
script
>
< body >
< div id ="test" > hello world! </ div >
< script > ...
<!---方式1: -->
$("#test").fadeOut("slow");
$("#test").fadeIn("fast");
<!---方式2: -->
$("#test").hide('slow');
$("#test").show('fast');
</ script >
</ body >
< body >
< div id ="test" > hello world! </ div >
< script > ...
<!---方式1: -->
$("#test").fadeOut("slow");
$("#test").fadeIn("fast");
<!---方式2: -->
$("#test").hide('slow');
$("#test").show('fast');
</ script >
</ body >