[jQuery] Why won't both these functions work?

[jQuery] Why won't both these functions work?


<script type="text/javascript" >
lastBlockOne = $("#a1");
maxWidthOne = 274;
minWidthOne = 117;
lastBlockTwo = $("#a2");
maxWidthTwo = 221;
minWidthTwo = 81;
$(document).ready(function(){
$("#welcome-accordion ul li a").hover(
function(){
$(lastBlockOne).animate({width: minWidthOne+"px"},
{ queue:false, duration:400 });
    $(this).animate({width: maxWidthOne+"px"}, { queue:false, duration:
400});
    lastBlockOne = this;
}
);
$("#process-accordion ul li a").hover(
function(){
$(lastBlockTwo).animate({width: minWidthTwo+"px"},
{ queue:false, duration:400 });
    $(this).animate({width: maxWidthTwo+"px"}, { queue:false, duration:
400});
    lastBlockTwo = this;
}
);
});
</script>




























    • Topic Participants

    • mg