爱易网
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 浏览次数:20222 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,手动调节背景色</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 4px; margin-right: 0px} A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline } a:active { font: 9pt "宋体"; cursor: hand; color: #FF0033 } --></style> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body> <center><font color=red face="隶书" size=6>手动调节背景色</font></center> <center> <table border=1 bordercolor=#000000 borderlight=green style="border-collapse: collapse" cellpadding="0" cellspacing="0"> <tr><td align=center><font size=5 color=red face="Arial, Helvetica, sans-serif"><strong>下面为脚本显示区</strong></font></td></tr><tr><td align=center><script language="JavaScript"> <!-- Hiding var red=0; var green=0; var blue=0; var value=0; var convert = new Array() var hexbase= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"); for (x=0; x<16; x++){ for (y=0; y<16; y++){ convert[value]= hexbase[x] + hexbase[y]; value++; } } function clear(){ document.color.bl.value= blue; document.color.rd.value= red; document.color.gr.value= green; } function display(){ redx = convert[red] greenx = convert[green] bluex = convert[blue] var rgb = "#"+redx+greenx+bluex; document.color.rgbdspl.value= rgb; document.bgColor =rgb; } function upred(x){ if ((red+x)<=255) red+=x document.color.rd.value= red; display() } function downred(x){ if ((red-x)>=0) red-=x document.color.rd.value= red; display() } function upgreen(x){ if ((green+x)<=255) green+=x document.color.gr.value= green; display() } function downgreen(x){ if ((green-x)>=0) green-=x document.color.gr.value= green; display() } function upblue(x){ if ((blue+x)<=255) blue+=x document.color.bl.value= blue; display() } function downblue(x){ if ((blue-x)>=0) blue-=x document.color.bl.value= blue; display() } // done hiding --> </script> <form name="color"> <table> <tr align="Center"> <td> <input name="red" type="button" value=" +50 " onClick="upred(50)"> </td> <td> <input name="red2" type="button" value=" + 10 " onClick="upred(10)"> </td> <td> <input name="red2" type="button" value=" + 1" onClick="upred(1)"> </td> <td width="50"><font color="#FF0000" size=+3><b><font color="#FA0000">红</font></b></font></td> <td> <input name="red-" type="button" value=" - 1" onClick="downred(1)"> </td> <td> <input name="red-" type="button" value=" - 10 " onClick="downred(10)"> </td> <td> <input name="red-" type="button" value=" -50 " onClick="downred(50)"> </td> <td> <input type="text" name="rd" size=3> </td> </tr>
上一篇:狡猾的按钮特效
下一篇:很不错的背景调色板
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
想玩P2P?几个您必须知道的潜规则
薛蛮子取保后首次发微博表示:辜负你们了
中移动一季度净利大降:手机补贴增长过快
苹果收购Beats交易或将延期尚需解决5大问题
“扫黄打非”下9158否认遭整顿
迅雷向美SEC提交IPO招股书:拟最多筹资1亿美元
携程整合去哪儿陷入僵局 欲联手老对手艺龙
微软张亚勤趋势判断:未来三十年属于物理化互联网
喜大普奔:2016年国内乘客有望在飞机上使用手机
推荐阅读
更多>
中移动将推出多项4G资费新政
摩托罗拉中国区将再裁员 助力公司变身
传360周鸿祎曾试图阻止百度收购91无线
十亿美元的告别礼:三星为何要大举重组?
微软不会被颠覆
中国邮政与阿里合作:邮政网点可做网购自提点
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
亚马逊Fire Phone:请别拿我跟苹果三星比
同样的背景,罗永浩和雷军到底有什么不同?
诺基亚培育低端机市场 迂回战术要挟中华酷联
中移动财报外的"五座大山":运营商沦为走秀陪衬
想玩P2P?几个您必须知道的潜规则
国内云服务商存在尴尬:“远程机房+移动大硬盘”模式
总部大楼已换微软Logo:回忆诺基亚的兴衰史
HTC的三大迷惘:高管釜底抽薪 产品营销战略混乱
Skype周年:与微软联姻到底有没有未来?
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
国网公司将加快组建 业界人士称困难重重
美图手机2问世 三大问题令其市场销量堪忧
传运营商高层将变化 专家称需体制革新