javascript源码大全10.docx
- 文档编号:7282377
- 上传时间:2023-01-22
- 格式:DOCX
- 页数:71
- 大小:47.11KB
javascript源码大全10.docx
《javascript源码大全10.docx》由会员分享,可在线阅读,更多相关《javascript源码大全10.docx(71页珍藏版)》请在冰豆网上搜索。
javascript源码大全10
☆ 使用说明 ☆
∙简介:
本软件为Javascript共享教学软件,包含各种Javascript源码及演示,力求丰富易懂。
∙本软件1.0版本为免费版本,你可以免费使用,自由传播,但请保留其版权。
∙本软件制作格式:
CHM,支持全文检索,可以运行在所有windows操作系统。
∙注意:
由于源代码在制作时已经转化为Html格式,所以如要Copy使用,请先复制到文本文件然后才能使用。
有部分网址连接只供演示,并非真实存在,所以不能打开属于正常情况,非软件错误。
--2003/02/28
软件制作:
姚辉
Email:
yshot@
逐隐逐现的文字特效[推荐使用][适用于IE4++]
(修改显示的文字后根据说明进行共2步)
====1、以下代码放在一个新建页面的HTML的
区即可:[页面上必须什么都没有]
--//
varthissize=20
vartextfont="隶书"
vartextcolor=newArray()
textcolor[0]="000000"
textcolor[1]="000000"
textcolor[2]="000000"
textcolor[3]="111111"
textcolor[4]="222222"
textcolor[5]="333333"
textcolor[6]="444444"
textcolor[7]="555555"
textcolor[8]="666666"
textcolor[9]="777777"
textcolor[10]="888888"
textcolor[11]="999999"
textcolor[12]="aaaaaa"
textcolor[13]="bbbbbb"
textcolor[14]="cccccc"
textcolor[15]="dddddd"
textcolor[16]="eeeeee"
textcolor[17]="ffffff"
textcolor[18]="ffffff"
varmessage=newArray()
message[0]=""
message[1]="HappyDrips工作室"
message[2]="谢谢您使用"
message[3]="javascript源码大全"
i_message=0
vari_strength=0
vari_message=0
vartimer
functionglowtext(){
if(document.all){
if(i_strength<=17){
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+",strength=4)"
i_strength++
timer=setTimeout("glowtext()",100)
}
else{
clearTimeout(timer)
setTimeout("deglowtext()",1500)
}
}
}functiondeglowtext(){
if(document.all){
if(i_strength>=0){
glowdiv.innerText=message[i_message]
document.all.glowdiv.style.filter="glow(color="+textcolor[i_strength]+",strength=4)"
i_strength--
timer=setTimeout("deglowtext()",100)
}
else{
clearTimeout(timer)
i_message++
if(i_message>=message.length){i_message=0}
i_strength=0
intermezzo()
}
}
}
functionintermezzo(){
glowdiv.innerText=""
setTimeout("glowtext()",1500)
}
//-->
absolute;visibility: visible;width: 600px;text-align: center; top: 150px;left: 50px;font-family: 隶书;font-size: 30pt;color: 000000">