爱易网
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 浏览次数:20135 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<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>
上一篇:狡猾的按钮特效
下一篇:很不错的背景调色板
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
微软提示XP只剩365天寿命:用户被绑架?
中移动落马高管盘点:广东移动成反腐重地
聚美向左,唯品向右,怎能耐得住高跟和红唇的诱惑!
智能手机:中国手机市场最受关注十五款产品清点
宽带中国战略明确 运营商建设成本超6000亿
中国移动承诺再降4G资费 网络漫游至50个国家
雅安地震救灾前线的科技之手 微弱而暖和
传陌陌或12月赴美IPO 估值约30亿美元
微软的云服务显示出他们将自我进化
推荐阅读
更多>
首个释放出搅局房地产信号的互联网公司不是小米而是58同城
苹果收购Beats交易或将延期尚需解决5大问题
支付宝全面封杀比特币:充值码淘宝店或遭封禁
腾讯为何在与阿里百度的收购比赛中当看客?
高德百度地图免费背后:李彦宏暗斗马云周鸿祎
全球网络遭史上最大规模攻击:攻击数据每秒300G
阿里入股虎嗅:媒体的脊梁弯了?未必!
广东移动高层受调查 中移动或现更大反腐风暴
虚拟运营市场躁动:山西煤老板兴味浓重
凑足了升级ios8所需要的5.7G空间,没料到“苹果”却变成“板砖”,iOS8还能一起愉快玩耍吗?
同程旅游融资后变土豪 如何烧钱占领市场?
二维码支付大战的号角注定已经吹响,尚需标准发放
支付宝被曝严重破绽 隐私平安再受质疑
新浪微博推粉丝头条功能 意欲与大号分成
首家国有独资P2P平台上线 或预示政策日渐明朗
阿里物流搭上邮政:京东,我们在终点等你!
途牛旅游网今晚挂牌纳斯达克 融资1亿美元
逆转猜想:如果阿里成为雅虎大股东会怎样?
探析APP移动营销发扬实效的微妙
联通丹东公司一高管造假套出手机变卖被判刑7年