HBLimg = new Image(); HBLimg.src = '/photo/homebanner_december-2011-home_400x203.jpg'; HBLimgO = new Image(); HBLimgO.src = '/photo/homebanner_December-2011-Home_400x203-OVER.jpg'; HBMimg = new Image(); HBMimg.src = '/photo/homebanner_mouseout.jpg'; HBMimgO = new Image(); HBMimgO.src = '/photo/homebanner_mouseover.jpg'; HBRimg = new Image(); HBRimg.src = '/photo/homebanner_Meeloopdagen.jpg'; HBRimgO = new Image(); HBRimgO.src = '/photo/homebanner_Meeloopdagen(1).jpg'; HBB2img = new Image(); HBB2img.src = '/photo/homebanner_Studielink(2).jpg'; HBB2imgO = new Image(); HBB2imgO.src = '/photo/homebanner_Studielink(3).jpg'; HBB3img = new Image(); HBB3img.src = '/photo/homebanner_nature-fits-all.jpg'; HBB3imgO = new Image(); HBB3imgO.src = '/photo/homebanner_nature-fits-all(1).jpg'; HBB4img = new Image(); HBB4img.src = '/photo/homebanner_Bestel_een_flyer(2).jpg'; HBB4imgO = new Image(); HBB4imgO.src = '/photo/homebanner_Bestel_een_flyer(3).jpg'; $(document).ready(function() { $('#HBLimg') .mouseover(function() { this.src = HBLimgO.src; }) .mouseout(function() { this.src = HBLimg.src; }) $('#HBMimg') .mouseover(function() { this.src = HBMimgO.src; }) .mouseout(function() { this.src = HBMimg.src; }) $('#HBRimg') .mouseover(function() { this.src = HBRimgO.src; }) .mouseout(function() { this.src = HBRimg.src; }) $('#HBB2img') .mouseover(function() { this.src = HBB2imgO.src; }) .mouseout(function() { this.src = HBB2img.src; }) $('#HBB3img') .mouseover(function() { this.src = HBB3imgO.src; }) .mouseout(function() { this.src = HBB3img.src; }) $('#HBB4img') .mouseover(function() { this.src = HBB4imgO.src; }) .mouseout(function() { this.src = HBB4img.src; }) });