getimagesize showed me warnings so my choice was JQuery.
And it was great choice, because using jquery is always fun.
Code i used for all img ( CSS attribute ):
$(window).load(function() {
$('img').each(function() {
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
// image was broken, replace with your new image
this.src = 'http://www.example.com/replace_no_image.jpg';
}
});
});
forgot to remove script javascript line. it wasnt showing ;D.
ReplyDeleteanyway fixed <3
The information written in the article is descriptive and well written.It is also simple to read and understand.Good Read.
ReplyDeleteprestashop programmer