您好,欢迎来到模板无忧!
登录
注册
鏀惰棌
鎼滅储
鍦板浘
甯姪
模板无忧
网页特效
每日更新
|
TOP排行榜
|
Tag标签
|
充值
无忧首页
网页模板
程序模板
建站教程
视频教程
网页特效
图标素材
字体下载
站长工具
站长问答
关闭顶部
展开顶部
网页特效
菜单导航
图片特效
文本链接
层和布局
页面背景
表单按钮
日期时间
计算转换
键盘鼠标
浏览器
游戏娱乐
综合其它
常用代码
jQuery特效
Prototype
Ajax/JavaScript
ExtJS
CSS特效
在线编辑器
Mootools
HTML
JS广告代码合集
站长工具
站长常用软件
网站综合查询
Alexa排名查询
Google PR查询
域名Whois查询
网站收录查询
友情链接查询
CSS2中文手册
CSS精简优化工具
AI灏忚仛 鑳藉啓浼氱敾
鍩熷悕
鎺ㄨ崘
展开边栏
关闭边栏
网页特效代码
模板无忧
>
网页特效
>
页面背景特效代码
>
收藏
分享
查看评论
页面背景
演示
改变背景的颜色_页面背景特效
查看演示效果
特效Tag:
背景
颜色
添加
缁囨ⅵDedeCMS瑙嗛鏁欑▼
涔扮┖闂� 绉熸湇鍔″櫒 閫夌綉纭曚簰鑱旓紒
鏃犲咖绔欓暱宸ュ叿,鐧惧害鏉冮噸涓€閿叏鏌�!
改变背景的颜色,您可以先修改部分代码再运行.
<STYLE>.drag { CURSOR: hand; POSITION: relative } </STYLE> <script> var sPosition; var showPerc=100; document.onmousedown=dragLayer document.onmouseup=new Function("dragMe=false") var Color= new Array(); Color[0] = "00"; Color[1] = "11"; Color[2] = "22"; Color[3] = "33"; Color[4] = "44"; Color[5] = "55"; Color[6] = "66"; Color[7] = "77"; Color[8] = "88"; Color[9] = "99"; Color[10] = "AA"; Color[11] = "BB"; Color[12] = "CC"; Color[13] = "DD"; Color[14] = "EE"; Color[15] = "FF"; var rVal,gVal,bVal, cCol function chgBg() { cCol = document.bgColor; rVal=cCol.substr(1,2); gVal=cCol.substr(3,2); bVal=cCol.substr(5,2); ind = Math.round(showPerc/16); if (ind < 0) ind = 0; if (ind > 15) ind=15; if (kObj.id =="knobImg") document.bgColor="#"+Color[ind]+gVal+bVal; if (kObj.id =="knobImg1") document.bgColor="#"+rVal+Color[ind]+bVal; if (kObj.id =="knobImg2") document.bgColor="#"+rVal+gVal+Color[ind]; } var dragMe=false, kObj, yPos,direction function moveLayer() { if (event.button==1 && dragMe) { oldY = kObj.style.pixelTop; kObj.style.pixelTop=temp2+event.clientY-yPos; if (kObj.style.pixelTop > oldY) direction="dn"; else direction="up"; if (kObj.style.pixelTop < 2 && direction=="up") {kObj.style.pixelTop=2; direction="dn";} if (kObj.style.pixelTop > 102 && direction=="dn") {kObj.style.pixelTop=102; direction="up";} sPosition=kObj.style.pixelTop; showPerc = (perCent[0].checked) ? sPosition-2 : (sPosition-2)/2*5; chgBg(); return false; } } function dragLayer() { if (!document.all) return; if (event.srcElement.className=="drag") {dragMe=true; kObj=event.srcElement; temp2=kObj.style.pixelTop; yPos=event.clientY; document.onmousemove=moveLayer; } } </SCRIPT> </div> <p></P> <DIV id=outerLyr style="BACKGROUND-COLOR: #000000; HEIGHT: 120px; LEFT: 233px; POSITION: absolute; TOP: 111px; WIDTH: 23px; Z-INDEX: 1"><IMG class=drag id=knobImg src="http://p1.mb5u.com/texiao/15/20100523004930103.jpg" style="HEIGHT: 17px; LEFT: 2px; TOP: 100px; WIDTH: 20px; Z-INDEX: 3"> <DIV id=innerLyr style="BACKGROUND-COLOR: #777777; HEIGHT: 117px; LEFT: 2px; POSITION: absolute; TOP: 2px; WIDTH: 20px; Z-INDEX: 2"> <DIV id=barLyr style="BACKGROUND-COLOR: #000000; HEIGHT: 110px; LEFT: 9px; POSITION: absolute; TOP: 5px; WIDTH: 2px; Z-INDEX: 1"></DIV></DIV></DIV> <DIV id=outerLyr1 style="BACKGROUND-COLOR: #000000; HEIGHT: 120px; LEFT: 268px; POSITION: absolute; TOP: 111px; WIDTH: 23px; Z-INDEX: 1"><IMG class=drag id=knobImg1 src="http://p1.mb5u.com/texiao/15/20100523004930103.jpg" style="HEIGHT: 17px; LEFT: 2px; TOP: 100px; WIDTH: 20px; Z-INDEX: 3"> <DIV id=innerLyr1 style="BACKGROUND-COLOR: #777777; HEIGHT: 117px; LEFT: 2px; POSITION: absolute; TOP: 2px; WIDTH: 20px; Z-INDEX: 2"> <DIV id=barLyr1 style="BACKGROUND-COLOR: #000000; HEIGHT: 110px; LEFT: 9px; POSITION: absolute; TOP: 5px; WIDTH: 2px; Z-INDEX: 1"></DIV></DIV></DIV> <DIV id=outerLyr2 style="BACKGROUND-COLOR: #000000; HEIGHT: 120px; LEFT: 300px; POSITION: absolute; TOP: 111px; WIDTH: 23px; Z-INDEX: 1"><IMG class=drag id=knobImg2 src="http://p1.mb5u.com/texiao/15/20100523004930103.jpg" style="HEIGHT: 17px; LEFT: 2px; TOP: 100px; WIDTH: 20px; Z-INDEX: 3"> <DIV id=innerLyr2 style="BACKGROUND-COLOR: #777777; HEIGHT: 117px; LEFT: 2px; POSITION: absolute; TOP: 2px; WIDTH: 20px; Z-INDEX: 2"> <DIV id=barLyr2 style="BACKGROUND-COLOR: #000000; HEIGHT: 110px; LEFT: 9px; POSITION: absolute; TOP: 5px; WIDTH: 2px; Z-INDEX: 1"></DIV></DIV></DIV> <P><INPUT name=perCent type=radio value=false> Prozent <INPUT CHECKED name=perCent type=radio value=true> 255 </P>
所属频道:
页面背景特效
/
更新时间:2012-12-17
[收藏]
[报错]
[返回列表]
相关
页面背景特效
:
推拉门式样的菜单(鼠标移上去即可,无需点击)
页面载入的动画效果的源代码一例
自动弹出的导航窗
页面载入时的进度条效果的实现
WEB对话框 可做网站登录协议用
左右幕布
在网页中添加上上下滚动的文字
弹出提示的效果
字符变色
一个很漂亮的转入别的页面时等待页
页面右下角弹类似QQ或MSN的消息提示
主题变色
页面背景特效Rss订阅
特效代码搜索
页面背景特效推荐
主题变色
用选项卡控制DIV层切换改变背景颜色
背景调色板:状态栏还能显示颜色值
可移动的显示层
卡片效果的导航页面
JS控制网页背景图片斜向滚动
新浪的网页背景特效,可以关闭不显示
一个滚动的公告栏
页面右下角弹类似QQ或MSN的消息提示
渐变
猜你也喜欢看这些
跑马灯式样的站点栏目指南
点击按钮后加载进度条
JavaScript子窗口、母窗口互相传递参数
删除字符串中间的空格
查找表格的内容
点击超链接后再确定一次才能到达链接地址
隐藏层的打开关闭
复选框单选、多选的实现
JS表单提交后按钮变灰代码
用CSS隐藏点击按钮或链接时出现的虚线方框
相关链接:
复制本页链接
|
搜索改变背景的颜色
特效说明:
页面背景模板
-
改变背景的颜色
。
鏀惰棌&鍒嗕韩
QQ绌洪棿
鏂版氮寰崥
鑵捐寰崥
浜轰汉缃�
寮€蹇冪綉
鐧惧害鎼滆棌
澶嶅埗缃戝潃
鏇村...