DD_belatedPNG.fix('div, ul, img, li, input , p, h1, h2, h4, h3, span, a'); var showeffect = ""; {showeffect = "fadeIn"} jQuery(document).ready(function($) { $("img").lazyload({ placeholder: "/style/grey.gif", effect: showeffect, failurelimit: 10 }) });