Team:UCLA/anuved verma ucla2014 workspace/Javascript

From 2014.igem.org

(Difference between revisions)
 
(10 intermediate revisions not shown)
Line 11: Line 11:
});
});
</script>
</script>
 +
 +
<!--SPLASH PAGE-->
<!--SPLASH PAGE-->
<script type="text/javascript">
<script type="text/javascript">
Line 147: Line 149:
});
});
</script>
</script>
 +
 +
<!--SLIDER-->
<!--SLIDER-->
Line 169: Line 173:
     $('.slider_left').click(function(){
     $('.slider_left').click(function(){
         if(count > 0){
         if(count > 0){
-
             $('.slider_imgs').stop(true,true).animate({ left: '+=500px'}, 250);
+
             $('.slider_imgs').stop(true,true).animate({ left: '+=1150px'}, 250);
             count -= 1;
             count -= 1;
         } else{
         } else{
Line 175: Line 179:
         }
         }
     });
     });
-
 
+
    $('.slider_right').click(function(){
 +
        if(count < 2){
 +
            $('.slider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250);
 +
            count += 1;
 +
        } else{
 +
            $('.slider_imgs').stop(true,true).animate({ left: '+=2300px'}, 250);
 +
            count = 0;
 +
        }
 +
    });
   });
   });
 +
</script>
 +
 +
 +
 +
 +
<!--PAGE HEADERS-->
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
    $('.page_header_box').mouseenter(function(){
 +
          $(this).animate({ opacity: '0.9'},1);
 +
    });
 +
    $('.page_header_box').mouseleave(function(){
 +
          $(this).animate({ opacity: '0.5'},1);
 +
    });
 +
});
</script>
</script>
</html>
</html>

Latest revision as of 19:55, 20 September 2014