User:Najzere/spoilerimage.js

$(document).ready(function { $('span.spoilerimage img').each( function { var hiddensrc=$(this).attr('src'); var spoilersrc='http://cdn.wikimg.net/strategywiki/images/a/a9/Flow_Free_Jumbo_Pack_Grid_14x14_Level_1.png'; $(this).attr({     src: spoilersrc,      onMouseOver: '$(this).attr("src","'+hiddensrc+'")',      onMouseOut: '$(this).attr("src","'+spoilersrc+'")'    }); }); });