<head> <script src="jquery-1.4.4.js"></script> <script type="text/javascript"> $(function() { var toggle = true; $("a").click(function() { $("p.neat").showIt(toggle,"fast"); toggle = !toggle; return false; }); $.fn.showIt = function(b,param) { if (b) $(this).hide(param); else $(this).show(param); }; }); $("p.neat").hide(); </script> </head> <body> <p class="neat" style="width: 200"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. </p> <a href="/">Yeah</a> </body>
"Simplicity can't be bought later, it must be earned from the start" -- DB
Wednesday, June 23, 2010
First foray to jQuery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment