文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院网络编程Script主页javascript特效19则
精品推荐
特别推荐
·主页javascript特效19则
·各种网页媒体播放器代码及详解
·用户体验:JS实现仿新浪信息提示效果
·网页特效:图片随机显示实例详解
·JavaScript入门学习书籍的阶段选择
·Javascript代码轻松隐藏网页源文件
·网页制作:JavaScript仿Windows关机效果
·网页制作Javascript经典小技巧总结
·JavaScript的9个陷阱及评点
·简单介绍用JSP来实现文件下载功能的几种方式
热点TOP10
·JS经典源码:通用javascript脚本函数库
·Velocity 的应用示例
·常用EMAIL格式检验(Javascript)
·一个很好的日历控件(采用javascript编写)
·动态的下拉菜单
·Javascript代码轻松隐藏网页源文件
·Javascript强制设为首页的网页代码
·左右图片循环滚动停顿一下后继续
·VS2008中JavaScript编辑调试器的秘密
·用confirm确认提交动作,提交确认提示

主页javascript特效19则

日期:2008年5月28日 作者:清风网络学院 查看:[大字体 中字体 小字体]



// Michael P. Scholtis (mpscho@planetx.bloomu.edu) // All rights reserved. January 15, 1996 // You may use this javascript example as you see fit, as long as the // information within this comment above is included in your script. 

function MakeArray(n){   this.length=n;   for(var i=1; i<=n; i++) this=i-1;   return this } 

hex=new MakeArray(16); hex[11]="A"; hex[12]="B"; hex[13]="C"; hex[14]="D"; hex[15]="E"; hex[16]="F"; 

function ToHex(x){   var high=x/16; // Changes a int to hex (in the range 0 to 255)   var s=high+""; //1   s=s.substring(0,2); //2 the combination of these are the same as the trunc function   high=parseInt(s,10); //3   var left=hex[high+1]; // left part of the hex-value   var low=x-high*16; // calculate the rest of the values   s=low+""; //1   s=s.substring(0,2); //2 the combination of these are the same as the trunc function   low=parseInt(s,10); //3   var right=hex[low+1]; // right part of the hex-value   var string=left+""+right; // add the high and low together   return string; } 

function rainbow(text){   text=text.substring(3,text.length-4); // gets rid of the HTML-comment-tags   color_d1=255; // any value in begin 0 to 255   mul=color_d1/text.length;   for(i=0;i<text.length;i++){    color_d1=255*Math.sin(i/(text.length/3)); // some other things you can try>> "=255-mul*i" to fade out, //"=mul*i" to fade in, or try "255*Math.sin(i/(text.length/3))"    color_h1=ToHex(color_d1);    color_d2=mul*i;    color_h2=ToHex(color_d2);    document.write("<FONT COLOR=#FF"+color_h1+color_h2+"> //"+text.substring(i,i+1)+</FONT>);   } } 

上一页 [1] [2] [3] [4] [5] [6] [7] 下一页 




上一篇:字体网站篇

下一篇:判断Cookies是否处于开启状态

相关文章:
·qq空间皮肤背景代码:QQ空间不用Q币更换主页皮肤方法
·极光特效 Photoshop详解制作过程
·Flash制作漂亮的三重卷动相册特效动画
·IE主页被修改的处理方法
·Photoshop教程:MM照片弄得非常脏特效
·JS经典源码:通用javascript脚本函数库
·QQ空间:主页加发光字和修饰边框的做法
·常用EMAIL格式检验(Javascript)
·PS教程:把MM照片制作为蓝色梦幻特效
·Photoshop特效为MM照片做漂亮的泡泡特效
相关软件:
·Photoshop 7.0 梦幻特效宝典附带光盘
·9158虚拟视频特效v4.0
·梦幻大师 Photoshop 特效制作
·PS文字特效教程(全7辑)6-7
·网页特效咖啡豆 V2.0 破解补丁
·叮咚网页特效管理精灵王 V3.72 注册机
· JavaScript 语言参考 中文版(CHM)
·Javascript特效大全(上)
·Photoshop特效制作电子教程
·photoshop数码照片处理与特效制作 iso 全程可视

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.vipcn.net
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.vipcn.net All Rights Reserved. 鄂ICP备05000083号Powered by:viphot