tuto : ringankan blog dengan menggunakan jQuery Lazy Load
Posted 1/12/11 // 3:01 AM
bila korang bukak blog aku , cuba korang tengok gambar2 , keluar benda kelabu dulu kan ? haaaa. tulah dya jQuery lazy load . bila korang scroll bawah , atas . gambar2 pon keluar.. lawa gituh.. senang jer cara nak letakkan nya..

1) dashboard > design > page elements > add a gadget > html Javascript

2) copy code dibawah dan paste didalam htmlJavascript TANPA tittle

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type='text/javascript' src='https://sites.google.com/site/jquery01/jquery.lazyload.mini.js?ver=1.5.0'></script>
<script type="text/javascript">
jQuery(document).ready(function($){
if (navigator.platform == "iPad") return;
jQuery("img").lazyload({
effect:"fadeIn",
placeholder: "http://3.bp.blogspot.com/_LZtXSNcp76A/THkEtEOZfrI/AAAAAAAABRo/IARVMD_8TwA/s1600/grey.gif"
});
});
</script>

3) siap DAN saveee .. =)
5 Comments:
Blogger dieba rahman said...

xleh buat laaa...nape ye

February 26, 2011 at 5:22 AM  


Blogger beela said...

ada silap kot..

March 11, 2011 at 11:11 PM  


Blogger aEvOeCaEdOe said...

nice..menjadi laa... thanks yerk

March 18, 2011 at 12:51 AM  


Blogger ceriterasibudakmanis said...

npe lau ltk diyer . lpas save keluar tlisan ?

June 2, 2011 at 8:32 PM  


Blogger raraavilton said...

tamahu pun -.-

July 31, 2011 at 8:56 PM  


Post a Comment

... Back to the blog?

Since 2012