Noct's Blog |
Posted: 19 Apr 2012 07:19 AM PDT Hôm nay mình sẽ giới thiệu một loại jQuery Slider mới nhưng lại không mới: Hẳn bạn đã nhận ra đây chính là một nâng cấp của Kwicks Slider mà Noct từng đăng trước đây. Hai tính năng sáng giá nhất của Accordion Slider này chính là hỗ trợ Video và Lightbox. Để chèn slider này vào blog thì bạn vào phần HTML của blog tìm đoạn: <div id='content-wrapper'> hoặc bất cứ vị trí nào trong template mà bạn thấy phù hợp, chèn phía trên nó: <b:if cond='data:blog.url == data:blog.homepageUrl'> <style> Lưu ý nếu trong site của bạn đang dùng các thủ thuật jQuery khác thì hãy xóa dòng màu đỏ. Đoạn code trên sẽ tạo một tiện ích HTML/Javascript mới trên blog của bạn, hãy quay lại Phần tử trang và tiếp tục chèn vào tiện ích mới đoạn code này.#slider h2{display:none} .container {padding: 10px 0 15px;z-index: 100;display: block;margin: 0 auto;position: relative;width: 930px;} .js_active .slideshow img{visibility:hidden;} .slideshow_container{position: relative;margin-bottom:20px;} .slideshow{background: #f8f8f8 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLfC0Sb1w16-zY2Y8DNjrCBtnPdcx8jC1S3gFeAiD7E9-vC-Y8LdJLIYHxepdgGJumFZ1NPtXJs3BOymll7_PQ-UVj4sbjA71Bzxp2ngx-7qQHbA1ZmiLA6caoSHEgiDcxM0Zg16Hba0/s12/loading.gif) center center no-repeat;display:block;position: relative;padding:0;margin:0;overflow: hidden;z-index: 2;} .slideshow .featured{display: none;width:100%;height:100%;position: absolute;top:0; left:0;z-index: 1;margin:0;padding:0;} .slideshow .featured_container1{display:block;z-index: 2;} .slideshow iframe, .slideshow object, .slideshow embed, .slideshow video, .slideshow img, .slideshow a img{display:block;padding:0;margin:0 auto;position: relative;border: none;text-decoration: none;z-index: 1;height:100%;width:100%;} .auto_height .slideshow .featured img{height:auto;} .slideshow img, .slideshow a img{z-index:2;} .slideshow > li > a{display:block;width:100%;height:100%;} .slideshow .slideshow_video{position: absolute;top:0;left:0;right:0;bottom:0;z-index: 1;background: #000;} .comboslide .slideshow_video{display:none;} .videoSlideContainer img{cursor: pointer;} .slideshow_caption{position: absolute;display: none;bottom: 0;z-index: 100;font-size: 11.5px;line-height:1.5em;background: #000;color: #fff;right:auto;} .slideshow_caption strong,.slideshow_caption h1{display: block;padding: 0px;color:#fff;font-size: 12px;font-style: normal;font-weight: bold;letter-spacing: 1.5px;text-transform: uppercase;} .slideshow_caption .inner_caption{display:block;background: #000;padding:14px 15px;} .featured_caption{font-size:11px;padding-top:5px;} .aviacordion .slideshow{background: #f8f8f8;} .aviacordion .featured,.aviacordion .slideshow_caption{width:610px;} .aviacordion .featured{display: none;height:100%;position: absolute;top:0;left:0; z-index: 1;margin:0;padding:0;background: #f8f8f8 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFLfC0Sb1w16-zY2Y8DNjrCBtnPdcx8jC1S3gFeAiD7E9-vC-Y8LdJLIYHxepdgGJumFZ1NPtXJs3BOymll7_PQ-UVj4sbjA71Bzxp2ngx-7qQHbA1ZmiLA6caoSHEgiDcxM0Zg16Hba0/s12/loading.gif) center center no-repeat;} .aviacordion .shadow{background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuf59eoWk-UchcP24Wq5DINvtarxRPz8D-WCsPE9RS6L1PXcF7LbUwDm57wv_MrXwuQyk5WhsM5c5KbqsglMFtew5pgvUmOmT98NtfqITvuH1SF5dPm6ERHfhlCQOIe0h839w0SbRazfE/s40/shadow.png) repeat-y scroll left top transparent;height:100%;width:15px;position: absolute;left:-15px;top:0;} .aviacordion .featured img{position: absolute;top:0;left:0;height:auto;width:auto;} .aviacordion .heading_clone{position: absolute;z-index:4;bottom:0;left:0;background: #000;} .aviacordion .center_helper{height:100%;display:table;} .aviacordion .heading_clone h1{text-transform: uppercase;padding:15px;background: #000;color:#fff;font-size: 12px;display: table-cell;vertical-align: middle;} .pptimeleft{text-align:center;font-size: 11px;} .ppfsenter{display:none !important;width:0px;} .comboslide .slideshow_overlay{display: block;width:100%;height:100%;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhExwtMkKhqciHTj2k6YLjLccNLfb4qDTOd-oZhSEitf2QARStkwJMy_lfCczFjI59vZ1qbMJPXJ2xLABOyC5KKi2-LUasuO57ce6bz2Db3A08KObYMeTqA7kAoMKAu7Nklp10y394pnwA/s90/video.png) no-repeat scroll center center transparent;z-index: 3;position: absolute;opacity: 0.5;cursor: pointer;top:0;left:0;} .videoSlideContainerEmbed video, .videoSlideContainer video{left:0 !important;top:0 !important;} .rounded_corner{height:5px;width:5px;position: absolute;z-index: 200;background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_LpRgCmQr4AyEPGsd1mAAjH7jpHCT65j2zs6yn-stZDSz9DL9D6DR2yijtSR25oP0R0hkNXHRD0eNz6c3Bpv4vmvV3LwRzn6ste0HrEgQGLEERujUWrUscLA4_qvBFxF8MbDAWpIb9TI/s20/rounded_corners.png) no-repeat scroll top left transparent;} .rctl{top:0;left:0;} .rctr{top:0;right:0;background-position: top right;} .rcbl{bottom:0;left:0;background-position: bottom left;} .rcbr{bottom:0;right:0;background-position: bottom right;} .aviacordion .bottom_shadow, .slideshow_featured .bottom_shadow {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLbSw-jIRpCiRYD6DD78F0am9hgCLYzaB4NMyTaVNq-8l0xRgmPQsAiMgJjoHKVsS9_5S4Wc-6yggD5H2rI-QrBtxBT0etINOxB94wwqbUj-sdpG3T4ccW25zGkew2l_C7BlkeJG8wXwQ/s953/shadow-featured.png) no-repeat scroll left top transparent;bottom: -5px;height: 11px;left: -12px;position: absolute;width: 954px;z-index: 1;} .aviacordion .rcbl, .aviacordion .rcbr, .slideshow_featured .rcbl, .slideshow_featured .rcbr{background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyFgoDjRiN-onWoz6_pv8IocWLzu5UpYrZr58x_3EUF5s_MMdWcoqh-qnK8EY4bVkp0pnJjFLsKLrcS9rDsM_wG2EAk6VEu8VjEt-hFR53k0RaFqK03l_F2mtNUbLO5l2PCavK4zwAkxU/s20/rounded_corners_shadow.png);} .medium_image .slideshow_caption{width:360px;} .big_image .slideshow_caption{width:520px;} .small_image .slideshow_caption{display: none !important;} .aviacordion .lightbox_image .image_overlay_effect_inside,.slideshow_featured .lightbox_image .image_overlay_effect_inside {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTxJKBTrx2sVpR9dw_69ZawR7wvtEI6GJafFYg775es4RdK3tZpmeKa0c-YBkyPCuHhD1a1FJyD4kV8IRzeyhPnv6S7t-M202LbP_37PhEerX2VvR3C4EqkRIOJ7Pxl9oMHkIlPcoJCCA/s90/magnify.png) no-repeat scroll center center transparent;} .lightbox_video,.lightbox_image,.image_overlay_effect,.image_overlay_effect_inside {bottom: 0;left: 0;position: absolute;right: 0;top: 0;z-index: 2;} </style> <div class='container'> <div class=' preloading autoslide_true autoslidedelay__5 slideshow_aviacordion aviacordion slideshow_container'> <span class='rounded_corner rctl'></span> <span class='rounded_corner rctr'></span> <span class='rounded_corner rcbl'></span> <span class='rounded_corner rcbr'></span> <span class='bottom_shadow'></span> <ul class='slideshow' style='height: 370px; width: 930px;'> <li class='featured featured_container1' ><a href='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ8tkK3x1deiCfBb7ZK13BbKvuvpKqsLOUEkT_XEbZzsdDw_Wwi02ltw3YfaC5ELtEVeAHFK-AoT_vLpgpeS07i8qQBVlNVkHW9fJDYdKpwXcYU-pdf_Zcld3ZdBBcKptbKG0YelE5Iew/s1024/1.jpg'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQ8tkK3x1deiCfBb7ZK13BbKvuvpKqsLOUEkT_XEbZzsdDw_Wwi02ltw3YfaC5ELtEVeAHFK-AoT_vLpgpeS07i8qQBVlNVkHW9fJDYdKpwXcYU-pdf_Zcld3ZdBBcKptbKG0YelE5Iew/s610/1.jpg' /> <div class="slideshow_caption"> <div class="inner_caption"> <h1>Yep you guessed right, this is the image caption title!!</h1> <div class="featured_caption">This is the image caption text. you can choose to omit it if you want. In that case there will be no caption text overlay once you hover over this image.</div></div></div></a></li> <li class='featured' ><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7MeCJ0s3_fxeqs8C8IuYBi3rhXotPBGswO4Oi3ztaVbopMPdgTiTF2CE5cuJVJM-Xhu4TPkthPVUOHbMf9GaKy2_ihDlxVdWWUSPud-Ev82ue9KAsfVJrjvE8Zi2hyphenhyphenP2LgPeXY8eKH7c/s610/2.jpg' /> <div class='slideshow_video embeded_video'> <iframe src="http://www.youtube.com/embed/A8sJUwQZ0lo?autoplay=1;wmode=opaque" width="500" height="281" frameborder="0" webkitallowfullscreen allowfullscreen></iframe></div> <div class="slideshow_caption"> <div class="inner_caption"><h1>Defense of the Ancients</h1> <div class="featured_caption">As you can see its quite simply to link to whatever content you want.</div></div></div></li> <li class='featured'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbXqJOwZYFjEGeEkfHuJ3NiyFB99oMNsV3dt3HBBsjIU6C2BOFGnXgF7JdIsZECfVcyC7q36cXra9wg_YVO8xROsawCmIFF_NhzyO_19JglIhcV5SKyPq4EKxO6yDOLWasLfYOYE34qqM/s610/3.jpg' /> <div class='slideshow_video embeded_video'> <iframe src="http://www.youtube.com/embed/YfqIOOKdx6k?autoplay=1;wmode=opaque" width="500" height="281" frameborder="0" webkitallowfullscreen allowfullscreen></iframe></div> <div class="slideshow_caption"> <div class="inner_caption"><h1>Directly Embed Video</h1></div></div></li> <li class='featured'><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU6uoxB4lg0j5Pk4NUfNuT8F7SuNzv2oHCMNNGmHHrpPa9e2W6vwHxhjZDFxGj6r_Wg4gz8GC9BkPRltq0ysGNxfglktls_bO-wzDtmbHmLnzPxg32Q0IMUTk95eSo2Vnj3caGCNT1oDE/s610/4.jpg' /></a> <div class="slideshow_caption"> <div class="inner_caption"><h1>Link to a page. In this particular case its the Portfolio 4 Column page! </h1> <div class="featured_caption">This time we have chosen to link to an external page, namely the portfolio page. Want to see it? Click the image! </div></div></div></li> <li class='featured'><a href='http://vimeo.com/7809605'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxLMQITDdx_OvmOTgm7KFj310J6RHO3r9-qFSSyJuWi12tPPZn7J2bvDSQE61YJNgIlwa0hS68obqRi4LJdcM62nXPEirC-qImtsE6tOnnE0lH1eQ88IUJN1SyL14y_ij64eptavoB77E/s610/5.jpg' /></a> <div class="slideshow_caption"> <div class="inner_caption"><h1>Its a Lightbox link, once again</h1> <div class="featured_caption">This one is a lightbox link to a video site. As you can see you can link to almost everything you can imagine ;)</div></div></div></li> </ul> </div> </div> Chỉ việc chỉnh sửa lại nội dung Slider theo ý bạn và kiểm tra kết quả. |
You are subscribed to email updates from Noct Blog To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |