.
,Sejarah jam gadang, danau singkarak, danau maninjau, hotel, tujuan wisata sumatera barat,daftar,jam gadang, fort de kock,West Sumatra, Sumatera Barat, Tourism

jQuery Automatic Remove Broken Image

Posted By admin Sunday, March 27, 2011

Discard Links Images of Damaged With jQuery. Figure able to represent the long sentences that are used to pour the expression of a person and more a function of the image. Image is one of the equipment on his blog that serves as a confirmation, sweetener, advertising, or even as pengampai a brief sentence that is sometimes difficult to be submitted by post. For those bloggers who like to upload an image as a complement to an article should be more careful with the hosting that is used, because it could have the images already uploaded in the future we will be removed by the owner of the hosting. This will damage the appearance of an article that was written. If the number of pictures a little we could easily have to replace it, what if we include an image that already numbered in the hundreds?
Automatic jQuery Remove Broken Image
Link broken or missing images very disturbing view of the blog, than we must check one by one the pictures on our blog and then throw it away, we'd better add a little jQuery script to automatically remove the broken image links.

JQuery Code Link Image To Dispose of Damaged
Step 1
Login to Blogger
Step 2
Go to "Design - Edit HTML"
Step 3
Find the code below:

</ Head>

Step 4
Enter (copy and paste) the code below the above code in step 3:

<script src='http://code.jquery.com/jquery-latest.min.js' type='text/javascript'/>
<script type='text/javascript'>
$ ('Img'). Error (function () {
$ (This). Remove ();
});
</ Script>

Step 5
Save the template and preview your blog


Related Post



Follow by Email