Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript swap images on mouseover

function rollover(my_image)
		{
	
			my_image.src = 'images/costAnalysisBtn2.png';
	
		}
function mouseaway(my_image)
		{
	
			my_image.src = "images/costAnalysisBtn1.png";
	
		}
onmouseover="rollover(this)" onmouseout="mouseaway(this)"
 
PREVIOUS NEXT
Tagged: #javascript #swap #images #mouseover
ADD COMMENT
Topic
Name
5+1 =