模板酷站
电脑版
提示:
原网页
已由神马搜索转码, 内容由
www.mb5u.com
提供.
无忧首页
网页模板
程序模板
建站教程
视频教程
更多导航↓
网页特效
图标素材
字体下载
站长工具
站长问答
网页特效代码
模板无忧
>
网页特效
>
页面背景特效代码
>
背景调色板:状态栏还能显示颜色值_页面背景特效
查看演示效果
特效Tag:
调色板
颜色
添加
织梦DedeCMS视频教程
买空间 租服务器 选网硕互联!
无忧站长工具,百度权重一键全查!
背景调色板:状态栏还能显示颜色值,您可以先修改部分代码再运行.
<!--把如下代码加入<body>区域中--> <script language="JavaScript"> <!-- // 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="http://p1.mb5u.com/texiao/15/20100523004934108.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>
所属频道:
页面背景特效
/
更新时间:2012-11-13
最新评论:
暂时还没人评论! 快来抢沙发啊!
请在这里输入您要发表的评论信息! 理智评论,文明上网,共建和谐网络. 严禁广告、谩骂等不良信息.
匿名评论
相关
页面背景特效
:
推拉门式样的菜单(鼠标移上去即可,无需点击)
页面载入的动画效果的源代码一例
自动弹出的导航窗
页面载入时的进度条效果的实现
WEB对话框 可做网站登录协议用
左右幕布
在网页中添加上上下滚动的文字
弹出提示的效果
字符变色
一个很漂亮的转入别的页面时等待页
页面右下角弹类似QQ或MSN的消息提示
主题变色
特效代码搜索
页面背景特效推荐
超不错的银灰色竖排折叠菜单
鼠标使链接变色:鼠标放到链接上,每放一次都会出现不同的背景色
JavaScript点击图片无刷新切换背景
流动性非常好的网页载入页面
背景快速闪烁
页面载入时的进度条效果的实现
舞台照射
打开一个窗口在一定的时间内自动关闭
RGB背景调色:输入RGB颜色数值,就能转化成十六位颜色代码且背景改变
用选项卡控制DIV层切换改变背景颜色
猜你也喜欢看这些
JavaScript密码强度检测代码
按钮打开全屏窗口
带Checkbox的列表框
禁止自动完成
按回车提交的代码
JavaScript生成复杂的SQL查询表单
前进后退按钮
在规定时间内倒计时激活按钮
鼠标移过自动打开连接
百度空间的下拉框显示颜色及图片的代码特效
新热推荐
1
/
3
dedecms模板_简洁大气的网络设计工作室模板
织梦蓝色简洁新闻资讯门户模板下载(原创)
织梦橙黑清新炫酷工作室模板(视频演示)
织梦文章/新闻资讯/博客模板(仿chinaz最新版,蓝色简洁大气)
Wordpress淘宝客程序(淘金渡-强大自动采集功能 可做返利类淘宝客网站)
精仿大前端D8主题织梦模板下载
织梦网络工作室模板,2013年最新设计,大气美观
织梦科技IT资讯类博客模板(仿虎嗅网织梦模板)
dedecms织梦漫画网站模板(带采集+漫画连载)
织梦dedecms文章模板博客模板-可自定义颜色
PhotoShop鼠绘超酷的游戏场景
Photoshop实例教程:照片漫画插画效果的制作
相关链接:
复制本页链接
|
搜索背景调色板:状态栏还能显示颜色值
特效说明:
页面背景模板
-
背景调色板:状态栏还能显示颜色值
。