基于HTML5鼠标点击淡入淡出切换代码
时间:2016-03-09
基于HTML5鼠标点击淡入淡出切换代码。这是一款基于jQuery+HTML5实现的淡入淡出切换全屏幻灯片代码。效果图如下:
实现的代码 html代码:
- <header id="immortal_header">
- <div id="immortal_carousel" class="carousel thumbnail_text_carousel_fade thumbnail_text_carousel_wrapper" data-ride="carousel" data-interval="6000" data-pause="hover">
- <ol class="carousel-indicators thumbnail_text_carousel_indicators">
- <li data-target="#immortal_carousel" data-slide-to="0" class="active">
- <h5>爱编程</h5>
- <p>www.w2bc.com</p>
- </li>
- <li data-target="#immortal_carousel" data-slide-to="1">
- <h5>爱编程</h5>
- <p>www.w2bc.com</p>
- </li>
- <li data-target="#immortal_carousel" data-slide-to="2">
- <h5>爱编程</h5>
- <p>www.w2bc.com</p>
- </li>
- <li data-target="#immortal_carousel" data-slide-to="3">
- <h5>爱编程</h5>
- <p>www.w2bc.com</p>
- </li>
- <li data-target="#immortal_carousel" data-slide-to="4">
- <h5>爱编程</h5>
- <p>www.w2bc.com</p>
- </li>
- </ol>
- <div class="carousel-inner" role="listbox">
- <div class="item active">
- <a href="#">
- <img src="images/slider_02.jpg" alt="slider 02" />
- </a>
- </div>
- <div class="item">
- <a href="#">
- <img src="images/slider_04.jpg" alt="slider 04" />
- </a>
- </div>
- <div class="item">
- <a href="#">
- <img src="images/slider_05.jpg" alt="slider 05" />
- </a>
- </div>
- <div class="item">
- <a href="#">
- <img src="images/slider_06.jpg" alt="slider 06" />
- </a>
- </div>
- <div class="item">
- <a href="#">
- <img src="images/slider_03.jpg" alt="slider 03" />
- </a>
- </div>
- </div>
- </header>
复制代码 via:http://www.w2bc.com/article/html5-fadein-focus-fadeout