【翰书天下·周刊】第7期 寄身书翰墨,乘云鉴风波
本帖最后由 ◇◆七宝 于 2015-11-21 23:54 编辑<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/DlzSpjOioAgjsmclh2azlA==/6631356937259055806.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/0f3UT7zN6dlgBncOflmGkw==/6631331648491604531.jpg" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img1.ph.126.net/dGo6a2ml2IfiVxNsVRHl4g==/6631287668026509034.png" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img0.ph.126.net/36VcaFExL8vlofc-RrwwdA==/6631358036770682256.png" width="90%">
</li>
<li style="position: absolute; left: 0px; top: 0px; list-style: none; display: none;">
<img src="http://img1.ph.126.net/WchkgZwp0tlhHcqQP2YJxw==/6631303061189299246.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;" class=""><a>2</a></li>
<li style=" list-style: none;" class=""><a>2</a></li>
<li style=" list-style: none;" class=""><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=4608432&extra=page%3D1">◆阅读小奖励◆</a><br></div><div style="text-align: center;"><br></div><div style="text-align: center;"><a href="http://tx3.netease.com/viewthread.php?tid=4596207&highlight=">【翰书天下·绘世】巴蜀风景——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=4596220&highlight=">【翰书天下·浸墨】[连载更新]彼岸的此方(更新至第五章)</a></div><div style="text-align: center;"><br></div><div style="text-align: center;"><a href="http://tx3.netease.com/viewthread.php?tid=4598206&extra=page%3D1">【翰书天下·缭音】天下同人曲《未已》--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=4608389&extra=page%3D1">【翰书天下·浸墨】天下之弈剑听雨</a><br></div><div style="text-align: center;"><br></div><div style="text-align: center;"><br></div><div style="text-align: center;"><hr class="solidline"><font face="微软雅黑" size="6"><br></font></div><div style="text-align: center;"><font face="微软雅黑"><p align="center" style="font-size: xx-large;"></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="font-size: xx-large; text-align: center;"><b style="font-size: x-large;"><font color="#c0c0c0"> </font></b></p><p><br></p><p><br></p><p><br></p><p><b><font color="#000080"><font size="5">【翰墨承云】横空出世</font></font></b></p><p><font size="5" color="#000080"><b><br></b></font></p><p><font size="5" color="#000080"><b>看不尽的翰书情 看不完的大荒路</b></font></p><p><font size="5" color="#000080"><b><br></b></font></p><p><a href="http://tx3.netease.com/viewthread.php?tid=4607288&extra=page%3D1">活动一</a> 、 <a href="http://tx3.netease.com/viewthread.php?tid=4597488&extra=page%3D1">活动二</a><br></p><p style="font-size: xx-large;"><br></p><p style="font-size: xx-large;"><br></p><p style="font-size: xx-large;"><br></p><p style="font-size: xx-large;"><br></p><p style="font-size: xx-large;"><br></p><p style="font-size: xx-large;"><b style="font-size: x-large; font-family: 微软雅黑;"><br></b></p><p style="font-size: xx-large;"><b style="font-size: x-large; font-family: 微软雅黑;"><font color="#c0c0c0"><br></font></b></p><p style="font-size: xx-large;"><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>
<object width="10" height="10" id="FPlayer" data="http://v.163.com/swf/video/NetEaseFlvPlayerV3.swf" type="application/x-shockwave-flash"><param value="true" name="allowFullScreen"><param value="always" name="allowscriptaccess"><param value="http://v.163.com/swf/video/NetEaseFlvPlayerV3.swf" allownetworking="all" name="movie"><param value="topicid=1000&vid=VB7CH2VFA&sid=V8H1BIE6U&coverpic=http://vimg1.ws.126.net/image/snapshot/2015/11/F/B/VB7CH2VFB.jpg&autoplay=true" name="flashvars"></object>
页:
[1]