JS1K
這是限制javascript檔案大小 >1 kb = 1024bytes。
10K Apart
而這是以前端為目的,可以使用最新的html 5 或css 3 來寫,也不限使用資料庫,但是不許使用flash或者silverlight。
這個倒設計的較美觀,雖然檔案大小限制在10kb,但似乎還算寬裕,但是既然用到html 5的話,那麼很
最近沒空,留著改天再來欣賞。
.box {
-moz-border-radius: 15px; /* Firefox */
-webkit-border-radius: 15px; /* Safari and Chrome */
border-radius: 15px; /* Internet Explorer 6+ with IE-CSS3! YEAH! and Opera */
behavior: url(ie-css3.htc); /* This lets IE know to call the script on all elements which get the 'box' class */
}IE-CSS3 支援 Internet Explorer 6, 7 及 8,可惜支援的屬性並不是太多,僅限於 border-radius, box-shadow 及 text-shadow。並未有實際使用過,不知道大量使用的話會不會把 IE 拖慢(大概也習慣了吧?)。以往需要圓角的時候我一般會選用 DD_roundies,未曾出過問題,而 DD_roundies 也是用 VML 來 implement 的,所以相信值得一試的。網站位址:http://www.appelsiini.net/projects/lazyload
jquery 外掛下載:請 點我
效果展示:http://www.appelsiini.net/projects/lazyload/enabled_fadein.html
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/lazyload.mini.js"></script>
<script type="text/javascript"> jQuery(document).ready(function($){jQuery("img").lazyload({effect:"fadeIn",placeholder: "http://image.steachs.com/Files/grey.gif"});
});
</script>
<script type="text/javascript" src="你放置的路徑/lazyload.mini.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://image.steachs.com/Files/lazyload.mini.js"></script>
1 | color:#113366 |
1 | color:#136 |