【翰书天下·绘世】狮虎说——by花绛
本帖最后由 素衣未染丶 于 2015-11-25 15:42 编辑<div id="banner_tabs" class="flexslider">
<ul class="slides">
<li style="position: absolute; left: 0px; top: 0px; list-style: none;">
<img src="http://img2.ph.126.net/VaLCgTUnKvldHCC2pAjJNg==/6630797285841046976.jpg" width="90%" id="e_f_img_0.8289040557574481">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img1.ph.126.net/wVFPB7OvoKhHq47T9u7lkw==/6631394320654487053.jpg" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img1.ph.126.net/XCANDXEZBA4bIvCcQfiPSA==/6631448196724279147.jpg" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img2.ph.126.net/orabL2RYHdsgVZCqu-C60g==/6630823674120113255.jpg" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img1.ph.126.net/qWrb-uHDUvhdk8c3574MQA==/6630402561165925834.jpg" width="90%">
</li>
</ul>
<ul class="flex-direction-nav">
<li style=" list-style: none;"><a class="flex-prev" href="javascript:;">Previous</a></li>
<li style=" list-style: none;"><a class="flex-next" href="javascript:;">Next</a></li>
</ul>
<ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
<li style=" list-style: none;" class="active"><a>1</a></li>
<li style=" list-style: none;"><a>2</a></li>
<li style=" list-style: none;"><a>2</a></li>
<li style=" list-style: none;"><a>2</a></li>
</ol>
</div>
<br>
<br>
<style type="text/css">
.flexslider {
margin: 0px auto 20px;
position: relative;
width: 80%;
height: 1000px;
overflow: hidden;
zoom: 1;
}
.flexslider .slides li {
width: 100%;
height: 100%;
text-align:center;
}
.flex-direction-nav a {
width: 70px;
height: 70px;
line-height: 99em;
overflow: hidden;
margin: -35px 0 0;
display: block;
background: url(http://img0.ph.126.net/GdGsnYRWQflm_KCXbsY_xQ==/6631377827979033267.png) no-repeat;
position: absolute;
top: 50%;
z-index: 10;
cursor: pointer;
opacity: 1;
filter: alpha(opacity=1);
-webkit-transition: all .3s ease;
border-radius: 35px;
}
.flex-direction-nav .flex-next {
background-position: 0 -70px;
right: 0;
}
.flex-direction-nav .flex-prev {
left: 0;
}
.flexslider:hover .flex-next {
opacity: 0.8;
filter: alpha(opacity=25);
}
.flexslider:hover .flex-prev {
opacity: 0.8;
filter: alpha(opacity=25);
}
.flexslider:hover .flex-next:hover,
.flexslider:hover .flex-prev:hover {
opacity: 1;
filter: alpha(opacity=50);
}
.flex-control-nav {
width: 100%;
position: absolute;
bottom: 10px;
text-align: center;
}
.flex-control-nav li {
margin: 0 2px;
display: inline-block;
zoom: 1;
*display: inline;
}
.flex-control-paging li a {
background: url(http://img0.ph.126.net/IIg8sOjHMAvUEpsj1qM2hQ==/6631285469002289700.png) no-repeat 0 -16px;
display: block;
height: 16px;
overflow: hidden;
text-indent: -99em;
width: 16px;
cursor: pointer;
}
.flex-control-paging li a.flex-active,
.flex-control-paging li.active a {
background-position: 0 0;
}
</style>
<script src="http://res.nie.netease.com/comm/js/jquery(mixNIE).last.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(function($){
var bannerSlider = new Slider($('#banner_tabs'), {
time: 5000,
delay: 400,
event: 'hover',
auto: false,
mode: 'fade',
controller: $('#bannerCtrl'),
activeControllerCls: 'active'
});
$('#banner_tabs .flex-prev').click(function() {
bannerSlider.prev()
});
$('#banner_tabs .flex-next').click(function() {
bannerSlider.next()
});
})
/**
* slider插件可悬停控制 下面这一段基本不用管,这个是插件
插件没地方上传,只能粗暴地放在帖子里面了ORZ
*/
; $(function ($, window, document, undefined) {
Slider = function (container, options) {
/*
options = {
auto: true,
time: 3000,
event: 'hover' | 'click',
mode: 'slide | fade',
controller: $(),
activeControllerCls: 'className',
exchangeEnd: $.noop
}
*/
"use strict"; //stirct mode not support by IE9-
if (!container) return;
var options = options || {},
currentIndex = 0,
cls = options.activeControllerCls,
delay = options.delay,
isAuto = options.auto,
controller = options.controller,
event = options.event,
interval,
slidesWrapper = container.children().first(),
slides = slidesWrapper.children(),
length = slides.length,
childWidth = container.width(),
totalWidth = childWidth * slides.length;
function init() {
var controlItem = controller.children();
mode();
event == 'hover' ? controlItem.mouseover(function () {
stop();
var index = $(this).index();
play(index, options.mode);
}).mouseout(function () {
isAuto && autoPlay();
}) : controlItem.click(function () {
stop();
var index = $(this).index();
play(index, options.mode);
isAuto && autoPlay();
});
isAuto && autoPlay();
}
//animate mode
function mode() {
var wrapper = container.children().first();
options.mode == 'slide' ? wrapper.width(totalWidth) : wrapper.children().css({
'position': 'absolute',
'left': 0,
'top': 0
})
.first().siblings().hide();
}
//auto play
function autoPlay() {
interval = setInterval(function () {
triggerPlay(currentIndex);
}, options.time);
}
//trigger play
function triggerPlay(cIndex) {
var index;
(cIndex == length - 1) ? index = 0 : index = cIndex + 1;
play(index, options.mode);
}
//play
function play(index, mode) {
slidesWrapper.stop(true, true);
slides.stop(true, true);
mode == 'slide' ? (function () {
if (index > currentIndex) {
slidesWrapper.animate({
left: '-=' + Math.abs(index - currentIndex) * childWidth + 'px'
}, delay);
} else if (index < currentIndex) {
slidesWrapper.animate({
left: '+=' + Math.abs(index - currentIndex) * childWidth + 'px'
}, delay);
} else {
return;
}
})() : (function () {
if (slidesWrapper.children(':visible').index() == index) return;
slidesWrapper.children().fadeOut(delay).eq(index).fadeIn(delay);
})();
try {
controller.children('.' + cls).removeClass(cls);
controller.children().eq(index).addClass(cls);
} catch (e) { }
currentIndex = index;
options.exchangeEnd && typeof options.exchangeEnd == 'function' && options.exchangeEnd.call(this, currentIndex);
}
//stop
function stop() {
clearInterval(interval);
}
//prev frame
function prev() {
stop();
currentIndex == 0 ? triggerPlay(length - 2) : triggerPlay(currentIndex - 2);
isAuto && autoPlay();
}
//next frame
function next() {
stop();
currentIndex == length - 1 ? triggerPlay(-1) : triggerPlay(currentIndex);
isAuto && autoPlay();
}
//init
init();
//expose the Slider API
return {
prev: function () {
prev();
},
next: function () {
next();
}
}
};
}(jQuery, window, document));
</script>
<br><div style="text-align: center;"><font size="4"><a href="http://img2.ph.126.net/DjnsLq00_V2_NJjJoQRD4g==/3109735542717618125.jpg">花绛-狮虎说-天机x冰心(TJxBX)</a><br></font></div><div style="text-align: center;"><font size="4"> <a href="http://img1.ph.126.net/b1kpe-hljj-qi2Ejb4v0MA==/2391974352105413776.jpg">花绛-狮虎说-荒火X鬼墨(HHxGM)</a><br></font></div><div style="text-align: center;"><font size="4"> <a href="http://img2.ph.126.net/18xqIilVMtmb6bm7AnAEYw==/52917295639994342.jpg">花绛-狮虎说-魍魉x龙巫(WLxLW)</a><br></font></div><div style="text-align: center;"><font size="4"> <a href="http://img2.ph.126.net/Giuo-x711e-hm3NOPnDn1A==/6619175447933816954.jpg">花绛-狮虎说-云麓x羽毛(YLxYM)</a></font></div><div style="text-align: center;"><a href="http://img2.ph.126.net/WcoI8ZglC5yJ9QMpGGHokg==/642325896871848401.jpg" style="font-size: large;">花绛-狮虎说-弈剑x太虚(YJxTX)</a></div><div style="text-align: center;"><br></div> #T14自己的楼,自己占沙发~~每20楼送分分~~不多就5分~~聊表心意#T22前10楼也有~~ 本帖最后由 小丫么小骨头 于 2015-11-25 14:10 编辑
#T22 我是板凳儿?漫画好萌~~ 无限赞公司网络不好只好回家慢慢看了 #T2#T22#TWL 鸡腿腿那个好萌!!! #171画的好棒 好萌啊 本帖最后由 清秋冷月寒 于 2015-11-30 10:58 编辑
#127我也有个爱吃鸡腿腿的媳妇儿~ @◇◆七宝
你懂的 1环!?#616
页:
[1]