【翰书天下·周刊】第3期 带你走进翰书天下·传媒组
本帖最后由 ◇◆七宝 于 2015-10-24 23:22 编辑<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/ilSxzpNE7Qw3Na1oVtGh5A==/6631316255328107723.png" 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://img2.ph.126.net/0tQvpaqf_xjdSmWA35YILg==/6631362434816474030.jpg" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img0.ph.126.net/5vU6TxTTFjHd5e8iMPmLhA==/6631268976328050165.png" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img0.ph.126.net/F-odIf6jsYhcO68K0T2u2Q==/6631298663142003441.png" 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;"><a href="http://tx3.netease.com/viewthread.php?tid=4567890&extra=&page=1">【翰书天下·浸墨】[重阳贺文]与君共酌——by昔墨</a><br></div><div style="text-align: center;"><br></div><div style="text-align: center;"><a href="http://tx3.netease.com/viewthread.php?tid=4568530">【翰书天下·绘世】森闲手绘重阳节头像</a><br></div><div style="text-align: center;"><br></div><div style="text-align: center;"><a href="http://tx3.netease.com/viewthread.php?tid=4566645&highlight=">【翰书天下·绘世】重阳节贺图—静若.重九—BY半船月光</a><br></div><div style="text-align: center;"><hr class="solidline"><font face="微软雅黑" size="6"><br></font></div><div style="text-align: center;"><font face="微软雅黑" size="6"><p align="center"></p><div class="t_msgfontfix" style="min-height: 80px; background-color: rgb(250, 250, 250);"><font face="微软雅黑" style="font-size: 12px;"><b></b></font><span style="font-size: 12px;"><b></b></span><div style="width: 900px; padding: 0px; margin-left: 0px; float: left; background-image: url(http://img0.ph.126.net/x-1KDFW1RIN2VRPQA1y9vA==/6631438301118600210.png);" 1"="" =""="" color="#000000" >="" <p=""><p style="text-align: center;"><b style="font-size: x-large;"><font color="#c0c0c0"> </font></b></p><p><b style="font-size: x-large;"><font color="#000080">【翰书天下·招新】</font></b></p><p><br></p><p><b style="font-size: x-large;"><font color="#c0c0c0"><a href="http://tx3.netease.com/viewthread.php?tid=4554491&highlight=">翰书·行者组第3次全服招新啦~~~</a></font></b></p><p><b style="font-size: x-large;"><br></b></p><p><b style="font-size: x-large;"><a href="http://tx3.netease.com/viewthread.php?tid=4336656&extra=page%3D1">翰书天下·合作势力招募</a><br></b></p><p><br></p><p><br></p><p><b style="font-size: x-large; font-family: 微软雅黑;"><br></b></p><p><b style="font-size: x-large; font-family: 微软雅黑;"><br></b></p><p><b style="font-size: x-large; font-family: 微软雅黑;"><font color="#c0c0c0"><br></font></b></p><p><b style="font-size: x-large; font-family: 微软雅黑;"><font color="#c0c0c0"><br></font></b></p></div></div></font></div><div style="text-align: center;"><br></div><br> {:9_548:} {:9_533:} 前排任务 前排{:9_543:} 深夜支持~~~ ``````````````````````````` 111111111111111 11111111 666666666666 {:9_538:} 1111111111111 {:9_550:}{:9_550:} #T6#T6#T6 分分分分 {:8_523:}{:8_523:} 水一发#T6 还在一环吗? 打卡任务, #600前排呦