爱易网
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 浏览次数:20129 次
以下是程序代码
<!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设计漂亮分页栏
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
在线音乐出现“小米公司”不是没有可能
携程收买酷讯成定局:转型互联网+投资
谷歌董事长成花花公子:情史足以媲美涂鸦
墨迹也要做硬件,工具类应用如何“变异”的
公信力消失:马航事件社交媒体传播之痛
传360周鸿祎曾试图阻止百度收购91无线
Kindle入华遭遇国内厂商“围剿 ” 电信也参战
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
从雷军的“互联网七字诀”告诉你一个非妖魔化的小米
推荐阅读
更多>
三星已经将Galaxy S5视为失败之作?
HDS发布《2013中国CIO洞察白皮书》
想玩P2P?几个您必须知道的潜规则
从3G牌照发放看中国4G规划效果
华为美国推出电商网站 发售Mate 2LTE版
雅安地震救灾前线的科技之手 微弱而暖和
iPhone 6将于10月17日内地上市:售5288元起
牟贵先挂帅 国美在线“价钱战”昔日开打
谷歌安卓全球副总裁为何跳槽中国企业小米?
聚美优品获基石投资1.5亿美金,IPO吃下定心丸
中国雅虎邮箱今日关停 由盛及衰的背后
支付宝钱包支持医保移动缴费 广州成首个试点
神州电脑中止IPO面前:再被质疑财务造假
估值增长9.8% 阿里IPO前市值达2450亿美元
八位知名设计师评iOS7:新鲜但复杂
赴美开店,阿里11Main准备好了吗?
Line风靡亚洲,在北美却进展缓慢
魅族黄章惹怒芙蓉姐姐 将跨界推女神手机
完美入股盛大:一桩各怀心事的交易
苹果6月20日发布iPhone5S 触摸屏概念股生动