BIGtheme.net Joomla 3.3 Templates
(function($) { var config = $('html').data('config') || {}; $("img[alt=Demo]").each(function() { var path = this.src.split("/"); if(path[path.length-3]=="demo"){ path[path.length-2] = config.style!="" ? config.style:"default"; path = path.join("/").replace('index.php/',''); var img = new Image(), $this = this; img.on-load = function() { $this.src = path; }; img.src = path; } }); })(jQuery);