Tuy nhỏ gọn , nhưng bảo đảm với các bạn koolbox có thể sẽ đánh ngã được prettyphoto trong thời gian sắp tới vì đây chỉ mới phiên bản v1.
Chúng ta sẽ xem qua các kiểu của nó nhé:
BASIC:
<a href="images/1.jpg" class="kool-box" title="Dragon ball"> <img src="images/thumb/1.jpg" alt="" /></a> <a href="images/2.jpg" class="kool-box"> <img src="images/thumb/2.jpg" alt="" /> </a> <a href="images/3.jpg" class="kool-box"> <img src="images/thumb/3.jpg" alt="" /></a>
GALLERY:
<a href="images/4.jpg" class="kool-box" rel="kool-box"><img src="images/thumb/4.jpg" alt="" /></a> <a href="images/5.jpg" class="kool-box" rel="kool-box"> <img src="images/thumb/5.jpg" alt="" /></a> <a href="images/6.jpg" class="kool-box" rel="kool-box"> <img src="images/thumb/6.jpg" alt="" /></a>GALLERY (Other theme):
<a href="images/4.jpg" class="kool-box" rel="kool-box"><img src="images/thumb/4.jpg" alt="" /></a> <a href="images/5.jpg" class="kool-box" rel="kool-box"> <img src="images/thumb/5.jpg" alt="" /></a> <a href="images/6.jpg" class="kool-box" rel="kool-box"> <img src="images/thumb/6.jpg" alt="" /></a>HTML:
<ul> <li><a href="#infoContent" class="kool-box {width:300,height:200}">Inline Content</a></li> <li><a href="ajax.htm" class="kool-box {width:600,height:400}">Ajax Content</a></li> <li><a href="http://www.google.com/search?sclient=psy&hl=en&biw=1920&bih=920&site=&source=hp&q=vngreenzone" class="kool-box { type:'iframe',width:800,height:600}" >Iframe</a></li> </ul>MEDIA:
<a href="http://www.adobe.com/products/flashplayer/include/marquee/design.swf" class="kool-box"><img src="images/video/flash.png" /></a> <a href="http://trailers.apple.com/movies/disney/tronlegacy/tronlegacy-tsr1_r640s.mov" class="kool-box"><img src="images/video/quicktime.gif" /></a> <a href="http://www.youtube.com/watch?v=EFJOZkKi7gk" class="kool-box"> <img src="images/video/youtube.png" alt="Youtube" title="Youtube" /></a> <a href="http://vimeo.com/8578886" class="kool-box"><img src="images/video/vimeo.png" alt="vimeo" title="vimeo" /></a> <a href="http://www.megavideo.com/?v=22DU0O7O" class="kool-box"> <img src="images/video/megavideo.png" alt="Megavideo" title="Megavideo" /></a> <a href="http://www.facebook.com/video/video.php?v=452462259845" class="kool-box"> <img src="images/video/facebook.png" alt="Facebook" title="Facebook" /></a> <a href="http://www.dailymotion.com/video/xhzwb7_videotest-de-dragon-ball-z-budokai-3-sur-ps2_videogames" class="kool-box"> <img src="images/video/Dailymotion.jpg" alt="Dailymotion" title="Dailymotion" /></a> <a href="http://www.veoh.com/watch/v20859242sSZ5BzKR" class="kool-box"> <img src="images/video/veoh.png" alt="veoh" title="veoh" /></a> <a href="http://www.metacafe.com/watch/6415350/dragon_ball_game_project_age_2011_teaser_trailer/" class="kool-box"> <img src="images/video/Metacafe.png" alt="Metacafe" title="Metacafe" /></a> <a href="http://clip.vn/watch/DragonBallZ056,zOr" class="kool-box"><img src="images/video/clip.vn.png" alt="clip.vn" title="clip.vn" /></a>CÁC THEME KHÁC
<ul> <li><a href="images/1.jpg" class="kool-box {theme:'facebook'}" title="Dragon Ball Z">Facebook</a></li> <li><a href="images/1.jpg" class="kool-box {theme:'white'}" title="Dragon Ball Z">White</a></li> <li><a href="images/1.jpg" class="kool-box {theme:'violet'}" title="Dragon Ball Z">Violet</a></li> <li><a href="images/1.jpg" class="kool-box {theme:'window7'}" title="Dragon Ball Z">Widnow 7</a></li> <li><a href="images/1.jpg" class="kool-box {theme:'003366'}" title="Dragon Ball Z">003366</a></li> </ul>1.Cách cài vào blog: Thêm đoạn .js sau vào trước </body> rồi dùng các đoạn code nêu ở trên ví dụ để làm hiệu ứng:
<link href="http://nasa8x.com/demo/koolbox-jquery-plugin/css/koolbox/003366/theme.css" rel="stylesheet" type="text/css" /> <link href="http://nasa8x.com/demo/koolbox-jquery-plugin/css/koolbox/facebook/theme.css" rel="stylesheet" type="text/css" /> <link href="http://nasa8x.com/demo/koolbox-jquery-plugin/css/koolbox/white/theme.css" rel="stylesheet" type="text/css" /> <link href="http://nasa8x.com/demo/koolbox-jquery-plugin/css/koolbox/violet/theme.css" rel="stylesheet" type="text/css" /> <link href="http://nasa8x.com/demo/koolbox-jquery-plugin/css/koolbox/window7/theme.css" rel="stylesheet" type="text/css" /> <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" type="text/javascript"></script>--> <script src="http://nasa8x.com/demo/koolbox-jquery-plugin/scripts/jquery.min.js" type="text/javascript"></script> <script src="http://nasa8x.com/demo/koolbox-jquery-plugin/scripts/jquery.validate.min.js" type="text/javascript"></script> <script src="http://nasa8x.com/demo/koolbox-jquery-plugin/scripts/jquery.easing.min.js" type="text/javascript"></script> <script src="http://nasa8x.com/demo/koolbox-jquery-plugin/scripts/metadata.min.js" type="text/javascript"></script> <script src="http://nasa8x.com/demo/koolbox-jquery-plugin/scripts/koolbox.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { /* regex = /http\:\/\/www\.youtube\.com\/watch\?v=(\w{11})/; url = 'http://www.youtube.com/watch?v=Ahg6qcgoay4'; var url = 'http://abc.com/a.swf'; // \\"http://vimeo.com/7058755"; var regExp = /[^\.]\.(swf)\s*$/i; // /youtube\.com\/watch\?v=([A-Za-z0-9._%-]*)[&\w;=\+_\-]#1# ; ///youtube\.com\/watch\?v=(\w{11})/ ; // /vimeo.com\/(\d+)($|\/)/; //|| /http:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/; var match = url.match(regExp); alert(match.length); if (match) { alert("id: " + match[1]); } else { alert("not valid url"); }*/ $('.kool-box').koolbox(); $('img').css({ opacity: 0.8 }).hover( function () { $(this).animate({ opacity: 1.0 }); }, function () { $(this).animate({ opacity: 0.8 }); }); }); </script>
Haha , áp dụng thấy chạy trơn tru chưa này , thích cái window 7.
ReplyDeleteHiệu ứng Fade out bắt mắt thật =]]
ReplyDeleteNgân cứu code auto luôn nhé + kinh lúp khi rê chuột vào ảnh =)
đẹp phết
ReplyDeleteMượt phết
ReplyDeleteBữa nào test thử phát :)
Lâu lắm không ghé Blog của Yolks! Dạo này nhiều bài mới hay phết nhỉ, chúc mừng nha!
ReplyDeletecái này hay à nha :D
ReplyDeleteGreat information if you ask me. Thanks for sharing this data.
ReplyDeleteTom Davidson
cell phone signal blockers
Cái này của ông anh mình viết mà
ReplyDeleteCái này của ông anh mình mà :)).
ReplyDeleteCòn them cái này nữa này. Kooltip. Các bác vào xem thử và cho ý kién nhé.
https://www.facebook.com/vua.lap.trinh (Mọi ý kién đóng góp các bác có thể post tại đây)
http://nasa8x.com/jquery/kooltip/ (Hoặc đây)
chanel outlet
ReplyDeletelouis vuitton handbags
beats headphones
cheap nfl jerseys
michael kors sale
ugg boots
basketball shoes
lululemon outlet
michael kors uk
ugg boots
cheap nba jerseys
montblanc pens
cheap ugg boots
moncler coats
the north face
moncler outlet
louis vuitton handbags
mcm outlet
michael kors outlet
cyber monday deals
links of london
the north face uk
kobe shoes
cheap mlb jerseys
louis vuitton handbags
canada goose coats
louis vuitton outlet
jordan shoes
nike huarache
michael kors handbags clearance
cai20151029
louboutin pas cher, timberland pas cher, nike trainers uk, true religion jeans, nike roshe run pas cher, nike air max pas cher, nike blazer pas cher, lunette ray ban pas cher, abercrombie and fitch, lululemon outlet, michael kors outlet online, michael kors, coach outlet store online, coach purses, new balance, nike air max, hollister uk, michael kors, lunette oakley pas cher, true religion outlet, nike tn pas cher, replica handbags, nike air max uk, longchamp soldes, nike free, longchamp pas cher, north face uk, ralph lauren pas cher, michael kors uk, north face pas cher, vanessa bruno pas cher, true religion outlet, polo ralph lauren uk, nike air force, converse, vans pas cher, nike roshe uk, burberry pas cher, sac guess pas cher, true religion outlet, nike air max uk, ray ban uk, hogan sito ufficiale, jordan pas cher, hermes pas cher, mulberry uk, polo lacoste pas cher, nike free pas cher, abercrombie and fitch UK
ReplyDeletesac louis vuitton, ugg,uggs,uggs canada, supra shoes, coach outlet, canada goose outlet, doke & gabbana, hollister, montre pas cher, pandora jewelry, swarovski uk, ugg pas cher, canada goose, juicy couture outlet, links of london uk, moncler uk, moncler, louis vuitton, canada goose jackets, louis vuitton uk, thomas sabo uk, barbour, moncler, moncler jackets, lancel, canada goose outlet, ugg,ugg australia,ugg italia, barbour jackets uk, canada goose, replica watches, karen millen uk, moncler, pandora jewelry, juicy couture outlet, swarovski jewelry, canada goose jackets, toms shoes, louis vuitton, marc jacobs, pandora charms, ugg uk, canada goose uk, canada goose pas cher, moncler outlet, bottes ugg pas cher, pandora uk, wedding dresses uk, moncler, moncler pas cher, sac louis vuitton, converse shoes outlet
ReplyDeleteninest123 12.15