爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
百度有啊通栏图文混排展示的广告代码特效
百度有啊通栏图文混排展示的广告代码特效
日期:2014-05-18 浏览次数:20170 次
以下是程序代码
<!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=utf-8" /> <title>百度有啊通栏展示效果</title> <style type="text/css"> body,div,dl,dt,dd,ul,li,h3{margin:0;padding:0;} body{color:#333;font:12px/1.5 arial;} li{list-style:none;} a:link,a:visited,a:active{color:#333;text-decoration:none;} a:hover{color:#F30;} img{border:none;} #box{width:740px;margin:10px auto;} #container{position:relative;height:232px;background:#FCFCFC;} #container .item{position:absolute;top:0;left:0;width:492px;height:230px;overflow:hidden;background:#FAFAFA;border:1px solid #ddd;z-index:1;opacity:1;} #container .item .pic{float:left;width:210px;height:200px;display:inline;margin:15px;} #container .item .pic img{width:210px;height:200px;vertical-align:top;} #container .item .txt{float:left;width:250px;margin-top:12px;} #container .item .txt dt{font-size:14px;font-weight:700;} #container .item .txt .info{color:#999;} #container .item .txt dd{height:24px;line-height:24px;} #container .item .txt dd span{float:left;} #container .item .txt .star{position:relative;float:left;height:12px;width:69px;margin:6px 0 0 5px;} #container .item .txt .star .star_red{position:absolute;top:0;left:0;height:12px;width:69px;z-index:2;background:url(http://js.fgm.cc/learn/lesson10/img/youa/star.png) repeat-x scroll left top transparent;} #container .item .txt .star .star_grey{background:url(http://js.fgm.cc/learn/lesson10/img/youa/star.png) repeat-x scroll left -15px transparent;height:12px;width:69px;} #container .item .txt .pink,#container .item .txt .blue,#container .item .txt .green{color:#FFF;font-weight:700;margin-right:2px;background:#F66B5B;padding:0 5px;} #container .item .txt .blue{background:#96BAE7;} #container .item .txt .green{background:#9CDBC3;} #container .item .txt .comment{width:232px;height:99px;margin-top:10px;background:#FFF;border:1px solid #EAEAEA;} #container .item .txt .comment h3{font-size:12px;font-weight:400;height:24px;line-height:24px;border-bottom:1px solid #E9E9E9;padding:0 10px;} #container .item .txt .comment .comment_list{width:220px;height:60px;overflow:hidden;margin:8px 0 0 10px;} #container .item .txt .comment .comment_list ul{width:220px;} #container .item .txt .comment .comment_list ul li{height:20px;line-height:20px;white-space:nowrap;} #container .item .txt .comment .comment_list ul li b{color:#999;font-weight:400;} #control{height:37px;text-align:center;background:url(http://js.fgm.cc/learn/lesson10/img/youa/bg.png) no-repeat;} #control span{width:8px;height:8px;font-size:0;line-height:0;cursor:pointer;display:inline-block;background-color:#FEFEFE;border:1px solid #BCC1C5;margin:13px 2px 2px;} #control span.active{background-color:#848484;border:1px solid #6E6E6E;} </style> <script type="text/javascript"> function Youa (obj) { this.obj = $(obj); this.container = $("container"); this.control = $("control"); this.items = $$$("item", this.container); this.iCenter = 2; this.aSort = []; this.timer = null; this.oData = [ {left:0, zIndex:2, opacity:30}, {left:40, zIndex:3, opacity:60}, {left:124, zIndex:4, opacity:100}, {left:208, zIndex:3, opacity:60}, {left:246, zIndex:2, opacity:30}, {left:40, zIndex:0, opacity:0} ]; this.__create__() }; Youa.prototype.__create__ = function () { var that = this; var oSpan = null; var i = 0; for (i = 0; i < that.items.length; i++) { that.items[i].number = i; that.aSort[i] = that.items[i]; oSpan = document.createEle
上一篇:狡猾的按钮特效
下一篇:非常简单的焦点图切换特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
黑莓高管:黑莓能作为家“小众公司”活下来
分析称iPhone 6明年初发布 屏幕变为4.8吋
京东封杀财付通:终极目标是电商生态圈
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
诺基亚称不会更名“微软移动” 5月还将发布新品
谷歌董事长成花花公子:情史足以媲美涂鸦
为啥苹果定要出廉价iPhone?都是安卓逼的
从旗下三大业务BG发展看华为的过去现在和未来
薛蛮子取保后首次发微博表示:辜负你们了
推荐阅读
更多>
乐视28日发布手机进展 LeUI系统Mobile版或曝光
568倍PE,“长跑者”亚马逊的高估值之谜
从WPS到office365,中国企业能否赶超美国?
黑莓高管:黑莓能作为家“小众公司”活下来
美国政府关门可能影响去哪儿等公司IPO
评论:马云的成功建立在什么基础上很值得怀疑
蓝宝石PK大猩猩玻璃:作为屏幕谁更有优势?
世界杯让耐克阿迪大打出手 谁能劈开用户大脑?
云储存有多远:跨过数据安全问题即可到达
虚拟运营商流量不清零吸引用户 盈利待明
电信资费新政:三巨头压力大 短期降价仍有争议
富士康欲用机器人产iPhone 6
OPPO Find7体验测 Find7综测
解读苹果收购Beats背后动机:库克在想什么?
神州电脑中止IPO面前:再被质疑财务造假
工信部或本月17日向联通电信颁发FDD牌照
快递企业征收“份子钱” 成全了谁 苦了谁?
FDD牌照短期不会发放 联通电信暗自提速建网
微软的云服务显示出他们将自我进化
据消息传百度将要控股携程 整合去哪儿