snowysweb
07-10-2009, 12:10 PM
Hi i have this code:
// JavaScript Document
jQuery(document).ready(menu);
function menu(){
jQuery("#menu li a").hover(function() {
jQuery(this).animate({
width: '230px'
}, 500);
},
function() {
jQuery(this).animate({
width: '260px'
}, 500);
}
);
}
jQuery(document).ready(paraHover);
function paraHover(){
jQuery(".main p").hover(function(){
jQuery(this).css("color", "#000000");
},
function(){
jQuery(this).css("color", "#404040");
}
);
}
jQuery(document).ready(hoverEffect);
function hoverEffect(){
jQuery(".lawnImages").css("filter", "alpha(opacity=40)");
jQuery(".lawnImages").css("-moz-opacity", "0.4");
jQuery(".lawnImages").css("-khtml-opacity", "0.4");
jQuery(".lawnImages").css("opacity", "0.4");
jQuery(".lawnImages").hover(function(){
jQuery(this).css("display", "block");
jQuery(this).animate({
opacity: 1,
}, 600);
},
function(){
jQuery(this).animate({
opacity: 0.4,
}, 600);
});
}
jQuery(document).ready(hoverEffect2);
function hoverEffect2(){
jQuery(".smallPicture a").hover(function(){
jQuery(this).css("display", "block");
jQuery(this).animate({
opacity: 0.4,
}, 600);
},
function(){
jQuery(this).animate({
opacity: 1,
}, 600);
});
}
Works fine in all other browsers apart from IE 6 & 7... can anyone tel me why?
www.activegardenmaintenance.co.uk (http://www.activegardenmaintenance.co.uk) is where it is active
// JavaScript Document
jQuery(document).ready(menu);
function menu(){
jQuery("#menu li a").hover(function() {
jQuery(this).animate({
width: '230px'
}, 500);
},
function() {
jQuery(this).animate({
width: '260px'
}, 500);
}
);
}
jQuery(document).ready(paraHover);
function paraHover(){
jQuery(".main p").hover(function(){
jQuery(this).css("color", "#000000");
},
function(){
jQuery(this).css("color", "#404040");
}
);
}
jQuery(document).ready(hoverEffect);
function hoverEffect(){
jQuery(".lawnImages").css("filter", "alpha(opacity=40)");
jQuery(".lawnImages").css("-moz-opacity", "0.4");
jQuery(".lawnImages").css("-khtml-opacity", "0.4");
jQuery(".lawnImages").css("opacity", "0.4");
jQuery(".lawnImages").hover(function(){
jQuery(this).css("display", "block");
jQuery(this).animate({
opacity: 1,
}, 600);
},
function(){
jQuery(this).animate({
opacity: 0.4,
}, 600);
});
}
jQuery(document).ready(hoverEffect2);
function hoverEffect2(){
jQuery(".smallPicture a").hover(function(){
jQuery(this).css("display", "block");
jQuery(this).animate({
opacity: 0.4,
}, 600);
},
function(){
jQuery(this).animate({
opacity: 1,
}, 600);
});
}
Works fine in all other browsers apart from IE 6 & 7... can anyone tel me why?
www.activegardenmaintenance.co.uk (http://www.activegardenmaintenance.co.uk) is where it is active