爱易网
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 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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>
上一篇:狡猾的按钮特效
下一篇:很不错的背景调色板
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
联想国庆完成收购IBM x86服务器
中国大陆人口13.7亿 光棍越来越多
迅雷再次在美提交IPO申请
奇虎360证明了“惟平台化才能生存”是谬论,中国互联网不能少了周鸿祎
为啥苹果定要出廉价iPhone?都是安卓逼的
国内首个大数据系列指数今日发布
“世界杯+618”集体磨刀的本质是绑架全民
用友软件股价逆势下跌 再融资方案现曙光
中国移动承诺再降4G资费 网络漫游至50个国家
推荐阅读
更多>
马斯克的特斯拉能否保持好势头
永不磨灭的九大尖端编程语言
孙正义入股阿里往事还原:阿里巴巴并非软银首选
中移动“重启”自有品牌手机成败难料
云储存有多远:跨过数据安全问题即可到达
Google要求硬件厂商捆绑预装应用的协议曝光
充斥着假消息负能量的“秘密”缺乏普适性
传苹果与雅虎协作信息提供 进一步摆脱谷歌
iPhone5S组件曝光 印证杀手级功能存在
Docker Desktop 4.11 发布:支持虚拟桌面、Mac 权限更改和新扩展
虚拟运营商流量不清零吸引用户 盈利待明
频繁自杀 折射媒体变革中的媒体人迷茫与压力并存
湘鄂情剥离餐饮业务进军大数据的底气在哪里?
安全服务机构:公布2014年度最糟糕的25个密码
刘强东:京东上市融资用于开拓三至六线城市
微软为避免代理权争夺 与大股东达成和解协议
估值增长9.8% 阿里IPO前市值达2450亿美元
只有切到刚需痛点,漫画APP才能走下去
网易云音乐能否为丁磊拿到移动互联网门票?
中国大陆人口13.7亿 光棍越来越多