没有公告
加入收藏
设为首页
联系站长
|
首页
|
菜鸟学堂
|
软件应用
|
硬件知识
|
操作系统
|
网络安全
|
网页制作
|
图形图像
|
产业咨讯
|
知识问答
|
轻松学电脑
>>
网页制作
>>
文本特效类
>>可调节速度的撞击
双击滚屏阅读
可调节速度的撞击
可调节速度的撞击
下面为效果显示区!
脚本说明: 第一步:把如下代码加入<body>区域中 <script LANGUAGE="JavaScript"> var speed=500; var hellotext="1"; var thetext=""; var started=false; var step=0; var times=1; function welcometext(){ times--;if(times==0){ if(started==false){started=true; document.forms[0].message.value=hellotext; setTimeout("anim()",1)}thetext=hellotext}} function showformtext(txt){ thetext=txt; setTimeout(welcometext());times++} function anim(){step++;if(step==15){step=1} if(step==1){document.forms[0].message.value='Ping-Pong*____________|_____________Ping-Pong'} if(step==2){document.forms[0].message.value='Ping-Pong_____________|____________*Pign-Pong'} if(step==3){document.forms[0].message.value='Ping-Pong____*________|_____________Ping-Pong'} if(step==4){document.forms[0].message.value='Ping-Pong_____________|________*____Ping-Pong'} if(step==5){document.forms[0].message.value='Ping-Pong________*____|_____________Ping-Pong'} if(step==6){document.forms[0].message.value='Ping-Pong_____________|____*________Ping-Pong'} if(step==7){document.forms[0].message.value='Ping-Pong____________*|_____________Ping-Pong'} if(step==8){document.forms[0].message.value='Ping-Pong_____________|*____________Ping-Pong'} if(step==9){document.forms[0].message.value='Ping-Pong_____________|___*_________Ping-Pong'} if(step==10){document.forms[0].message.value='Ping-Pong_________*___|_____________Ping-Pong'} if(step==11){document.forms[0].message.value='Ping-Pong_____________|______*______Ping-Pong'} if(step==12){document.forms[0].message.value='Ping-Pong______*______|_____________Ping-Pong'} if(step==13){document.forms[0].message.value='Ping-Pong_____________|__________*__Ping-Pong'} if(step==14){document.forms[0].message.value='Ping-Pong__*__________|_____________Ping-Pong'} if(step==15){document.forms[0].message.value='Ping-Pong_____________|_____________Ping-Pong'} setTimeout("anim()",speed)} function delay(){if(speed==500){speed=10}else{speed=500}} </script> <form><INPUT Type="text" Name="message" Size="44"><p> <INPUT Type="button" Value="快速/减速" onClick="delay()"></form> 第二步:把如下代码加入<body>区域中 <body bgcolor="#fef4d9" onLoad="welcometext()">
上一篇文章:
文字循环出现
下一篇文章:
逐字出现的信息条
广告
阅读top10
文字弯曲变形
文字向左移动
按钮驱动文字闪烁
文字胡乱跳动
链接在右面打开
状态栏条
点击出现链接
文字连续闪烁
文字段任意移动
点击改变文字
文字逐个闪烁
各种形式文字输出
文字飘动输出
调节文字移动形式
查看
可调节速度的撞击
全部内容
|
设为首页
|
加入收藏
|
联系站长
|
友情链接
|
版权申明
| |
本站提供:
电脑教程
网页制作
Flash教程
PhotoShop教程
等免费教程。
Copyright © 2006-2008
轻松学电脑
All Rights Reserved