Permalink
Browse files

jquery ready

  • Loading branch information...
1 parent a52b62d commit 0d4c013c7d0989ebfe1e5ec8fa59252f139aca23 Fan Yu committed Aug 5, 2012
Showing with 12 additions and 2 deletions.
  1. BIN JqueryTest.suo
  2. +12 −2 JqueryTest/default.htm
View
Binary file not shown.
View
@@ -5,10 +5,20 @@
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
</head>
<body>
- <p>
- Hellow world!</p>
+ <p>Hellow world!</p>
+ <div id="test"></div>
+ <input id="run" type="button" value="button" />
+ <div>move</div>
<script type="text/javascript">
// $("p").empty()
+ //$("#test").html("hahah")
+ $("#run").click(
+ function () {
+ $("div:not(:animated)").animate({left:"+=20"},1000);
+ }
+ );
+ window.onload = function () { alert("loaded"); }
+ $(document).ready(function () { alert("ready"); });
</script>
</body>
</html>

0 comments on commit 0d4c013

Please sign in to comment.