Team:UCLA/anuved verma ucla2014 workspace/Javascript

From 2014.igem.org

(Difference between revisions)
Line 151: Line 151:
<script type="text/javascript">
<script type="text/javascript">
   $(document).ready(function() {
   $(document).ready(function() {
-
     $('.slider_left').mouseover(function(){
+
     $('.slider_left').mouseenter(function(){
-
           $('.slider_left').animate({ opacity: '0.8'});
+
           $('.slider_left').animate({ opacity: '0.8'},1);
     });
     });
-
     $('.slider_right').mouseover(function(){
+
     $('.slider_right').mouseenter(function(){
-
           $('.slider_right').animate({ opacity: '0.8'});
+
           $('.slider_right').animate({ opacity: '0.8'},1);
     });
     });
 +
    $('.slider_left').mouseleave(function(){
 +
          $('.slider_left').animate({ opacity: '0.5'},1);
 +
    });
 +
    $('.slider_right').mouseleave(function(){
 +
          $('.slider_right').animate({ opacity: '0.5'},1);
 +
    });
 +
 +
     $('.slider_left').click(function(){
     $('.slider_left').click(function(){

Revision as of 07:04, 20 September 2014