爱易网
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 浏览次数:20155 次
以下是程序代码
<!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
上一篇:狡猾的按钮特效
下一篇:非常简单的焦点图切换特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
戴尔新CEO名单曝光:惠普甲骨文高管在列
传搜狗估值12亿美元 与360谈判进入白热化
一大波智能路由器正在袭来:小米、360、极路由大PK
神州电脑中止IPO面前:再被质疑财务造假
史玉柱谈创业:5大建议 失败的教训最真实
“组合拳”怎么打 拆解小米新玩法
同样的背景,罗永浩和雷军到底有什么不同?
电话用户9月实名制:运营商监管受质疑
“论文查重”网店一月收入竟过百万
推荐阅读
更多>
余额宝收益率跌破5% 银行系宝宝收益率赶超
虚拟运营商们更像三大运营商的“二道贩子”
锐迪科将以9.25美元/ADS价钱出售835万份ADS
FB上广告费用昂贵而且效果不及Twitter
网络文学竞争白热化 百度多酷文学网上线
联想架构调整后:Think品牌或推智能手机
互联网金融一周年:余额宝最接地气,比特币最作死
广东移动董事长徐龙受调查 圈内对其褒贬不一
腾讯微信昨晚再现大规模故障 多地受到影响
微软觊觎移动互联市场:手机未出渠道先行
原万网CTO周雷加盟亿玛 出任CTO一职
微博启动自媒体计划 粉丝+收入双激励是亮点
固话上网卡或将实名制 运营商泄露用户信息将被罚
微软与摩托罗拉授权协议涵盖Android和Chrome设备
小米年度发布会遭围剿!多款新品难阻品牌危机
扎克伯格华裔妻子首度亮相电视节目畅谈情史
同程旅游融资后变土豪 如何烧钱占领市场?
挂号网高管团体离任 或因投资人失掉决计
创维冲击500亿梦想:转型硬件和内容供应商
电信业营改增今起实施 运营商短期利润骤降