风格:
网站首页
新闻资讯
文章中心
歌曲音乐
动漫频道
影视中心
精美图片
资源下载
学子商城
站内互动
休闲娱乐
用户登录
用户注册
会员中心
怀念旧版
综合新闻
站内播客
休闲大院
管理营销
家居理财
教程文章
高保真音乐
MTV欣赏
MTV音乐
精品动画
贺卡传情
幽默搞笑
专辑系列
赌博游戏
冒险游戏
体育游戏
搞笑游戏
打斗游戏
互动游戏
高清高速
p2p影视
56视频
flv影视
人物写真
壁纸系列
站内软件
精品软件
供求信息
学子商城
酷站推荐
留言本站
娱乐论坛
企业黄页
本站问答
友情链接
学子招聘
赳客电影
娱乐博客
网页特效
在线书库
在线电视
在线电视2
周公解梦
万年历
在线算命
电子地图
成人影院
CCTV直播
缘分测试
您的位置:
首页
>>
特效频道
>> 很不错的背景调色板
特效阅读
很不错的背景调色板
添加时间:2008-02-07 | 浏览次数:27
<html> <head> <title>网页特效|Linkweb.cn/Js|---很不错的背景调色板</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> <br> <br> <center><font color=red face="隶书" size=6>背景调色板</font></center> <br> <br><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>') // 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() // --> </script> </td></tr></table></center> <br> <br> <center> <SCRIPT LANGUAGE="JavaScript"> <!-- hide function goHist(a) { history.go(a); } //--> </script></center> <br> <br> </body> </html>
特别说明:
如文本框里含有upjs/***.js内容的,请用查看按钮查看演示!
【
复制
】 【
打印
】
>>
相关资讯:
上篇特效:
手动调节背景色
下篇特效:
星星从背景中飞出
网友评论
以下网友评论只代表其个人观点,不代表我要下载资源网-无忧学子网的观点或立场
推荐特效
More...
03-08
对象属性显示器
03-07
彩色文字代码生成器
03-07
javascript代码自动生成
03-07
文字变色代码生成器
03-07
文字变色代码生成器
03-07
下拉菜单自动生成器,非常酷的东..
03-07
自动生成问题回答页面
03-07
图片生成器
03-07
一个QQ菜单编辑器
03-07
弹出式窗口代码产生器
热门特效
More...
06-03
酷!旋转导航菜单
06-05
鼠标之星也美丽~
01-26
始终在页面底部的菜单
06-05
一个简单的JS上滚信息栏
06-05
超炫的文字效果(3)
06-05
展开式的弹出窗口
06-05
超炫的文字效果(1)
06-03
滑出式网页导航菜单
06-05
自已定制网页的右键菜单
06-05
双击滚屏的网页特效
最新特效
More...
03-08
QQ分组样式导航菜单生成器
03-08
对象属性显示器
03-07
倒计时生成器JS脚本
03-07
网页背景产生器
03-07
图片变化代码生成器
03-07
滚动条颜色生成器IE5.5+
03-07
彩色文字代码生成器
03-07
主页代码生成器
03-07
恶作剧代码,可以自己添加内容的..
03-07
分割Frame生成器
用户登陆
加载中……