网乐原科技

直播中

news center新闻中心
首页 > 资讯中心 > 软件技术

文字播放后页面随即自动跳转

发布时间:2008-12-19     阅读数: 次       来源:网乐原科技
要完成此效果需要两个步骤 第一步:把如下代码加入到区域中 <script language="JavaScript"> Destination='http://www.jojoo.net/'; Messages=new Array() Messages[0]="Welcome To JavaScript Fairyland"; Messages[1]="本站收罗了大JavaScript实例,可供网友下载"; Messages[2]="你可以添加更多条的显示"; FntFace='宋体'; FntColour='66FF33'; FntSize='4'; Speed=2000; count=-1; move=1; if (document.all){ document.write('
'); document.write('
'); document.write('
'); } if (document.layers) document.write(''); function Splash(){ TMR=setTimeout('Splash()',Speed); if (count != Messages.length-1) count=count+move; else {window.location.href=Destination;clearTimeout(TMR)} if (document.all) document.all.msg.innerHTML=''+Messages[count]+''; if (document.layers){ document.layers.nmsg.document.open(); document.layers.nmsg.document.write('
'+Messages[count]+'
'); document.layers.nmsg.document.close(); } } </script> 第二步:把“onload="Splash()"”加在标记里 例如:

网乐原科技

客服热线:0771-5761507

QQ:53290011

QQ邮箱:53290011@qq.com

工作时间:周一到周五 9:00-18:00

地址:广西南宁市江南万达写字楼C16栋1309室

物联网开发

关注我们

微信小商店 腾讯QQ客服 微信客服