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);
-
$("#slider-stopper").click(function(){
+
$("#mover").mouseover(function() {
-
if ($(this).text() == "Stop") {
+
clearInterval(sliderIntervalID);
clearInterval(sliderIntervalID);
-
$(this).text("Start");
+
});
-
}
+
$("#mover").mouseout(function() {
-
else {
+
sliderIntervalID = setInterval(function(){doMove(panelWidth, tooFar);}, delayLength);
-
sliderIntervalID = setInterval(function(){
+
});
-
doMove(panelWidth, tooFar);
+
-
}, delayLength);
+
-
$(this).text("Stop");
+
-
}
+
-
+
-
});
+
});
});
</script>
</script>
</html>
</html>

Revision as of 19:53, 28 August 2012

Garden Rack

Donec gravida posuere arcu. Nulla facilisi. Phasellus imperdiet. Vestibulum at metus. Integer euismod. Nullam placerat rhoncus sapien. Ut euismod. Praesent libero. Morbi pellentesque libero sit amet ante. Maecenas tellus.

learn more

Tulip Bulbs

Donec gravida posuere arcu. Nulla facilisi. Phasellus imperdiet. Vestibulum at metus. Integer euismod. Nullam placerat rhoncus sapien. Ut euismod. Praesent libero. Morbi pellentesque libero sit amet ante. Maecenas tellus.

learn more

Garden Gloves

Donec gravida posuere arcu. Nulla facilisi. Phasellus imperdiet. Vestibulum at metus. Integer euismod. Nullam placerat rhoncus sapien. Ut euismod. Praesent libero. Morbi pellentesque libero sit amet ante. Maecenas tellus.

learn more