Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 恩斯道海洋世界模板eis_d25_022免费模板发布!

[复制链接]
小小太 发表于 2012-9-14 16:09:41 | 显示全部楼层
{:soso_e395:}           感觉还不错的哦!
回复

使用道具 举报

黑桃-DJL0.CoM 发表于 2012-9-14 16:19:22 | 显示全部楼层
000000000000000
回复

使用道具 举报

金字招牌 发表于 2012-9-15 00:13:10 | 显示全部楼层
喜欢11111111111
回复

使用道具 举报

adpeng 发表于 2012-9-15 00:21:27 | 显示全部楼层
<style>
.hpicccccccccc ul {margin:0;padding:0}
.hpicccccccccc{ float:left; overflow:hidden; background-color:#000; padding:3px;}
.hpicccccccccc li {list-style:none}
.hpicccccccccc img {border:none;display:block}
.slide-wp, .hpicccccccccc{ height:250px;}/*幻灯片高,根据你网页需要的大小来调整,不过太小了感觉不到3D效果*/
.nav-wp, .slide-wp, .hpicccccccccc{ width:500px;}/*幻灯片的宽*/
.slide-wp {
overflow: hidden;
position: absolute;
}
.nav-wp {
position: absolute;
background: #000;opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50);
margin-top: 222px;/*按钮所在高度随意调整*/
padding: 0 0 6px 0;
}
.nav li {
float: left;
margin-left: 10px;
font-size: 20px;
font-weight: bold;
font-family: tahoma;
color: #22739e;
cursor: pointer;
height: 22px;
}
.nav li.cur{color: #ff7a00}
.next { float:right;
padding: 4px 8px;
color: #ff7a00;
height: 20px;
cursor: pointer;
}
</style>

<div class="hpicccccccccc">
<div id="slider" class="slide-wp">
<ul>
[loop]
<li><a href="{url}" target="_blank"><img src="{pic}" /></a></li>
[/loop]
</ul>
</div>
<div class="nav-wp">
<ul id="nav" class="nav">
<a class="next" onClick="mySlider.move()">next</a>
<li onClick="mySlider.pos(0)">●</li>
<li onClick="mySlider.pos(1)">●</li>
<li onClick="mySlider.pos(2)">●</li>
<li onClick="mySlider.pos(3)">●</li>
<li onClick="mySlider.pos(4)">●</li>
</ul>

</div>
</div>

<script type="text/javascript">
var HR = {
$ : function(i) {return document.getElementById(i)},
$$ : function(c, p) {return p.getElementsByTagName(c)},
ce : function(i, t) {
var o = document.createElement(i);
t.appendChild(o);
return o;
}
};
HR.slider3D = function () {
var init = function (o) {
this.o = o;
var wp = HR.$(o.id), ul = HR.$$('ul', wp)[0], li = this.li = HR.$$('li', ul);
this.l = li.length;
this.w = wp.offsetWidth;
this.h = wp.offsetHeight;
this.at = o.auto? o.auto : 4;
var con = this.con = HR.ce('div', wp);
con.style.cssText = 'position:absolute;left:0;top:0;width:'+this.w+'px;height:'+this.h+'px';
ul.style['display'] = 'none';
this.a1 = HR.ce('a', con);
this.a1.style.cssText = 'position:absolute;left:0;top:0;overflow:hidden';
this.a2 = HR.ce('a', con);
this.a2.style.cssText = 'position:absolute;top:0;right:0;overflow:hidden';
this.a1.innerHTML = this.a2.innerHTML = '<img alt="" />';
this.img = HR.$$('img', ul);
this.s = o.maskSize ? o.maskSize : 5;

this.mask11 = HR.ce('span', this.a1);
this.mask12 = HR.ce('span', this.a1);
this.mask21 = HR.ce('span', this.a2);
this.mask22 = HR.ce('span', this.a2);

this.pos(0);
}
init.prototype = {
pos : function (i) {
clearInterval(this.li.a); clearInterval(this.au); this.au = 0; this.cur = i;
var navli = HR.$$('li', HR.$(this.o.navId));
for (var j=0; j<navli.length; j++) {
navli[j].className = i == j ? 'cur' : '';
}
var img1 = HR.$$('img', this.a1)[0], img2 = HR.$$('img', this.a2)[0], _this = this;
img1.src = i==0 ? this.img[this.l-1].src : this.img[i-1].src;
img1.width = this.w;
img2.src = this.img.src;
img2.width = 0;
img1.height = img2.height = this.h;
this.mask11.style.cssText = 'position:absolute;left:0;top:0;font-size:0;overflow:hidden;width:0;height:0;border-color:black transparent transparent black;border-style:solid dashed dashed solid;border-width:0 '+this.w/2+'px';
this.mask12.style.cssText = 'position:absolute;left:0;bottom:0;font-size:0;overflow:hidden;width:0;height:0;border-color:transparent transparent black black;border-style:dashed dashed solid solid;border-width:0 '+this.w/2+'px';
this.mask21.style.cssText = 'position:absolute;right:0;top:0;font-size:0;overflow:hidden;width:0;height:0;border-color:black black transparent transparent;border-style:solid solid dashed dashed;border-width:0px';
this.mask22.style.cssText = 'position:absolute;right:0;bottom:0;font-size:0;overflow:hidden;width:0;height:0;border-color:transparent black black transparent;border-style:dashed solid solid dashed;border-width:0px';
this.li.a = setInterval(function(){_this.anim(i)}, 20);
},
anim : function (i) {
var w1 = HR.$$('img', this.a1)[0].width, w2 = HR.$$('img', this.a2)[0].width;
if (w2 == this.w) {
clearInterval(this.li.a);
HR.$$('img', this.a1)[0].width = 0;
HR.$$('img', this.a2)[0].width = this.w;
this.mask11.style.borderLeftWidth = this.mask11.style.borderRightWidth = this.mask12.style.borderLeftWidth = this.mask12.style.borderRightWidth = '0px';
this.mask11.style.borderTopWidth = this.mask11.style.borderBottomWidth = this.mask12.style.borderTopWidth = this.mask12.style.boderBottomWidth = this.h/this.s + 'px';
this.mask21.style.borderLeftWidth = this.mask21.style.borderRightWidth = this.mask22.style.borderLeftWidth = this.mask22.style.bordrRightWidth = this.w/2 + 'px';
this.mask21.style.borderTopWidth = this.mask21.style.borderBottomWidth = this.mask22.style.borderTopWidth = this.mask22.style.borderBottomWidth = '0px';
}else {
HR.$$('img', this.a1)[0].width -= Math.ceil((this.w-w2)*.13);
HR.$$('img', this.a2)[0].width += Math.ceil((this.w-w2)*.13);
this.mask11.style.borderLeftWidth = this.mask11.style.borderRightWidth = this.mask12.style.borderLeftWidth = this.mask12.style.bordightWidth = HR.$$('img', this.a1)[0].width/2 + 'px';
this.mask11.style.borderTopWidth = this.mask11.style.borderBottomWidth = this.mask12.style.borderTopWidth = this.mask12.style.borderBottomWidth = HR.$$('img', this.a2)[0].width*this.h/(this.s*this.w) + 'px';
this.mask21.style.borderLeftWidth = this.mask21.style.borderRightWidth = this.mask22.style.borderLeftWidth = this.mask22.style.borderRightWidth = HR.$$('img', this.a2)[0].width/2 + 'px';
this.mask21.style.borderTopWidth = this.mask21.style.borderBottomWidth = this.mask22.style.borderTopWidth = this.mask22.style.borderBottomWidth = this.h/this.s - HR.$$('img', this.a2)[0].width*this.h/(this.s*this.w) + 'px';
if (!this.au) this.auto();
}
},
auto : function () {
var _this = this;
this.au = setInterval(function(){_this.move()}, this.at*1000);
},
move : function () {
var n = this.cur==this.l-1 ? 0 : this.cur+1;
this.pos(n);
}
}
return init;
}();
var mySlider = new HR.slider3D({
id: 'slider',
maskSize: 6,
navId: 'nav',
auto: 4
})</script>
回复

使用道具 举报

小小太 发表于 2012-9-16 06:54:49 | 显示全部楼层
{:soso_e1041:}           感觉还不错的哦!
回复

使用道具 举报

funny0914 发表于 2012-9-16 11:38:53 | 显示全部楼层

很漂亮很清爽哈
回复

使用道具 举报

♂⑤máo錢 发表于 2012-9-24 22:18:19 | 显示全部楼层
58693547
回复

使用道具 举报

wiven 发表于 2012-9-24 23:20:33 | 显示全部楼层
平潭人才网http://www.ptdrcw.com
福州人才网http://www.hxlarc.com
福州快网http://www.fzkw.cn
平潭http://www.ptdw.cn
福州论坛http://www.fzrm.cn
平潭论坛http://www.ptdao.cn
海峡人民http://www.hxrm.cn
回复

使用道具 举报

bas_vm 发表于 2012-9-27 09:01:56 | 显示全部楼层
thank you
回复

使用道具 举报

huafu001 发表于 2012-9-27 09:40:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-16 06:25 , Processed in 0.519764 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表