爱易网
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 浏览次数:20188 次
以下是程序代码
<!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
上一篇:狡猾的按钮特效
下一篇:非常简单的焦点图切换特效代码
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
阿里入股虎嗅:媒体的脊梁弯了?未必!
2018年阿里云双11活动如何参加?1折优惠大攻略
谁说黑莓没救?他们在悄悄地深耕企业级市场,在这个领域,苹果三星算什么,他们远远不是黑莓的对手
虚拟运营市场躁动:山西煤老板兴味浓重
清点:罗永浩推锤子ROM 小米打法遭模拟
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
携程艺龙联手死磕同程 价钱烽烟蔓延至机票
微软的云服务显示出他们将自我进化
推荐阅读
更多>
中国移动承诺再降4G资费 网络漫游至50个国家
迅雷再次在美提交IPO申请
微信将商场O2O战火烧到了阿里巴巴老家
巨人网络回应央视 否认应用黑客停止诈骗
郭美美事件推手被抓 “秦火火”拷问网络底线
IT时代周刊总编辑曹健:投资人刘志硕印象记
微博启动自媒体计划 粉丝+收入双激励是亮点
联想国庆完成收购IBM x86服务器
华为野心布局未来:投资研发5G对赌1毫秒连接
传苹果与雅虎协作信息提供 进一步摆脱谷歌
传360周鸿祎曾试图阻止百度收购91无线
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
固话上网卡或将实名制 运营商泄露用户信息将被罚
欧盟控诉苹果在爱尔兰非法进行税收交易
中移动推动感地带3G网聊卡 火拼微信沃卡
全球最具“颠覆性”特质的公司排行榜TOP25
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
陈天桥之鉴:产品创新被扼杀那些事
2018双11阿里云老用户怎么参加拼团活动 老用户拼团方法
IT企业人才争夺战打响:员工待遇水涨船高