Guest User

Untitled

a guest
Oct 1st, 2013
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. <script>
  2. $(document).ready(function(event){
  3. $(".nav a").hover(function(event){
  4. $(this).animate({"color":"#FFFFFF", "backgroundColor":"#3AB7FF"}, 900);
  5. },function(event){
  6. $(this).animate({"color":"#98DCFF","backgroundColor":"#FFFFFF"}, 900);
  7. });
  8. });
  9. </script>
  10.  
  11. <html>
  12. <head>
  13. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  14. <script type="text/javascript">
  15. $(function(event){
  16. $(".nav a").
  17. mouseenter(function(){$(this).animate({fontSize:"2em"}, 900);}).
  18. mouseleave(function(){$(this).animate({fontSize:"1em"}, 900);});
  19. /*
  20. $(".nav a").hover(function(){
  21. $(this).animate({"color":"#FFFFFF", "backgroundColor":"#3AB7FF"}, 900);
  22. },function(){
  23. $(this).animate({"color":"#98DCFF","backgroundColor":"#FFFFFF"}, 900);
  24. });
  25. */
  26. });
  27. </script>
  28. </head>
  29. <body>
  30. <div class="nav" style="color:#000;background:#cfc;padding:2em 2em 2em 2em;margin:2em 2em 2em 2em;">
  31. <a href="http://stackoverflow.com/questions/2010576/jquery-animation-issue-in-chrome" id="a1">StackOverflow</a>
  32. </div>
  33. </body>
  34. </html>
  35.  
  36. // Look for rgba(num,num,num,num)
  37. if (result = /rgba(s*([0-9]{1,3})s*,s*([0-9]{1,3})s*,s*([0-9]{1,3})s*,s*([0-9]{1,3})s*)/.exec(color))
  38. return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
  39.  
  40. <head>
  41. <!-- These are my local jquery files. Use yours or the ones from Google -->
  42. <script src="/osr/javascript/dev/librarys/jquery.js" type="text/javascript"></script>
  43. <script src="/osr/javascript/dev/librarys/jquery-ui/js/jquery-ui.js" type="text/javascript"></script>
  44. <script>
  45. $(document).ready(function(event){
  46. $(".nav a").hover(function(event){
  47. $(this).animate({"color":"#FFFFFF", "backgroundColor":"#3AB7FF"}, 900);
  48. },function(event){
  49. $(this).animate({"color":"#98DCFF","backgroundColor":"#FFFFFF"}, 900);
  50. });
  51. });
  52. </script>
  53. </head>
  54.  
  55. <body>
  56. <div class="nav">
  57. <a>aighosvaovhaovuho</a>
  58. </div>
  59. </body>
  60.  
  61. $(document).ready(function(){
  62. jQuery.noConflict();
  63. jQuery('.boxgrid.caption').hover(function(){
  64. var s = jQuery(".cover", this).stop();
  65. s.animate({width: "50%"},{queue:false,duration:300});
  66. jQuery(".cover", this).stop().animate({top: "180px"},{queue:false,duration:300});
  67. }, function() {
  68. jQuery(".cover", this).stop().animate({top:'260px'},{queue:false,duration:300});
  69. });
  70.  
  71. });
Advertisement
Add Comment
Please, Sign In to add comment