jQuery to get hover for PNG images in Internet Explorer6



DotNetNuke (DNN) accordion menu mouse over images fix for IE6

 
// JavaScript Document
jQuery(document).ready(function(){
//mention hover image by specifying ID for the image				  
jQuery("#img55").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/home_hover.png') },
//mouse out image
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/home.png') 
	});	
	jQuery("#img57").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/officeInfo_hover.png') },
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/officeInfo.png') 
	});
	jQuery("#img66").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/patientInfo_hover.png') },
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/patientInfo.png') 
	});
	jQuery("#img79").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/treatment_hover.png') },
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/treatment.png') 
	});
	jQuery("#img93").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/funstuff_hover.png') },
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/funstuff.png') 
	});
	jQuery("#img157").hover(function() {
		jQuery(this).attr('src', DNN_skinPath + 'images/patientLogin_hover.png') },
		function () { jQuery(this).attr('src', DNN_skinPath + 'images/patientLogin.png') 
	});

});

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.