Hi people I already implementing a movile fixed menu to my site based on jquery but i have a little problem with marginTop and marginBottom inside on a each sentence, the marginBottom is not working it seams like something is missing , plz check it out.
On-live example: http://www.utxj.edu.mx/menu_example/index.html
My code...
$(document).ready(function(){
$(function() {
var d=300;
$('#navigation a').each(function(){
$(this).stop().animate({
'marginTop':'-80px'
},d+=150);
});
$('#navigation > li').hover(function () {
$('a',$(this)).stop().animate({
'marginTop':'-2px'
},200);
}, function () {
$('a',$(this)).stop().animate({
'marginTop':'-80px'
},200);
}
);
});
});
$(document).ready(function(){
$(function() {
var d=300;
$('#navigation2 a').each(function(){
$(this).stop().animate({
'marginBottom':'-80px'
},d+=150);
});
$('#navigation2 > li').hover(function () {
$('a',$(this)).stop().animate({
'marginBottom':'-2px'
},200);
}, function () {
$('a',$(this)).stop().animate({
'marginBottom':'-80px'
},200);
}
);
});
});
Tnx 4 help.