Team:UT Dallas/test/
From 2012.igem.org
(Difference between revisions)
Line 110: | Line 110: | ||
$("#mover").css("width", totalMoverwidth); | $("#mover").css("width", totalMoverwidth); | ||
- | $("#slider").append('<a href="#" id="slider-stopper">Stop</a>'); | + | //$("#slider").append('<a href="#" id="slider-stopper">Stop</a>'); |
sliderIntervalID = setInterval(function(){ | sliderIntervalID = setInterval(function(){ | ||
Line 116: | Line 116: | ||
}, delayLength); | }, delayLength); | ||
- | $("# | + | $("#mover").mouseover(function() { |
- | + | ||
clearInterval(sliderIntervalID); | clearInterval(sliderIntervalID); | ||
- | + | }); | |
- | + | $("#mover").mouseout(function() { | |
- | + | sliderIntervalID = setInterval(function(){doMove(panelWidth, tooFar);}, delayLength); | |
- | sliderIntervalID = setInterval(function(){ | + | }); |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 19:53, 28 August 2012