爱易网
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 浏览次数:20160 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
<html> <head> <title>爱易网网页特效演示,很不错的背景调色板</title> <style type="text/css"> <!-- body { font-family: "宋体"; font-size: 9pt; margin-top: 0px; margin-left: 0px; 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"> <!-- // Copyright (c) 1996-1997 Tomer Shiran. All rights reserved. // Permission given to use the script provided that this notice remains as is. // Additional scripts can be found at http://www.geocities.com/~yehuda/ // create 6-element array var hex = new Array(6) // assign non-dithered descriptors hex[0] = "FF" hex[1] = "CC" hex[2] = "99" hex[3] = "66" hex[4] = "33" hex[5] = "00" // accept triplet string and display as background color function display(triplet) { // set color as background color document.bgColor = '#' + triplet // display the color hexadecimal triplet alert('现在的背景色是 #'+triplet) } // draw a single table cell based on all descriptors function drawCell(red, green, blue) { // open cell with specified hexadecimal triplet background color document.write('<TD BGCOLOR="#' + red + green + blue + '">') // open a hypertext link with javascript: scheme to call display function document.write('<A HREF="javascript:display(\'' + (red + green + blue) + '\')">') // print transparent image (use any height and width) document.write('<img SRC="place.gif" BORDER=0 HEIGHT=12 WIDTH=12 onload="return imgzoom(this,600);" onclick="javascript:window.open(this.src);" style="cursor:pointer;"/>') // close link tag document.write('</A>') // close table cell document.write('</TD>') } // draw table row based on red and blue descriptors function drawRow(red, blue) { // open table row document.write('<TR>') // loop through all non-dithered color descripters as green hex for (var i = 0; i < 6; ++i) { drawCell(red, hex[i], blue) } // close current table row document.write('</TR>') } // draw table for one of six color cube panels function drawTable(blue) { // open table (one of six cube panels) document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0>') // loop through all non-dithered color descripters as red hex for (var i = 0; i < 6; ++i) { drawRow(hex[i], blue) } // close current table document.write('</TABLE>') } // draw all cube panels inside table cells function drawCube() { // open table document.write('<TABLE CELLPADDING=5 CELLSPACING=0 BORDER=1><TR>') // loop through all non-dithered color descripters as blue hex for (var i = 0; i < 6; ++i) { // open table cell with white background color document.write('<TD BGCOLOR="#FFFFFF">') // call function to create cube panel with hex[i] blue hex drawTable(hex[i]) // close current table cell document.write('</TD>') } // close table row and table document.write('</TR></TABLE>') } // call function to begin execution drawCube()
上一篇:狡猾的按钮特效
下一篇:背景快速闪烁
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
易信工具性优势突出 丁磊三板斧或先砍在飞信上
微软的云服务显示出他们将自我进化
银河证券王锦炎:金融业如何使用大数据
英特尔承认,联想最新K系列智能手机放弃英特尔处理器
网络旅行游记被曝插入"软广告" 个别人士月入数万
传诺基亚5月14日发布会推出Lumia 950
国美痛批网购七宗罪 用短暂盈利输了未来
固话上网卡或将实名制 运营商泄露用户信息将被罚
小米发明的“低价抢购”模式还能管用多久?
推荐阅读
更多>
快播灭了,还有西瓜:视频网站的灰色江湖还在
传苹果已告知鸿海:两款新iPhone下月发货
流浪汉高考状元终于找到工作:月薪3000做程序员很满意
同程旅游融资后变土豪 如何烧钱占领市场?
网友爆料称微软雇水军宣传主机Xbox One
马云:银行若放开存款利率 余额宝死了也光荣
中兴引进黑莓三个核心团队
美剧讲硅谷创业者:远不及现实荒诞?
看病也能用支付宝了 马云的又一盘大棋
眼球识别技术EyeVerify融资600万美元 360参投
郭美美事件推手被抓 “秦火火”拷问网络底线
马云寄厚望于物流 “菜鸟”行情暂难持续
英特尔IDF峰会启示:释放移动互联的信号
唯品会股价飙升 引天猫当当京东进军闪购
酷派首抓4G时机大丰收,未来份额必降无疑
【晚报】女子泰国游晒10照片 流量费2000
任正非:喜马拉雅山的水为什么不能流入亚马逊河?
盘点改变社会的15种科技:谷歌眼镜将使我们成为半机械人
固话上网卡或将实名制 运营商泄露用户信息将被罚
智能手机:中国手机市场最受关注十五款产品清点