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