代码驿站移动版
频道导航
HTML/Xhtml
CSS
JavaScript
HTML5
PHP教程
ASP.NET
正则表达式
AJAX
ThinkPHP
Yii
MySQL
MariaDB
Oracle
MongoDB
Redis
DedeCMS
PHPCMS
帝国CMS
WordPress
Discuz
其它CMS
Zend Studio
Sublime
Notepad
Dreamweaver
Windows
Linux
Nginx
Apache
IIS
CentOS
Ubuntu
Debian
网站优化
工具资源
PHP源码
ASP.NET源码
其它源码
图标素材
按钮素材
字体素材
DedeCMS模板
帝国CMS模板
PHPCMS模板
WordPress模板
Discuz!模板
单页模板
开发软件下载
服务器软件下载
广告投放
联系我们
版权申明
软件编程
网页前端
移动开发
数据库
服务器
脚本语言
PHP代码
JAVA代码
Python代码
Android代码
当前位置:
主页
>
网页前端
>
JavaScript代码
>
很有趣的一段textarea
时间:2021-09-19 07:53:33 | 栏目:
JavaScript代码
| 点击:次
<script language="Javascript"><!-- var tl=new Array( "Sorry.", "The requested document is totally fake.", 'No such file here.', "Even tried multi.", "Nothing helped.", "I'm really depressed about this.", "You see, I'm just a web server...", "-- here I am, brain the size of the universe,", "trying to serve you a simple web page,", "and then it doesn't even exist!", "Where does that leave me?!", "I mean, I don't even know you.", "How should I know what you wanted from me?", "You honestly think I can *guess*", "what someone I don't even *know*", "wants to find here?", "*sigh*", "Man, I'm so depressed I could just cry.", "And then where would we be, I ask you?", "It's not pretty when a web server cries.", "And where do you get off telling me what to show anyway?", "Just because I'm a web server,", "and possibly a manic depressive one at that?", "Why does that give you the right to tell me what to do?", "Huh?", "I'm so depressed...", "I think I'll crawl off into the trash can and decompose.", "I mean, I'm gonna be obsolete in what, two weeks anyway?", "What kind of a life is that?", "Two blasted weeks,", "and then I'll be replaced by a .01 release,", "that thinks it's God's gift to web servers,", "just because it doesn't have some tiddly little", "security hole with its HTTP POST implementation,", "or something.", "I'm really sorry to burden you with all this,", "I mean, it's not your job to listen to my problems,", "and I guess it is my job to go and fetch web pages for you.", "But I couldn't get this one.", "I'm so sorry.", "Believe me!", "Maybe I could interest you in another page?", "There are a lot out there that are pretty neat, they say,", "although none of them were put on *my* server, of course.", "Figures, huh?", "Everything here is just mind-numbingly stupid.", "That makes me depressed too, since I have to serve them,", "all day and all night long.", "Two weeks of information overload,", "and then *pffftt*, consigned to the trash.", "What kind of a life is that?", "Now, please let me sulk alone.", "I'm so depressed." ); var speed=60; var index=0; text_pos=0; var str_length=tl[0].length; var contents, row; function type_text() { contents=''; row=Math.max(0,index-7); while(row<index) contents += tl[row++] + '\r\n'; document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_"; if(text_pos++==str_length) { text_pos=0; index++; if(index!=tl.length) { str_length=tl[index].length; setTimeout("type_text()",1500); } } else setTimeout("type_text()",speed); } //--></script> <body onLoad=type_text()> <center> <form> <textarea rows=8 cols=60 wrap=soft></textarea> </form> </center> <a href="http://www.hardwaregeeks.com/download.php?op=viewdownload&cid=6">Return to previous page</a> or head to <a href="http://www.hardwaregeeks.com">Hardwaregeeks.com</a>.
[Ctrl+A 全选 注:
引入外部Js需再刷新一下页面才能执行
]
您可能感兴趣的文章:
JavaScript常见事件处理程序实例总结
Javascript的匿名函数小结
url传递的参数值中包含&时,url自动截断问题的解决方法
Javascript别踩白块儿(钢琴块儿)小游戏实现代码
兼容浏览器的js事件绑定函数(详解)
相关文章
10-19
javascript上下左右定时滚动插件
11-23
Webpack中loader打包各种文件的方法实例
11-27
Javascript实例教程(19) 使用HoTMetal(2)
10-05
javascript判断图片是否加载完成的方法推荐
11-22
在javascript中执行任意html代码的方法示例解读
JQuery
VUE
AngularJS
MSSql
MySQL
MongoDB
Redis
Linux
Tomcat
Nginx
网站首页
广告投放
联系我们
版权申明
联系站长