Posted By

timpreneur on 09/10/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jillella


Microsoft CDN


 / Published in: ASP
 

http://www.asp.net/ajaxlibrary/CDN.ashx

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>jQuery from Microsoft AJAX CDN</title>
  5. <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js" type="text/javascript"></script>
  6.  
  7. <script type="text/javascript">
  8.  
  9. $( domReady );
  10.  
  11. function domReady() {
  12. $('#btn').click( showMessage );
  13. }
  14.  
  15. function showMessage() {
  16. $('#message').fadeIn('slow');
  17. }
  18.  
  19. </script>
  20. </head>
  21. <body>
  22.  
  23. <button id="btn">Show Message</button>
  24.  
  25. <div id="message" style="display:none">
  26.  
  27. <h1>Hello from jQuery!</h1>
  28.  
  29. </div>
  30.  
  31. </body>
  32. </html>

Report this snippet  

You need to login to post a comment.