change src image onload
<p>script:</p>

<pre><code> function SetProductImageLeft (img,idProduct){

                      var address="Image/ProductImage/"+id+".png";
                       $(img).attr('src', address);                         
            }
</code></pre>

<p>html:</p>

<pre><code>&lt;img onclick="alert();SetProductImageLeft(this,1);" onload="alert();SetProductImageLeft(this,1);" &gt;

&lt;img onclick="alert();SetProductImageLeft(this,2);" onload="alert();SetProductImageLeft(this,2);" &gt;

&lt;img onclick="alert();SetProductImageLeft(this,3);" onload="alert();SetProductImageLeft(this,3);" &gt;
</code></pre>

<p>onclick show alert(); and run function success but onLoad does not show alert(); and function;</p>

<p>i like show image when page load.set images in onload</p>
