25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.5 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>jquery.bootstrap-growl Demo</title>
  5. <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> </head>
  6. <body>
  7. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  8. <script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
  9. <script src="jquery.bootstrap-growl.js"></script>
  10. <script type="text/javascript">
  11. $(function()
  12. {
  13. $.bootstrapGrowl("This is a test.");
  14. setTimeout(function()
  15. {
  16. $.bootstrapGrowl("This is another test.",
  17. {
  18. type: 'success'
  19. });
  20. }, 1000);
  21. setTimeout(function()
  22. {
  23. $.bootstrapGrowl("Danger, Danger!",
  24. {
  25. type: 'danger',
  26. align: 'center',
  27. width: 'auto',
  28. allow_dismiss: false
  29. });
  30. }, 2000);
  31. setTimeout(function()
  32. {
  33. $.bootstrapGrowl("Danger, Danger!",
  34. {
  35. type: 'info',
  36. align: 'left',
  37. stackup_spacing: 30
  38. });
  39. }, 3000);
  40. });
  41. </script>
  42. </body>
  43. </html>