Shaun Mccran

JQuery Image mouseover

This is an example of a really small JavaScript image mouseover effect. Run your mouse over the images to see them change.

			$("img.rollover").hover(
				function()
				{
					this.src = this.src.replace("_off","_on");
				},
				function()
				{
					this.src = this.src.replace("_on","_off");
				}
			);