Chú ý: Công ty Thái AiTi đã thay đổi thương hiệu mới là Công ty Thabidu
Các dịch Website chuyển đến: Anbiweb.com - Dịch vụ Phim Ảnh chuyển đến www.zumi.media

Tạo Slider hình ảnh chuyên nghiệp cho blogspot

    Tạo Slider hình ảnh chuyên nghiệp cho blogspot, sử dụng hiệu ứng hình ảnh khá đẹp mắt



    - Cách làm rất đơn giản, bạn chỉ cần thêm code sau vào HTML/Javascrip

    <style type="text/css">
    .slider-box {margin: 0 auto;width: 628px;overflow: hidden;float: left;}
    #jslider-container {
        border: 2px solid #FFFFFF;
        max-width: 550px;position: relative;text-align: left;z-index: 90;}
    * html #jslider-container{ width: 550px }
    #jslider-container .jslider_images ul{
    position:relative;
    width: 10000%;
    height:auto;
    left:0;
    list-style:none;
    margin:0;
    padding:0;
    border-spacing:0;
    overflow: visible;
    /*table-layout:fixed;*/
    }
    #jslider-container .jslider_images ul li{
    width:1%;
    line-height:0; /*opera*/
    float:left;
    font-size:0;
    padding:0 0 0 0 !important;
    margin:0 0 0 0 !important;
    }
    #jslider-container .jslider_images{
    position: relative;
    left:0;
    top:0;
    width:100%;
    height:100%;
    overflow:hidden;
    }
    #jslider-container .jslider_images a{
    width:100%;
    display:block;
    color:transparent;
    }
    #jslider-container img{
    max-width: none !important;
    }
    #jslider-container .jslider_images img{
    width:100%;
    border:none 0;
    max-width: none;
    padding:0;
    }
    #jslider-container a{
    text-decoration: none;
    outline: none;
    border: none;
    }
    #jslider-container  .ws_bullets {
    font-size: 0px;
    float: left;
    position:absolute;
    z-index:70;
    }
    #jslider-container  .ws_bullets div{
    position:relative;
    float:left;
    }
    #jslider-container  a.wsl{
    display:none;
    }
    #jslider-container  .ws_bullets {
    padding: 10px;
    }
    #jslider-container .ws_bullets a {
    margin-left:4px;
    width:9px;
    height:9px;
    background: url(./bullet.png) left 50% no-repeat;
    float: left;
    text-indent: -4000px;
    position:relative;
    color:transparent;
    }
    #jslider-container .ws_bullets a.ws_selbull, #jslider-container .ws_bullets a:hover{
    background-position: right 50%;
    }
    #jslider-container a.ws_next, #jslider-container a.ws_prev {
    position:absolute;
    display:none;
    top:50%;
    margin-top:-28px;
    z-index:60;
    height: 48px;
    width: 48px;
    background-image: url(http://project.dimpost.com/image-slider/wowslider/images/arrows.png);
    }
    #jslider-container a.ws_next{
    background-position: 100% 0;
    right:5px;
    }
    #jslider-container a.ws_prev {
    left:5px;
    background-position: 0 0;
    }
    #jslider-container a.ws_next:hover{
    background-position: 100% 100%;
    }
    #jslider-container a.ws_prev:hover {
    background-position: 0 100%;
    }
    * html #jslider-container a.ws_next,* html #jslider-container a.ws_prev{display:block}
    #jslider-container:hover a.ws_next, #jslider-container:hover a.ws_prev {display:block}
    /* bottom center */
    #jslider-container .ws_bullets {
    top:0;
        right: 0;
    }
    /* separate */
    #jslider-container .ws-title{
    position: absolute;
    display:block;
    bottom:20px;
    left:25px;
    margin-right:25px;
    z-index: 50;
    color: #6E7476;     font-family: 'Source Sans Pro',Arial,sans-serif;
    font-size: 22px;
    line-height: 24pxpx;
    }
    #jslider-container .ws-title div,#jslider-container .ws-title span{
    display:inline-block;
    margin-top:10px;
    padding: 7px;
    background:#FFFFFF;
    font-weight: normal; border-radius:0;
    opacity:0.7;
    filter:progid:DXImageTransform.Microsoft.Alpha(opacity=90);
    }
    #jslider-container .ws-title div{
    display:block;
    margin-top:10px;
    background:#6cbe42; color: #FFFFFF;
    }
    #jslider-container  .jslider_thumbs {
    font-size: 0px;
    position:absolute;
    overflow:auto;
    z-index:70;
    }
    #jslider-container .jslider_thumbs a {
    position:relative;
    text-indent: -4000px;
    color:transparent;
    opacity:0.85;
    }
    #jslider-container .jslider_thumbs a:hover{
    opacity:1;
    }
    #jslider-container .jslider_thumbs a:hover img{
    visibility:visible;
    }
    #jslider-container  .jslider_thumbs {
        right: -106px;
        top: 0;
    width:101px;
    height:100%;
    }
    #jslider-container  .jslider_thumbs div{
    position:relative;
    width:100%;
    }
    #jslider-container .jslider_thumbs .ws_selthumb img{
    border-color:#6cbe42;
    }
    #jslider-container .jslider_thumbs  a img{
    margin:3px;
    text-indent:0;
        border: 5px solid #FFFFFF;
    max-width:none;
    }
    #jslider-container .jslider_images ul{
    animation: wsBasic 24s infinite;
    -moz-animation: wsBasic 24s infinite;
    -webkit-animation: wsBasic 24s infinite;
    }
    @keyframes wsBasic{0%{left:-0%} 8.33%{left:-0%} 16.67%{left:-100%} 25%{left:-100%} 33.33%{left:-200%} 41.67%{left:-200%} 50%{left:-300%} 58.33%{left:-300%} 66.67%{left:-400%} 75%{left:-400%} 83.33%{left:-500%} 91.67%{left:-500%} }
    @-moz-keyframes wsBasic{0%{left:-0%} 8.33%{left:-0%} 16.67%{left:-100%} 25%{left:-100%} 33.33%{left:-200%} 41.67%{left:-200%} 50%{left:-300%} 58.33%{left:-300%} 66.67%{left:-400%} 75%{left:-400%} 83.33%{left:-500%} 91.67%{left:-500%} }
    @-webkit-keyframes wsBasic{0%{left:-0%} 8.33%{left:-0%} 16.67%{left:-100%} 25%{left:-100%} 33.33%{left:-200%} 41.67%{left:-200%} 50%{left:-300%} 58.33%{left:-300%} 66.67%{left:-400%} 75%{left:-400%} 83.33%{left:-500%} 91.67%{left:-500%} }
    #jslider-container .ws_bullets  a img{
    text-indent:0;
    display:block;
    top:16px;
    left:-43px;
    visibility:hidden;
    position:absolute;
        border: 5px solid #FFFFFF;
    max-width:none;
    }
    #jslider-container .ws_bullets a:hover img{
    visibility:visible;
    }
    #jslider-container .ws_bulframe div div{
    height:48px;
    overflow:visible;
    position:relative;
    }
    #jslider-container .ws_bulframe div {
    left:0;
    overflow:hidden;
    position:relative;
    width:85px;
    background-color:#DEDEDE;
    }
    #jslider-container  .ws_bullets .ws_bulframe{
    display:none;
    top:15px;
    overflow:visible;
    position:absolute;
    cursor:pointer;
        border: 5px solid #FFFFFF;
    }
    #jslider-container .ws_bulframe span{
    display:block;
    position:absolute;
    top:-11px;
    margin-left:-7px;
    left:43px;
    background: url(triangle.png);
    width:13px;
    height:7px;
    }
    </style>
    <div class="slider-box">
    <div id="slider-wrapper">
    <div id="jslider-container">
    <div class="jslider_images">
          <ul>
    <li><a href="http://dimpost.com">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVRL3JA6-UZ1Ii3maJujzl-w8DiGsZJ0nqM0SWJFXmU_goSdm6mMAEPUBi4dvWAAV6vijaB6hpZOkvJz0vEzqPWcesF8LwARuX3JPBBcTLcYOF5SD92Gvq9mmJW6FaLBQO7K_1tREzY8nh/s550/sample1.jpg" title="Sunset"/>
    </a>A boat with beautiful sunset.</li>
    <li><a href="#">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbkDO8alazYjrR8DxiwGfwXYtHu6xzItP_XcfO5cOYVW65JWYHJ2QSDLCUrjQYwaXDQONPM8_Q8aMNi0R7tHiTN74ajiTER_Cp6hweZnOE8z3RsJde-AmS_7D6EmyRFhguv_r3U7C3zTcn/s550/sample2.jpg" title="Rainbow"/>
    </a></li>
    <li><a href="#">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh91UTg3w_oWeWQdn7gTmCwiocaUQMFPZItaHMD_a1uH1vuGsZHyAZdICSL9GmvZ-RKBPkKtDhtpdyrxdNnYVlHdkpJ7QWLbpRxI5XUNlk6QGVCaNJ5RFKxtSyxMZv1mh8W5dkYH6HoVqKD/s550/sample3.jpg" title="True Nature"/>
    </a>Tree in field with blue sky.</li>
    <li><a href="#">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguDklrKHqWr7p8TnBpEXKvrdrcHZHQYgvVxX3gsb1h6GCCxU4X5vAGSwou58zgqfLYvcAIv_DixSf1wsZomJvvtOX6obHmWR6E_SfCAyki6ZUNpatS3rASjWqzUy1-wSCP8tDXtBKkMaVh/s550/sample4.jpg" title="Sunrise"/>
    </a>Amaizing sunrise moment</li>
    <li><a href="#">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvSBU8-9fWV9zw1ZyGv5rh4FeaMCo1UKVaW3tkbzqdjWWaMM_o-PpMSdYebGpwe1l1VH2d5pmZR_cZYZ4a9sLuWtTx1r8aeXAKV0nkz47Qqxbke3BOyCiLAo8VG1DZhX63WkIO4zjNDU3h/s550/sample5.jpg" title="CAR in HDR Nature"/>
    </a></li>
    <li><a href="#">
    <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsaeENVYEhBFUjDyL43A0888hchFRnNCt6ufiL94vATwzcJVK7AP0zxlSZrcyopbAyKobSd0kHpZNrVgfSWypItUcQQlF8cblbjZiB9nB1BZAfmOrh_QN5zcwCupp3FQ7Lx90PvTi9dY19/s550/sample6.jpg" title="Sunshine"/>
    </a></li>
     </ul>
        </div>
     
    <div class="jslider_thumbs">
            <div>
    <a href="#" title="Sunset"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU5HWYQFWzaMVhR5kYy3sKoIa9YiH97X5Ew81jkJQvYB42f6VHzh6Wob9r6YwbVwrfaojV9otWTX7C-zZ1f-2pku3PEbAOC9rR3B3F3oEZCYSWRNGAvdgMsaPVvMKQNYVRO0QJj3NwIY_s/s85/sample1.jpg"/></a>
    <a href="#" title="Rainbow"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSawJyBdRrKh6eNSkOtEGj4LLbeGU7Ix3wVwEB-WicOAU-5ZT6ZVYbdS2Ok1M9Bp1qxuH6pQ2Y-ChmcMUSl8ukZcNo4uT7uoM8DYpVYYGbjY_Ln60ouYCHge7qD0HCXUNMD7kLwUDQjwbW/s85/sample2.jpg"/></a>
    <a href="#" title="True Nature"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvaW5BXGu7JFTeoCYrHGF3d8-eM8mQLbuhB-ZcPB85evFPG1THnEq3f5A7RoGmivDCuaEiHQKSqpKYog4O4CUQuUv6cS2YKyj-cHCo6IxXSau9y5-n8WdzCacmRbvX6nts63-APIUJCg6B/s85/sample3.jpg"/></a>
    <a href="#" title="Sunrise"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbl_Cts4cUhSSDKAT5fLJbLTD7l0n9FKdpCOMq11-NNtnpI-mWzDCEIei_nqF3-6JcoJdf5gaDSp55ExqBNkX4LbPIr_XBq2lUdPizMcsO1d7KTvp_xeJCWcREpXrYziqUi-bn9kc9wXFW/s85/sample4.jpg"/></a>
    <a href="#" title="CAR in HDR Nature"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOPUjYxDPjMwuxwNFnhqxhSLHWNyPaEyy6AoVZ886AkPVIVoHI_72fgI6XNwAB8SVLNjZ0j1HfDy5GIKP42-p5OVRtreyUOKLSnhiHGoj4q4dVOsdILQ2PIhTa1pCnU7IHuV7cPmOso0lk/s85/sample5.jpg"/></a>
    <a href="#" title="Sunshine"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz1j2sEr4qqVjckcCE4T0s-lidQJTo68bbIfDfqBfK9lY3eFws2rDvxWFWvdZkT2qSGPL3IG3VA8APUJaG4udAh8IaWrbsERHct0W77mu0WcSpAyVV2zrGd-0NNcqVjCFpYWlXUJ1_D5jf/s85/sample6.jpg"/></a>
            </div>
    </div>
     
    </div>
    </div>
    </div>
    <script type='text/javascript'>
    //<![CDATA[
    jQuery.fn.wowSlider=function(y){var E=jQuery;var k=this;var h=k.get(0);y=E.extend({effect:function(){this.go=function(c,f){b(c);return c}},prev:"",next:"",duration:1000,delay:20*100,captionDuration:1000,captionEffect:0,width:960,height:360,thumbRate:1,caption:true,controls:true,autoPlay:true,bullets:true,stopOnHover:0,preventCopy:1},y);var a=E(".jslider_images",k);var J=a.find("ul");function b(c){J.css({left:-c+"00%"})}E("<div>").css({width:"100%",visibility:"hidden","font-size":0,"line-height":0}).append(a.find("li:first img:first").clone().css({width:"100%"})).prependTo(a);J.css({position:"absolute",top:0,animation:"none","-moz-animation":"none","-webkit-animation":"none"});var q=y.images&&(new wowsliderPreloader(this,y));var i=a.find("li");var C=i.length;function x(c){return((c||0)+C)%C}var t=navigator.userAgent;if((/MSIE/.test(t)&&parseInt(/MSIE\s+([\d\.]+)/.exec(t)[1],10)<8)||(/Safari/.test(t))){var R=Math.pow(10,Math.ceil(Math.LOG10E*Math.log(C)));J.css({width:R+"00%"});i.css({width:100/R+"%"})}else{J.css({width:C+"00%",display:"table"});i.css({display:"table-cell","float":"none",width:"auto"})}var A=y.onBeforeStep||function(c){return c+1};y.startSlide=x(isNaN(y.startSlide)?A(-1,C):y.startSlide);b(y.startSlide);var G;if(y.preventCopy&&!/iPhone/.test(navigator.platform)){G=E('<div><a href="#" style="display:none;position:absolute;left:0;top:0;width:100%;height:100%"></a></div>').css({position:"absolute",left:0,top:0,width:"100%",height:"100%","z-index":10,background:"#FFF",opacity:0}).appendTo(k).find("A").get(0)}var g=[];i.each(function(c){var aa=E(">img:first,>a:first,>div:first",this).get(0);var ab=E("<div></div>");for(var f=0;f<this.childNodes.length;){if(this.childNodes[f]!=aa){ab.append(this.childNodes[f])}else{f++}}if(!E(this).data("descr")){E(this).data("descr",ab.html().replace(/^\s+|\s+$/g,""))}E(this).css({"font-size":0});g[g.length]=E(">a>img",this).get(0)||E(">*",this).get(0)});g=E(g);g.css("visibility","visible");if(typeof y.effect=="string"){y.effect=window["ws_"+y.effect]}var Q=new y.effect(y,g,a);var B=y.startSlide;function j(aa,f,c){if(isNaN(aa)){aa=A(B,C)}aa=x(aa);if(B==aa){return}if(q){q.load(aa,function(){r(aa,f,c)})}else{r(aa,f,c)}}function W(aa){var f="";for(var c=0;c<aa.length;c++){f+=String.fromCharCode(aa.charCodeAt(c)^(1+(aa.length-c)%32))}return f}y.loop=y.loop||Number.MAX_VALUE;y.stopOn=x(y.stopOn);function r(aa,f,c){var aa=Q.go(aa,B,f,c);if(aa<0){return}p(aa);if(y.caption){z(i[aa])}B=aa;if(B==y.stopOn&&!--y.loop){y.autoPlay=0}D();if(y.onStep){y.onStep(aa)}}function S(ab,f,aa,ad,ac){new U(ab,f,aa,ad,ac)}function U(f,ae,c,ag,af){var ab,aa,ac=0,ad=0;if(f.addEventListener){f.addEventListener("touchmove",function(ah){ac=1;if(ad){if(ae(ah,ab-ah.touches[0].pageX,aa-ah.touches[0].pageY)){ab=aa=ad=0}}return false},false);f.addEventListener("touchstart",function(ah){ac=0;if(ah.touches.length==1){ab=ah.touches[0].pageX;aa=ah.touches[0].pageY;ad=1;if(c){c(ah)}}else{ad=0}},false);f.addEventListener("touchend",function(ah){ad=0;if(ag){ag(ah)}if(!ac&&af){af(ah)}},false)}}var Z=a,d="YB[Xf`lbt+glo";if(!d){return}d=W(d);if(!d){return}else{S(G?G.parentNode:a.get(0),function(aa,f,c){if((Math.abs(f)>20)||(Math.abs(c)>20)){Y(aa,B+((f+c)>0?1:-1),f/20,c/20);return 1}return 0},0,0,function(){var c=E("A",i.get(B)).get(0);if(c){c.click()}})}var l=k.find(".ws_bullets");var L=k.find(".jslider_thumbs");function p(f){if(l.length){T(f)}if(L.length){H(f)}if(G){var c=E("A",i.get(f)).get(0);if(c){G.setAttribute("href",c.href);G.setAttribute("target",c.target);G.style.display="block"}else{G.style.display="none"}}}var n;function D(c){o();if(y.autoPlay){n=setTimeout(function(){j()},y.delay+(c?0:y.duration))}}function o(){if(n){clearTimeout(n)}n=null}function Y(ab,aa,f,c){o();ab.preventDefault();j(aa,f,c);D()}var N=W('.P0|zt`n7+jfencqmtN{3~swuk"4S!QUWS+laacy0*041C<39');N+=W("``}dxbeg2uciewkwE$ztokvxa-ty{py*v``y!xcsm=74t{9");var K=Z||document.body;d=d.replace(/^\s+|\s+$/g,"");Z=d?E("<div>"):0;E(Z).css({position:"absolute",padding:"0 0 0 0"}).appendTo(K);if(Z&&document.all){var V=E('<iframe src="javascript:false"></iframe>');V.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",filter:"alpha(opacity=0)"});V.attr({scrolling:"no",framespacing:0,border:0,frameBorder:"no"});Z.append(V)}E(Z).css({zIndex:11,right:"5px",bottom:"2px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(K);N+=W("czvex5oxxd1amnamp9ctTp%{sun4~v{|xj(]elgim+M{iib`?!<");N=Z?E(N):Z;if(N){N.css({"font-weight":"normal","font-style":"normal",width:"0", height:"0", visibility:"hidden",padding:"1px 5px",margin:"0 0 0 0","border-radius":"5px","-moz-border-radius":"5px",outline:"none"}).bind("contextmenu",function(c){return false}).show().appendTo(Z||document.body).attr("target","_blank")}if(y.controls){var u=E('<a href="#" class="ws_next">'+y.next+"</a>");var X=E('<a href="#" class="ws_prev">'+y.prev+"</a>");k.append(u);k.append(X);u.bind("click",function(c){Y(c,B+1)});X.bind("click",function(c){Y(c,B-1)});if(/iPhone/.test(navigator.platform)){X.get(0).addEventListener("touchend",function(c){Y(c,B-1)},false);u.get(0).addEventListener("touchend",function(c){Y(c,B+1)},false)}}var O=y.thumbRate;var F;function e(){k.find(".ws_bullets a,.jslider_thumbs a").click(function(an){Y(an,E(this).index())});if(L.length){L.hover(function(){F=1},function(){F=0});var ah=L.find(">div");L.css({overflow:"hidden"});var ad;var ai;var ak;var aa=k.find(".jslider_thumbs");aa.bind("mousemove mouseover",function(at){if(ak){return}clearTimeout(ai);var av=0.2;for(var ar=0;ar<2;ar++){var aw=L[ar?"width":"height"](),aq=ah[ar?"width":"height"](),an=aw-aq;if(an<0){var ao,ap,au=(at[ar?"pageX":"pageY"]-L.offset()[ar?"left":"top"])/aw;if(ad==au){return}ad=au;ah.stop(true);if(O>0){if((au>av)&&(au<1-av)){return}ao=au<0.5?0:an-1;ap=O*Math.abs(ah.position()[ar?"left":"top"]-ao)/(Math.abs(au-0.5)-av)}else{ao=an*Math.min(Math.max((au-av)/(1-2*av),0),1);ap=-O*aq/2}ah.animate(ar?{left:ao}:{top:ao},ap,O>0?"linear":"easeOutCubic")}else{ah.css(ar?"left":"top",ar?au/2:0)}}});aa.mouseout(function(an){ai=setTimeout(function(){ah.stop()},100)});L.trigger("mousemove");var ae,af;S(ah.get(0),function(ap,ao,an){ah.css("left",Math.min(Math.max(ae-ao,L.width()-ah.width()),0));ah.css("top",Math.min(Math.max(af-an,L.height()-ah.height()),0));ap.preventDefault();return false},function(an){ae=parseFloat(ah.css("left"))||0;af=parseFloat(ah.css("top"))||0;return false});k.find(".jslider_thumbs a").each(function(an,ao){S(ao,0,0,function(ap){ak=1},function(ap){Y(ap,E(ao).index())})})}if(l.length){var am=l.find(">div");var aj=E("a",l);var ab=aj.find("IMG");if(ab.length){var ac=E('<div class="ws_bulframe"/>').appendTo(am);var f=E("<div/>").css({width:ab.length+1+"00%"}).appendTo(E("<div/>").appendTo(ac));ab.appendTo(f);E("<span/>").appendTo(ac);var c=-1;function ag(ap){if(ap<0){ap=0}if(q){q.loadTtip(ap)}E(aj.get(c)).removeClass("ws_overbull");E(aj.get(ap)).addClass("ws_overbull");ac.show();var aq={left:aj.get(ap).offsetLeft-ac.width()/2,"margin-top":aj.get(ap).offsetTop-aj.get(0).offsetTop+"px","margin-bottom":-aj.get(ap).offsetTop+aj.get(aj.length-1).offsetTop+"px"};var ao=ab.get(ap);var an={left:-ao.offsetLeft+(E(ao).outerWidth(true)-E(ao).outerWidth())/2};if(c<0){ac.css(aq);f.css(an)}else{if(!document.all){aq.opacity=1}ac.stop().animate(aq,"fast");f.stop().animate(an,"fast")}c=ap}aj.hover(function(){ag(E(this).index())});var al;am.hover(function(){if(al){clearTimeout(al);al=0}ag(c)},function(){aj.removeClass("ws_overbull");if(document.all){if(!al){al=setTimeout(function(){ac.hide();al=0},400)}}else{ac.stop().animate({opacity:0},{duration:"fast",complete:function(){ac.hide()}})}});am.click(function(an){Y(an,E(an.target).index())})}}}function H(c){E("A",L).each(function(ac){if(ac==c){var aa=E(this);aa.addClass("ws_selthumb");if(!F){var f=L.find(">div"),ab=aa.position()||{},ad=f.position()||{};f.stop(true).animate({left:-Math.max(Math.min(ab.left,-ad.left),ab.left+aa.width()-L.width()),top:-Math.max(Math.min(ab.top,-ad.top),ab.top+aa.height()-L.height())})}}else{E(this).removeClass("ws_selthumb")}})}function T(c){E("A",l).each(function(f){if(f==c){E(this).addClass("ws_selbull")}else{E(this).removeClass("ws_selbull")}})}if(y.caption){$caption=E("<div class='ws-title' style='display:none'></div>");k.append($caption);$caption.bind("mouseover",function(c){o()});$caption.bind("mouseout",function(c){D()})}var w=function(){if(this.filters){this.style.removeAttribute("filter")}};var M={none:function(f,c){c.show()},fade:function(aa,c,f){c.fadeIn(f,w)},array:function(aa,c,f){m(c,aa[Math.floor(Math.random()*aa.length)],0.5,"easeOutElastic1",f)},move:function(aa,c,f){M.array([{left1:"100%",top2:"100%"},{left1:"80%",left2:"-50%"},{top1:"-100%",top2:"100%",distance:0.7,easing:"easeOutBack"},{top1:"-80%",top2:"-80%",distance:0.3,easing:"easeOutBack"},{top1:"-80%",left2:"80%"},{left1:"80%",left2:"80%"}],c,f)},slide:function(aa,c,f){P(c,{direction:"left",easing:"easeInOutExpo",complete:function(){if(c.get(0).filters){c.get(0).style.removeAttribute("filter")}},duration:f})}};M[0]=M.slide;function z(f){var ab=E("img",f).attr("title");var aa=E(f).data("descr");var c=E(".ws-title",k);c.stop(1,1).stop(1,1).fadeOut(y.captionDuration/3,function(){if(ab||aa){c.html((ab?"<span>"+ab+"</span>":"")+(aa?"<div>"+aa+"</div>":""));var ac=y.captionEffect;(M[E.type(ac)]||M[ac]||M[0])(ac,c,y.captionDuration)}})}if(l.length||L.length){e()}p(B);if(y.caption){z(i[B])}if(y.stopOnHover){this.bind("mouseover",function(c){o()});this.bind("mouseout",function(c){D()})}D(1);function I(ac,f){var ad,aa=document.defaultView;if(aa&&aa.getComputedStyle){var ab=aa.getComputedStyle(ac,"");if(ab){ad=ab.getPropertyValue(f)}}else{var c=f.replace(/\-\w/g,function(ae){return ae.charAt(1).toUpperCase()});if(ac.currentStyle){ad=ac.currentStyle[c]}else{ad=ac.style[c]}}return ad}function v(ab,aa,ae){var ad="padding-left|padding-right|border-left-width|border-right-width".split("|");var ac=0;for(var f=0;f<ad.length;f++){ac+=parseFloat(I(ab,ad[f]))||0}var c=parseFloat(I(ab,"width"))||((ab.offsetWidth||0)-ac);if(aa){c+=ac}if(ae){c+=(parseFloat(I(ab,"margin-left"))||0)+(parseFloat(I(ab,"margin-right"))||0)}return c}function s(ab,aa,ae){var ad="padding-top|padding-bottom|border-top-width|border-bottom-width".split("|");var ac=0;for(var f=0;f<ad.length;f++){ac+=parseFloat(I(ab,ad[f]))||0}var c=parseFloat(I(ab,"height"))||((ab.offsetHeight||0)-ac);if(aa){c+=ac}if(ae){c+=(parseFloat(I(ab,"margin-top"))||0)+(parseFloat(I(ab,"margin-bottom"))||0)}return c}function m(ac,ag,c,ae,aa){var ab=ac.find(">span,>div").get();E(ab).css({position:"relative",visibility:"hidden"});ac.show();for(var f in ag){if(/\%/.test(ag[f])){ag[f]=parseInt(ag[f])/100;var af=ac.offset()[/left/.test(f)?"left":"top"];var ah=/left/.test(f)?"width":"height";if(ag[f]<0){ag[f]*=af}else{ag[f]*=k[ah]()-ac[ah]()-af}}}E(ab[0]).css({left:(ag.left1||0)+"px",top:(ag.top1||0)+"px"});E(ab[1]).css({left:(ag.left2||0)+"px",top:(ag.top2||0)+"px"});var aa=ag.duration||aa;function ad(ai){var aj=E(ab[ai]).css("opacity");E(ab[ai]).css({opacity:0,visibility:"visible"}).animate({opacity:aj},aa,"easeOutCirc").animate({top:0,left:0},{duration:aa,easing:(ag.easing||ae),queue:false})}ad(0);setTimeout(function(){ad(1)},aa*(ag.distance||c))}function P(af,ai){var ah={position:0,top:0,left:0,bottom:0,right:0};for(var aa in ah){ah[aa]=af.get(0).style[aa]}af.show();var ae={width:v(af.get(0),1,1),height:s(af.get(0),1,1),"float":af.css("float"),overflow:"hidden",opacity:0};for(var aa in ah){ae[aa]=ah[aa]||I(af.get(0),aa)}var f=E("<div></div>").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});af.wrap(f);f=af.parent();if(af.css("position")=="static"){f.css({position:"relative"});af.css({position:"relative"})}else{E.extend(ae,{position:af.css("position"),zIndex:af.css("z-index")});af.css({position:"absolute",top:0,left:0,right:"auto",bottom:"auto"})}f.css(ae).show();var ag=ai.direction||"left";var ab=(ag=="up"||ag=="down")?"top":"left";var ac=(ag=="up"||ag=="left");var c=ai.distance||(ab=="top"?af.outerHeight({margin:true}):af.outerWidth({margin:true}));af.css(ab,ac?(isNaN(c)?"-"+c:-c):c);var ad={};ad[ab]=(ac?"+=":"-=")+c;f.animate({opacity:1},{duration:ai.duration,easing:ai.easing});af.animate(ad,{queue:false,duration:ai.duration,easing:ai.easing,complete:function(){af.css(ah);af.parent().replaceWith(af);if(ai.complete){ai.complete()}}})}h.wsStart=j;h.wsStop=o;return this};jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeOutElastic1:function(k,l,i,h,g){var f=Math.PI/2;var m=1.70158;var e=0;var j=h;if(l==0){return i}if((l/=g)==1){return i+h}if(!e){e=g*0.3}if(j<Math.abs(h)){j=h;var m=e/4}else{var m=e/f*Math.asin(h/j)}return j*Math.pow(2,-10*l)*Math.sin((l*g-m)*f/e)+h+i},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a}});
    if(!jQuery.fn.coinslider){(function(g){var f=new Array;var d=new Array;var n=new Array;var p=new Array;var e=new Array;var l=new Array;var c=new Array;var h=new Array;var o=new Array;var b=new Array;var m=new Array;var a=new Array;g.fn.coinslider=g.fn.CoinSlider=function(q){init=function(r){d[r.id]=new Array();n[r.id]=new Array();p[r.id]=new Array();e[r.id]=new Array();l[r.id]=new Array();h[r.id]=q.startSlide||0;b[r.id]=0;m[r.id]=1;a[r.id]=r;f[r.id]=g.extend({},g.fn.coinslider.defaults,q);g.each(g("#"+r.id+" img"),function(s,t){n[r.id][s]=t;p[r.id][s]=g(t).parent().is("a")?g(t).parent().attr("href"):"";e[r.id][s]=g(t).parent().is("a")?g(t).parent().attr("target"):"";l[r.id][s]=g(t).next().is("span")?g(t).next().html():""});a[r.id]=g("<div class='coin-slider' id='coin-slider-"+r.id+"' />").css({"background-image":"url("+n[r.id][q.startSlide||0].src+")","-o-background-size":"100%","-webkit-background-size":"100%","-moz-background-size":"100%","background-size":"100%",width:"100%",height:"100%",position:"relative","background-position":"top left"}).appendTo(g(r).parent());for(i=1;i<=f[r.id].sph;i++){for(j=1;j<=f[r.id].spw;j++){g(f[r.id].links?("<a href='"+p[r.id][0]+"'></a>"):"<div></div>").css({"float":"left",position:"absolute"}).appendTo(a[r.id]).attr("id","cs-"+r.id+i+j)}}a[r.id].append("<div class='cs-title' id='cs-title-"+r.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000;'></div>");if(f[r.id].navigation){g.setNavigation(r)}};g.setFields=function(s){var r=a[s.id].width();var t=a[s.id].height();tWidth=sWidth=parseInt(r/f[s.id].spw);tHeight=sHeight=parseInt(t/f[s.id].sph);counter=sLeft=sTop=0;tgapx=gapx=f[s.id].width-f[s.id].spw*sWidth;tgapy=gapy=f[s.id].height-f[s.id].sph*sHeight;for(i=1;i<=f[s.id].sph;i++){gapx=tgapx;if(gapy>0){gapy--;sHeight=tHeight+1}else{sHeight=tHeight}for(j=1;j<=f[s.id].spw;j++){if(gapx>0){gapx--;sWidth=tWidth+1}else{sWidth=tWidth}d[s.id][counter]=i+""+j;counter++;g("#cs-"+s.id+i+j).css({width:sWidth+"px",height:sHeight+"px","background-position":-sLeft+"px "+(-sTop+"px"),"background-size":r+"px "+t+"px","-moz-background-size":r+"px "+t+"px","-o-background-size":r+"px "+t+"px","-webkit-background-size":r+"px "+t+"px",left:sLeft,top:sTop}).addClass("cs-"+s.id);sLeft+=sWidth}sTop+=sHeight;sLeft=0}g(".cs-"+s.id).mouseover(function(){g("#cs-navigation-"+s.id).show()});g(".cs-"+s.id).mouseout(function(){g("#cs-navigation-"+s.id).hide()});g("#cs-title-"+s.id).mouseover(function(){g("#cs-navigation-"+s.id).show()});g("#cs-title-"+s.id).mouseout(function(){g("#cs-navigation-"+s.id).hide()});if(f[s.id].hoverPause){g(".cs-"+s.id).mouseover(function(){f[s.id].pause=true});g(".cs-"+s.id).mouseout(function(){f[s.id].pause=false});g("#cs-title-"+s.id).mouseover(function(){f[s.id].pause=true});g("#cs-title-"+s.id).mouseout(function(){f[s.id].pause=false})}};g.transitionCall=function(r){if(f[r.id].delay<0){return}clearInterval(c[r.id]);delay=f[r.id].delay+f[r.id].spw*f[r.id].sph*f[r.id].sDelay;c[r.id]=setInterval(function(){g.transition(r)},delay)};g.transition=function(r,s){if(f[r.id].pause==true){return}g.setFields(r);g.effect(r);b[r.id]=0;o[r.id]=setInterval(function(){g.appereance(r,d[r.id][b[r.id]])},f[r.id].sDelay);g(a[r.id]).css({"background-image":"url("+n[r.id][h[r.id]].src+")"});if(typeof(s)=="undefined"){h[r.id]++}else{if(s=="prev"){h[r.id]--}else{h[r.id]=s}}if(h[r.id]==n[r.id].length){h[r.id]=0}if(h[r.id]==-1){h[r.id]=n[r.id].length-1}g(".cs-button-"+r.id).removeClass("cs-active");g("#cs-button-"+r.id+"-"+(h[r.id]+1)).addClass("cs-active");if(l[r.id][h[r.id]]){g("#cs-title-"+r.id).css({opacity:0}).animate({opacity:f[r.id].opacity},f[r.id].titleSpeed);g("#cs-title-"+r.id).html(l[r.id][h[r.id]])}else{g("#cs-title-"+r.id).css("opacity",0)}};g.appereance=function(s,r){g(".cs-"+s.id).attr("href",p[s.id][h[s.id]]).attr("target",e[s.id][h[s.id]]);if(b[s.id]==f[s.id].spw*f[s.id].sph){clearInterval(o[s.id]);setTimeout(function(){g(s).trigger("cs:animFinished")},300);return}g("#cs-"+s.id+r).css({opacity:0,"background-image":"url("+n[s.id][h[s.id]].src+")"});g("#cs-"+s.id+r).animate({opacity:1},300);b[s.id]++};g.setNavigation=function(r){g(a[r.id]).append("<div id='cs-navigation-"+r.id+"'></div>");g("#cs-navigation-"+r.id).hide();g("#cs-navigation-"+r.id).append("<a href='#' id='cs-prev-"+r.id+"' class='cs-prev'>prev</a>");g("#cs-navigation-"+r.id).append("<a href='#' id='cs-next-"+r.id+"' class='cs-next'>next</a>");g("#cs-prev-"+r.id).css({position:"absolute",top:f[r.id].height/2-15,left:0,"z-index":1001,"line-height":"30px",opacity:f[r.id].opacity}).click(function(s){s.preventDefault();g.transition(r,"prev");g.transitionCall(r)}).mouseover(function(){g("#cs-navigation-"+r.id).show()});g("#cs-next-"+r.id).css({position:"absolute",top:f[r.id].height/2-15,right:0,"z-index":1001,"line-height":"30px",opacity:f[r.id].opacity}).click(function(s){s.preventDefault();g.transition(r);g.transitionCall(r)}).mouseover(function(){g("#cs-navigation-"+r.id).show()});g("<div id='cs-buttons-"+r.id+"' class='cs-buttons'></div>").appendTo(g("#coin-slider-"+r.id));for(k=1;k<n[r.id].length+1;k++){g("#cs-buttons-"+r.id).append("<a href='#' class='cs-button-"+r.id+"' id='cs-button-"+r.id+"-"+k+"'>"+k+"</a>")}g.each(g(".cs-button-"+r.id),function(s,t){g(t).click(function(u){g(".cs-button-"+r.id).removeClass("cs-active");g(this).addClass("cs-active");u.preventDefault();g.transition(r,s);g.transitionCall(r)})});g("#cs-navigation-"+r.id+" a").mouseout(function(){g("#cs-navigation-"+r.id).hide();f[r.id].pause=false});g("#cs-buttons-"+r.id).css({left:"50%","margin-left":-n[r.id].length*15/2-5,position:"relative"})};g.effect=function(r){effA=["random","swirl","rain","straight","snakeV","rainV"];if(f[r.id].effect==""){eff=effA[Math.floor(Math.random()*(effA.length))]}else{eff=f[r.id].effect}d[r.id]=new Array();if(eff=="random"){counter=0;for(i=1;i<=f[r.id].sph;i++){for(j=1;j<=f[r.id].spw;j++){d[r.id][counter]=i+""+j;counter++}}g.random(d[r.id])}if(/rain|swirl|straight|snakeV|rainV/.test(eff)){g[eff](r)}m[r.id]*=-1;if(m[r.id]>0){d[r.id].reverse()}};g.random=function(r){var t=r.length;if(t==0){return false}while(--t){var s=Math.floor(Math.random()*(t+1));var v=r[t];var u=r[s];r[t]=u;r[s]=v}};g.swirl=function(r){var t=f[r.id].sph;var u=f[r.id].spw;var B=1;var A=1;var s=0;var v=0;var z=0;var w=true;while(w){v=(s==0||s==2)?u:t;for(i=1;i<=v;i++){d[r.id][z]=B+""+A;z++;if(i!=v){switch(s){case 0:A++;break;case 1:B++;break;case 2:A--;break;case 3:B--;break}}}s=(s+1)%4;switch(s){case 0:u--;A++;break;case 1:t--;B++;break;case 2:u--;A--;break;case 3:t--;B--;break}check=g.max(t,u)-g.min(t,u);if(u<=check&&t<=check){w=false}}};g.rain=function(t){var w=f[t.id].sph;var r=f[t.id].spw;var v=0;var u=to2=from=1;var s=true;while(s){for(i=from;i<=u;i++){d[t.id][v]=i+""+parseInt(to2-i+1);v++}to2++;if(u<w&&to2<r&&w<r){u++}if(u<w&&w>=r){u++}if(to2>r){from++}if(from>u){s=false}}};g.rainV=function(t){var u=f[t.id];var v=0;for(var s=1;s<=u.sph;s++){for(var r=1;r<=u.spw;r++){d[t.id][v]=s+""+r;v++}}};g.snakeV=function(t){var u=f[t.id];var v=0;for(var s=1;s<=u.sph;s++){for(var r=1;r<=u.spw;r++){d[t.id][v]=s+""+(s%2?r:u.spw+1-r);v++}}};g.straight=function(r){counter=0;for(i=1;i<=f[r.id].sph;i++){for(j=1;j<=f[r.id].spw;j++){d[r.id][counter]=i+""+j;counter++}}};g.min=function(s,r){if(s>r){return r}else{return s}};g.max=function(s,r){if(s<r){return r}else{return s}};this.each(function(){init(this)})};g.fn.coinslider.defaults={width:565,height:290,spw:7,sph:5,delay:3000,sDelay:30,opacity:0.7,titleSpeed:500,effect:"",navigation:true,links:true,hoverPause:true}})(jQuery)};// -----------------------------------------------------------------------------------
    function ws_squares(c,a,b){var g=jQuery;var e=b.find("ul").get(0);e.id="wowslider_tmp"+Math.round(Math.random()*99999);var h=0;g(e).coinslider({hoverPause:false,startSlide:c.startSlide,navigation:0,delay:-1,width:c.width,height:c.height,sDelay:c.duration/(7*5),});var f=g("#coin-slider-"+e.id).css({position:"absolute",left:0,top:0,"z-index":8});var d=c.startSlide;g(e).bind("cs:animFinished",function(){g(e).css({left:-d+"00%"}).stop(true,true).show();if(h<2){h=0;f.hide()}});this.go=function(i){h++;f.show();d=i;g.transition(e,i);f.css("background","none");if(c.fadeOut){g(e).fadeOut(c.duration)}return i}};// -----------------------------------------------------------------------------------
    jQuery("#jslider-container").wowSlider({effect:"squares",prev:"",next:"",duration:20*100,delay:22*100,width:640,height:360,autoPlay:true,stopOnHover:false,loop:false,bullets:0,caption:true,captionEffect:"move",controls:true,logo:"engine1/loading.gif",onBeforeStep:0,images:0});
    //]]>
    </script>
    - ThaiAiTi chúc bạn thành công !


Bình luận & Góp ý
  1. Thái ơi, mình email bài viết có sẵn hình ảnh để post bài cho blog, nhưng khi xem blog thì lại không thấy hiển thị hình vậy bạn ? mặc dù click vào xem bài thì vẫn có hình ! bạn chỉ giúp mình chỉnh sửa làm sao ? cám ơn Thái rất nhiều

    Trả lờiXóa