<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JQueryTest</title>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js">
</script>
<script type="text/javascript" src="JQuery.js"></script>
</head>
<body>
<hr>
<p style="color:red;background-color: green;" id="pHide1000">点击我,我会花1秒的时间隐藏!</p>
<hr>
</body>
var jq = jQuery.noConflict();
jq(document).ready(function() {
jq("#pHide1000").click(function() {
jq(this).hide(1000, function() {
jq(this).html("哈哈哈,我又出现了!");
jq(this).show(1000);
});
});
});