2010-10-04 06:14:55 +02:00
|
|
|
(function($) {
|
2009-12-16 06:38:28 +01:00
|
|
|
$(document).ready(function() {
|
2010-10-04 06:14:55 +02:00
|
|
|
$("input.rollover").live('mouseover', function(){
|
|
|
|
if(!this.overSrc) {
|
|
|
|
var srcParts = $(this).attr('src').match( /(.*)\.([a-zA-Z]+)$/ );
|
|
|
|
var fileName = srcParts[1];
|
|
|
|
var extension = srcParts[2];
|
|
|
|
this.overSrc = fileName + '_over.' + extension;
|
|
|
|
this.outSrc = $(this).attr('src');
|
|
|
|
}
|
|
|
|
$(this).attr('src', this.overSrc);
|
2009-12-16 06:38:28 +01:00
|
|
|
});
|
2007-07-19 12:40:28 +02:00
|
|
|
|
2010-10-04 06:14:55 +02:00
|
|
|
$("input.rollover").live('mouseout', function(){
|
|
|
|
$(this).attr('src', this.outSrc);
|
2009-12-16 06:38:28 +01:00
|
|
|
});
|
|
|
|
});
|
|
|
|
})(jQuery);
|