首页
精品网站
艺术设计
网络学院
信息中心
求职招聘
网站综合
服装网站
编程开发
设计论坛
投稿
我要上榜
设计资源站
平面设计
画册
VI欣赏
包装
CG-插画
搜索
个人网页
Alexa排名
CSS
建站资源
下载专区
JS特效
品牌服装
服装院校
专题欣赏
SEO
图标欣赏
专题
网站建设
域名注册
虚拟主机
广州网站设计
域名注册
广州网站建设
上海网站建设
虚拟主机
广州网页设计
虚拟主机
域名注册
acg王国
ACG玩家
当前位置:
网站综合首页
>>
网页JS特效
>>
图形图象类
>> 纵向的JS相册效果
纵向的JS相册效果
网站色彩搭配讲解
跟我探索网站排名的捷径
网页banner设计欣赏
网站装饰图标设计欣赏
设计赛事集合
ACG王国
来源:
中国设计秀
作者:
佚名
点击:
626
加入收藏
发表评论
0
顶一下
关键字:
纵向
相册效果
JS相册效果
代码如下,点击运行可查看效果:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <meta name="Author" content="中国设计秀" /> <title>纵向的JS相册效果</title> <style> body {background:#000000;margin:20px 0;font:12px Verdana, Arial, Tahoma;text-align:center;vertical-align:middle;color:#FFFFFF} img {border:none} .txt_1 {font:bold 24px Verdana, Tahoma;color:#fff} img.thumb_img {cursor:pointer;display:block;margin-bottom:10px} img#main_img {cursor:pointer;display:block;} #gotop {cursor:pointer;display:block;} #gobottom {cursor:pointer;display:block;} #showArea {height:355px;margin:10px;overflow:hidden} .info {color:#666;font:normal 9px Verdana;margin-top:20px} .info a:link, .info a:visited {color:#666;text-decoration:none} .info a:hover {color:#fff;text-decoration:none} </style> </head> <body> <table width="760" border="0" align="center" cellpadding="0" cellspacing="5"> <tr> <td height="75" colspan="2" align="left" class="txt_1">纵向的JS相册效果</td> </tr> <tr> <td width="640" align="center"><img src="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" alt="懒人图库" width="640" height="400" border="0" id="main_img" rel="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" link="http://www.makewing.com" /></td> <td width="110" align="center" valign="top"> <img src="/uploadfile/site/uploadfile/200806/20080621111320510.gif" width="100" height="14" id="gotop" /> <div id="showArea"> <img src="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111320534.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111322926.jpg" link="http://www.makewing.com" /> <img src="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" alt="懒人图库" width="80" height="50" border="0" class="thumb_img" rel="/uploadfile/site/uploadfile/200806/20080621111318804.jpg" link="http://www.makewing.com" /> </div> <img src="/uploadfile/site/uploadfile/200806/20080621111323968.gif" width="100" height="14" id="gobottom" /></td> </tr> </table> </body> </html> <script language="javascript" type="text/javascript"> function $(e) {return document.getElementById(e);} document.getElementsByClassName = function(cl) { var retnode = []; var myclass = new RegExp('\\b'+cl+'\\b'); var elem = this.getElementsByTagName('*'); for (var i = 0; i < elem.length; i++) { var classes = elem[i].className; if (myclass.test(classes)) retnode.push(elem[i]); } return retnode; } var MyMar; var speed = 1; //速度,越大越慢 var spec = 1; //每次滚动的间距, 越大滚动越快 var ipath = 'http://download.makewing.com/lanren/code/jsphotobook/images/'; //图片路径 var thumbs = document.getElementsByClassName('thumb_img'); for (var i=0; i<thumbs.length; i++) { thumbs[i].onmouseover = function () {$('main_img').src=this.rel; $('main_img').link=this.link;}; thumbs[i].onclick = function () {location = this.link} } $('main_img').onclick = function () {location = this.link;} $('gotop').onmouseover = function() {this.src = ipath + 'gotop2.gif'; MyMar=setInterval(gotop,speed);} $('gotop').onmouseout = function() {this.src = ipath + 'gotop.gif'; clearInterval(MyMar);} $('gobottom').onmouseover = function() {this.src = ipath + 'gobottom2.gif'; MyMar=setInterval(gobottom,speed);} $('gobottom').onmouseout = function() {this.src = ipath + 'gobottom.gif'; clearInterval(MyMar);} function gotop() {$('showArea').scrollTop-=spec;} function gobottom() {$('showArea').scrollTop+=spec;} </script>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
2008-06-22 00:09:00 出处:
中国设计秀cnwebshow.com
输入您的搜索字词
提交搜索表单
本文引用地址:
http://www.cnwebshow.com/site/html/article_2353.html
热点文章/相关文章
横向的JS相册效果
素材下载
矢量
潮流素材
背景素材
模板
最新文章
·
完全加载图片后,才显示图片
·
横向的JS相册效果
·
纵向的JS相册效果
·
KUGOO首页展示效果
·
运用filter做广告渐近渐显效果.
·
一个简洁的JS日历
·
Javascript的图片滚动浏览效果...
·
JavaScript使图片保持纵横比的代码
·
JS控制CSS的实现方法
·
JS图片模糊变化切换效果代码
艺术设计秀最新图片
一系列酒包装设计...
艺态海报牛仔画册...
Brian Hunt平面设...
清新风格插画作品欣赏
国外媒体公司企业...
Michael Zimmerma...
推荐文章
·
纵向的JS相册效果
·
运用filter做广告渐近渐显效果.
网站地图
|
关于我们
|
联系我们
|
网站建设
|
广告服务
|
版权声明
|
免责声明
|
网站公告
|
友情链接
|
留言
|
旧版入口
Copyright © 2005-2008
中国设计秀_网页设计秀_艺术设计秀_网页设计教程_网站建设作品_平面设计欣赏_包装设计欣赏_品牌网站建设
All Right Reserved.
做最专业的设计服务网站,秀出自我,秀出精彩!
中国设计秀,秀---无处不在!!
交流群:9107036 3848215 8850631
粤ICP备05067046号