I have a set of jQuery effects that I would like to have run one after the other (currently they run simultaneously. Is there any way to fix this?
The code is as follows:
<SCRIPT>
$(document).ready(function() {
$(".right").click(function () {
$(this).show("slide", { direction: "right" }, 1200);
});
// Trigger the handler once on document ready
$(".right").click();
});
</SCRIPT>
<SCRIPT>
$(document).ready(function() {
$("#left").click(function () {
$(this).show("slide", { direction: "left" }, 1200);
});
// Trigger the handler once on document ready
$("#left").click();
});
</SCRIPT>
<SCRIPT>
$(document).ready(function() {
$("#up").click(function () {
$(this).show("slide", { direction: "down" }, 1200);
});
// Trigger the handler once on document ready
$("#up").click();
});
</SCRIPT>