爱易网
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 浏览次数:20148 次
以下是程序代码
<!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" /> <meta name="keywords" content="站长,网页特效,js特效,js脚本,脚本,广告代码,zzjs,zzjs.net,sky,www.zzjs.net,站长特效 网" /> <meta name="description" content="www.zzjs.net,站长特效网,站长必备js特效及广告代码。大量高质量js特效,提供高质量广告代码下载,尽在站长特效网" /> <title>网页特效 几种网页滚动条 站长特效网欢迎您。</title> <style type="text/css"> * { margin:0; padding:0; } body { margin:20px 0 400px 20px; font:12px Arial; } h1 { font-size:14px; } ol,ul { margin:20px; line-height:160%; } ul li { color:#f00; } .a1 { width:300px; height:190px; border:1px solid #f00; overflow:auto; } .a2 { width:600px; height:350px; margin:100px 0 100px 80px; border:1px solid #369; background:#eee url(/image/1.jpg) no-repeat 50%; overflow:auto; } .dumascroll {} /*只需对需要渲染滚动条的div设置该class即可*/ .dumascroll_area { height:100%; overflow:hidden; } .dumascroll_bar,.dumascroll_handle,.dumascroll_handle_a,.dumascroll_arrow_up,.dumascroll_arrow_up_a,.dumascroll_arrow_down,.dumascroll_arrow_down_a { background-image:url(/img/20100727_zzjs.gif); } .dumascroll_bar { position:absolute; top:0; right:0; z-index:9; width:14px; height:100%; cursor:default; -moz-user-select:none; -khtml-user-select:none; user-select:none; background-repeat:repeat-y; background-position:-42px 0; float:left; } .dumascroll_arrow_up,.dumascroll_arrow_up_a,.dumascroll_handle,.dumascroll_handle_a,.dumascroll_arrow_down,.dumascroll_arrow_down_a { position:absolute; left:0; } .dumascroll_arrow_up,.dumascroll_arrow_up_a,.dumascroll_arrow_down,.dumascroll_arrow_down_a { width:100%; height:14px; color:#fff; text-align:center; } .dumascroll_arrow_up,.dumascroll_arrow_up_a { top:0; } .dumascroll_arrow_down,.dumascroll_arrow_down_a { bottom:0; } .dumascroll_handle,.dumascroll_handle_a { width:100%; background-repeat:repeat-y; } .dumascroll_arrow_up { background-position:0 0; } .dumascroll_arrow_up_a { background-position:-14px 0; } .dumascroll_handle { background-position:-28px 0; } .dumascroll_handle_a { background-position:-56px 0; } .dumascroll_arrow_down { background-position:-70px 0; } .dumascroll_arrow_down_a { background-position:-84px 0; } </style> <script> var duma = { $:function(o){ if(document.getElementById(o)) {return document.getElementById(o);} }, getStyle:function(o) { return o.currentStyle||document.defaultView.getComputedStyle(o,null); }, getOffset:function(o) { var t = o.offsetTop,h = o.offsetHeight; while(o = o.offsetParent) { t += o.offsetTop; } return { top:t, height:h }; }, bind:function(o,eType,fn) { if(o.addEventListener) { o.addEventListener(eType,fn,false); } else if(o.attachEvent) { o.attachEvent("on" + eType,fn); } else { o["on" + eType] = fn; } }, stopEvent:function(e) { e = e || window.event; e.stopPropagation && (e.preventDefault(),e.stopPropagation()) || (e.cancelBubble = true,e.returnValue = false); }, setCookie:function(c_name,value,expiredays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + expiredays); document.cookie = c_name + "=" + escape(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString()); }, getCookie:function(c_name) { if(document.cookie.length > 0) { c_start = document.cookie.indexOf(c_name + "="); if(c_start != -1) { c_start = c_start + c_name.length + 1; c_end = document.cookie.indexOf(";",c_start); if(c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c
上一篇:狡猾的按钮特效
下一篇:div+css设计漂亮分页栏
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
组建铁塔公司倒逼运营商改革 或加速4G网建设
百度透露无人驾驶战略 研发三维交通地图
易信工具性优势突出 丁磊三板斧或先砍在飞信上
App Store严禁推送广告 运用面临大清洗
高通反垄断案下月有望落定
微软确认 Surface 计划更多尺寸和LTE 版本
小米2S试水高端化 纯“性价比”玩法已成过去式
雅安地震救灾前线的科技之手 微弱而暖和
微软张亚勤趋势判断:未来三十年属于物理化互联网
推荐阅读
更多>
支付宝27日晚间曝严重破绽:买卖记载可被搜索
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
阿里巴巴上市后雅虎将面临更大的业绩压力
中兴通讯不打机海战术 将向中高端手机转型
这一次,微软将带给我们什么惊喜?
全球五大电信设备商业绩:华为净利居首
估值增长9.8% 阿里IPO前市值达2450亿美元
170号码扎堆上市:手机话费私人定制时代到来?
承载京东C2C野心的拍拍网:梦想丰满,现实骨感
微软提示XP只剩365天寿命:用户被绑架?
余额宝收益率跌破5% 银行系宝宝收益率赶超
安全服务机构:公布2014年度最糟糕的25个密码
金山毒霸安全中心: XP退役后首个高危漏洞来了
阿里国际化再落子:2.49亿美元投资新加坡邮政
小米年度发布会遭围剿!多款新品难阻品牌危机
罗永浩工匠形象坍塌,锤子产能再跳水逃离用户超两成
支付宝钱包支持医保移动缴费 广州成首个试点
传360周鸿祎曾试图阻止百度收购91无线
国美电商开打价钱战 牟贵先言行矛盾受质疑
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机