日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

打字效果

發(fā)布時間:2024/8/26 编程问答 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 打字效果 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

?

?

var NewsTime = 2000; //每條新聞的停留時間var TextTime = 50; //新聞標(biāo)題文字出現(xiàn)等待時間,越小越快var newsi = 0;var txti = 0;var txttimer;var newstimer;var newstitle = new Array(); //新聞標(biāo)題var newshref = new Array(); //新聞鏈接 newstitle[0] = "";啊啊啊啊啊啊啊啊啊啊newshref[0] = "http://www.baidu.com/";newstitle[1] = "http://www.baidu.com/";newshref[1] = "http://www.baidu.com/";newstitle[2] = "顯而易見,最高的效率就是對現(xiàn)有材料的最佳利用。";newshref[2] = "http://www.baidu.com/";newstitle[3] = "學(xué)會偷懶,并懶出境界是提高工作效率最有效的方法!";newshref[3] = "http://www.baidu.com/";newstitle[4] = "bye";newshref[4] = "http://www.baidu.com/";function shownew() {//code by haiwa @2005-10-21 www.51windows.netvar endstr = "_", hwnewstr = newstitle[newsi], newslink = newshref[newsi];if(txti==(hwnewstr.length-1)){endstr="";}if(txti>=hwnewstr.length){clearInterval(txttimer);clearInterval(newstimer);newsi++;if(newsi>=newstitle.length){newsi = 0}newstimer = setInterval("shownew()",NewsTime);txti = 0;return;}clearInterval(txttimer);document.getElementById("HotNews").href=newslink;document.getElementById("HotNews").innerHTML = hwnewstr.substring(0,txti+1)+endstr;txti++;txttimer = setInterval("shownew()",TextTime);}shownew();

?

?

<p><a href="http://www.baidu.com" target="_blank">百度一下</a></p>

?

轉(zhuǎn)載于:https://www.cnblogs.com/mudeng-007/p/7059343.html

總結(jié)

以上是生活随笔為你收集整理的打字效果的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。