资料
表格
制度
合同
管理
职场
经营
创业
范文
总结
计划
作文
文章
美文
词句
教程
模板
图片
字体
图标
办公
人事
财务
生产
管理资源吧首页
>>>
教程
>>>
编程
>>>
JavaScript教程
>>>
很有趣的一段textarea
<img src="/_New/_cj/myeditor/sysimage/space.gif" class="ewebeditor__script" _ewebeditor_fake_tag="script" _ewebeditor_fake_value="%3Cscript%20language%3D%22Javascript%22%3E%3C!--%20%0D%0Avar%20tl%3Dnew%20Array(%20%0D%0A%22Sorry.%22%2C%20%0D%0A%22The%20requested%20document%20is%20totally%20fake.%22%2C%20%0D%0A'No%20such%20file%20here.'%2C%20%0D%0A%22Even%20tried%20multi.%22%2C%20%0D%0A%22Nothing%20helped.%22%2C%20%0D%0A%22I'm%20really%20depressed%20about%20this.%22%2C%20%0D%0A%22You%20see%2C%20I'm%20just%20a%20web%20server...%22%2C%20%0D%0A%22--%20here%20I%20am%2C%20brain%20the%20size%20of%20the%20universe%2C%22%2C%20%0D%0A%22trying%20to%20serve%20you%20a%20simple%20web%20page%2C%22%2C%20%0D%0A%22and%20then%20it%20doesn't%20even%20exist!%22%2C%20%0D%0A%22Where%20does%20that%20leave%20me%3F!%22%2C%20%0D%0A%22I%20mean%2C%20I%20don't%20even%20know%20you.%22%2C%20%0D%0A%22How%20should%20I%20know%20what%20you%20wanted%20from%20me%3F%22%2C%20%0D%0A%22You%20honestly%20think%20I%20can%20*guess*%22%2C%20%0D%0A%22what%20someone%20I%20don't%20even%20*know*%22%2C%20%0D%0A%22wants%20to%20find%20here%3F%22%2C%20%0D%0A%22*sigh*%22%2C%20%0D%0A%22Man%2C%20I'm%20so%20depressed%20I%20could%20just%20cry.%22%2C%20%0D%0A%22And%20then%20where%20would%20we%20be%2C%20I%20ask%20you%3F%22%2C%20%0D%0A%22It's%20not%20pretty%20when%20a%20web%20server%20cries.%22%2C%20%0D%0A%22And%20where%20do%20you%20get%20off%20telling%20me%20what%20to%20show%20anyway%3F%22%2C%20%0D%0A%22Just%20because%20I'm%20a%20web%20server%2C%22%2C%20%0D%0A%22and%20possibly%20a%20manic%20depressive%20one%20at%20that%3F%22%2C%20%0D%0A%22Why%20does%20that%20give%20you%20the%20right%20to%20tell%20me%20what%20to%20do%3F%22%2C%20%0D%0A%22Huh%3F%22%2C%20%0D%0A%22I'm%20so%20depressed...%22%2C%20%0D%0A%22I%20think%20I'll%20crawl%20off%20into%20the%20trash%20can%20and%20decompose.%22%2C%20%0D%0A%22I%20mean%2C%20I'm%20gonna%20be%20obsolete%20in%20what%2C%20two%20weeks%20anyway%3F%22%2C%20%0D%0A%22What%20kind%20of%20a%20life%20is%20that%3F%22%2C%20%0D%0A%22Two%20blasted%20weeks%2C%22%2C%20%0D%0A%22and%20then%20I'll%20be%20replaced%20by%20a%20.01%20release%2C%22%2C%20%0D%0A%22that%20thinks%20it's%20God's%20gift%20to%20web%20servers%2C%22%2C%20%0D%0A%22just%20because%20it%20doesn't%20have%20some%20tiddly%20little%22%2C%20%0D%0A%22security%20hole%20with%20its%20HTTP%20POST%20implementation%2C%22%2C%20%0D%0A%22or%20something.%22%2C%20%0D%0A%22I'm%20really%20sorry%20to%20burden%20you%20with%20all%20this%2C%22%2C%20%0D%0A%22I%20mean%2C%20it's%20not%20your%20job%20to%20listen%20to%20my%20problems%2C%22%2C%20%0D%0A%22and%20I%20guess%20it%20is%20my%20job%20to%20go%20and%20fetch%20web%20pages%20for%20you.%22%2C%20%0D%0A%22But%20I%20couldn't%20get%20this%20one.%22%2C%20%0D%0A%22I'm%20so%20sorry.%22%2C%20%0D%0A%22Believe%20me!%22%2C%20%0D%0A%22Maybe%20I%20could%20interest%20you%20in%20another%20page%3F%22%2C%20%0D%0A%22There%20are%20a%20lot%20out%20there%20that%20are%20pretty%20neat%2C%20they%20say%2C%22%2C%20%0D%0A%22although%20none%20of%20them%20were%20put%20on%20*my*%20server%2C%20of%20course.%22%2C%20%0D%0A%22Figures%2C%20huh%3F%22%2C%20%0D%0A%22Everything%20here%20is%20just%20mind-numbingly%20stupid.%22%2C%20%0D%0A%22That%20makes%20me%20depressed%20too%2C%20since%20I%20have%20to%20serve%20them%2C%22%2C%20%0D%0A%22all%20day%20and%20all%20night%20long.%22%2C%20%0D%0A%22Two%20weeks%20of%20information%20overload%2C%22%2C%20%0D%0A%22and%20then%20*pffftt*%2C%20consigned%20to%20the%20trash.%22%2C%20%0D%0A%22What%20kind%20of%20a%20life%20is%20that%3F%22%2C%20%0D%0A%22Now%2C%20please%20let%20me%20sulk%20alone.%22%2C%20%0D%0A%22I'm%20so%20depressed.%22%20%0D%0A)%3B%20%0D%0Avar%20speed%3D60%3B%20%0D%0Avar%20index%3D0%3B%20text_pos%3D0%3B%20%0D%0Avar%20str_length%3Dtl%5B0%5D.length%3B%20%0D%0Avar%20contents%2C%20row%3B%20%0D%0A%0D%0Afunction%20type_text()%20%0D%0A%7B%20%0D%0A%20%20contents%3D''%3B%20%0D%0A%20%20row%3DMath.max(0%2Cindex-7)%3B%20%0D%0A%20%20while(row%3Cindex)%20%0D%0A%20%20%20%20contents%20%2B%3D%20tl%5Brow%2B%2B%5D%20%2B%20'%5Cr%5Cn'%3B%20%0D%0A%20%20document.forms%5B0%5D.elements%5B0%5D.value%20%3D%20contents%20%2B%20tl%5Bindex%5D.substring(0%2Ctext_pos)%20%2B%20%22_%22%3B%20%0D%0A%20%20if(text_pos%2B%2B%3D%3Dstr_length)%20%0D%0A%20%20%7B%20%0D%0A%20%20%20%20text_pos%3D0%3B%20%0D%0A%20%20%20%20index%2B%2B%3B%20%0D%0A%20%20%20%20if(index!%3Dtl.length)%20%0D%0A%20%20%20%20%7B%20%0D%0A%20%20%20%20%20%20str_length%3Dtl%5Bindex%5D.length%3B%20%0D%0A%20%20%20%20%20%20setTimeout(%22type_text()%22%2C1500)%3B%20%0D%0A%20%20%20%20%7D%20%0D%0A%20%20%7D%20else%20%0D%0A%20%20%20%20setTimeout(%22type_text()%22%2Cspeed)%3B%20%0D%0A%20%20%0D%0A%7D%20%0D%0A%2F%2F--%3E%3C%2Fscript%3E"> <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" _ewebeditor_ta_href="http%3A%2F%2Fwww.hardwaregeeks.com%2Fdownload.php%3Fop%3Dviewdownload%26amp%3Bcid%3D6">Return to previous page</a> or head to <a href="http://www.hardwaregeeks.com" _ewebeditor_ta_href="http%3A%2F%2Fwww.hardwaregeeks.com">Hardwaregeeks.com</a>.
[Ctrl+A 全选 注:
如需引入外部Js需刷新才能执行
]
教程首页
更多教程