资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
js实现类似光照的炫彩文字渐变视觉冲击效果
<!-- no prod --> <!doctype html public "-//W3C//DTD HTML 3.2//EN"> <HTML><head><title>炫彩的文字效果</title> <META NAME="ROBOTS" CONTENT="NOINDEX"> <img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3CSCRIPT%20Language%3D%22VBScript%22%3E%20%3C!--%20%0D%0A'Declare%20the%20variable%20used%20to%20increment%20the%20x%20coordinate%20%0D%0APublic%20XPos%20%0D%0A'Initialize%20the%20variable%20%0D%0AXPos%20%3D%2020%20%0D%0A%0D%0AFunction%20LightMe()%20%0D%0A'Puts%20a%20spotlight%20on%20the%20title%20%0D%0Acall%20document.all.title.filters(0).addPoint(20%2C%2010%2C%20100%2C%20200%2C%20225%2C%20200%2C%20100)%20%0D%0AMoveLight%20%0D%0AEnd%20Function%20%0D%0A%0D%0AFunction%20MoveLight()%20%0D%0A'Moves%20the%20spotlight%20from%20left%20to%20right%20across%20the%20title%20area%20until%20it%20reaches%20the%20edge%20%0D%0A'of%20the%20window%20and%20then%20stops%20%0D%0A'This%20increments%20the%20x%20coordinate%20%0D%0AXPos%20%3D%20XPos%20%2B%205%20%0D%0A'If%20not%20at%20the%20right%20edge%20of%20the%20window%20then%20move%20the%20spotlight%20right%20%0D%0AIf%20XPos%20%3C%20480%20Then%20%0D%0Acall%20document.all.title.filters(0).movelight(0%2C%20xpos%2C%2010%2C%20100%2C%201)%20%0D%0AmyTimer%20%3D%20window.setTimeout(%22Movelight%22%2C%201)%20%0D%0A'If%20at%20the%20right%20edge%20of%20the%20window%20call%20the%20first%20paragraph%20of%20text%20%0D%0AElse%20%0D%0Awindow.clearTimeout(myTimer)%20%0D%0Acall%20document.all.title.filters(0).clear%20%0D%0AText1Trans%20%0D%0AEnd%20If%20%0D%0AEnd%20Function%20%0D%0A%0D%0ASub%20Text1Trans()%20%0D%0A'Makes%20the%20first%20paragraph%20of%20text%20visible%20%0D%0AText1.filters(0).Apply()%20%0D%0AText1.style.visibility%3D%22visible%22%20%0D%0AText1.filters(0).Play()%20%0D%0AmyTimer%20%3D%20window.setTimeout(%22Text2Trans%22%2C%203000)%20%0D%0AEnd%20Sub%20%0D%0A%0D%0ASub%20Text2Trans()%20%0D%0A'Makes%20the%20second%20paragraph%20of%20text%20visible%20%0D%0AText2.filters(0).Apply()%20%0D%0AText2.style.visibility%3D%22visible%22%20%0D%0AText2.filters(0).Play()%20%0D%0ALink2Trans%20%0D%0AEnd%20Sub%20%0D%0A%0D%0ASub%20Link2Trans()%20%0D%0A'Makes%20the%20Next%20button%20visible%20%0D%0ALink2.filters(0).apply()%20%0D%0ALink2.style.visibility%3D%22visible%22%20%0D%0ALink2.filters(0).play()%20%0D%0AEnd%20Sub%20%0D%0A%0D%0ASub%20Next_onclick()%20%0D%0A'Makes%20the%20button%20appeared%20depressed%20and%20moves%20to%20next%20slide%20%0D%0Adocument.all.ButtonNext.src%20%3D%20%22http%3A%2F%2Fwww.glzy8.com%2Fimages%2Flogo.gif%22%20%0D%0Alocation.href%3D%20%22http%3A%2F%2Fwww.glzy8.com%22%20%0D%0AEnd%20Sub%20%0D%0A--%3E%20%0D%0A%3C%2Fscript%3E"> <META HTTP-EQUIV="Content-Type" content="text/html; charset=gb2312"> <style> body,div,td{font:menu} </style> </head> <BODY onload="LightMe" BGCOLOR="#800000" TEXT="#D4B878" > <Div id="title" style="position:absolute; left:7; top:7; width:425; visibility:visible; filter:Light"><strong>欢迎使用 Internet 信息服务!</strong></Div> <div id="Text1" style="position: absolute;left: 7; top: 45; width: 425; visibility: hidden; filter: revealTrans(Duration=2, Transition=19); height: 39"><strong><font color="#D4B878">Microsoft Internet 信息服务是一个桌面 Web 服务器,使用它,您可以从自己的计算机上发布个人主页,并把您计算机上的文档共享到整个网络。</font> </strong></div> <div id="Text2" style="position: absolute; left: 200; top: 175; width: 225; visibility: hidden; filter: revealTrans(Duration=3, Transition=12); height: 39"><strong><font color="#D4B878">在将站点上载到 Internet 提供商之前,也可以将 IIS 用作开发平台。</font></strong></div> <div id="Link2" style="position:absolute; top:285; left:385; visibility:hidden; filter:revealTrans(Duration=3, Transition=12)" ><img id="ButtonNext" src="right1up.gif" _ewebeditor_ta_src="right1up.gif" border=0 onmouseover="ButtonNext.src = 'http://www.glzy8.com/images/logo.gif' " onmouseout="ButtonNext.src = 'right1up.gif' " onclick=next_onclick></div> <div id="NextButton" style="display:none"><img src=right3down.gif></div> </font> </body> </html>
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程