Team:UCLA/anuved verma ucla2014 workspace/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 151: | Line 151: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | $('.slider_left'). | + | $('.slider_left').mouseenter(function(){ |
- | $('.slider_left').animate({ opacity: '0.8'}); | + | $('.slider_left').animate({ opacity: '0.8'},1); |
}); | }); | ||
- | $('.slider_right'). | + | $('.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