`
cy729215495
  • 浏览: 127233 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

type_text的效果

 
阅读更多
<script language="Javascript">
<!--
var tl=new Array(
"Sorry.",
"The requested document is totally fake.",
"No such file here.",
"Even tried multi.",
"Nothing helped.",
"I think you ought to know that 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 going to 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 *pfft*, consigned to the trash.",
"What kind of a wretched life is that?",
"Now, please let me sulk alone.",
"I'm so depressed."
);
var speed=25;
var index=0; text_pos=0;
var str_length=tl[0].length;
var contents, row;

function type_text()
{
  contents='';
  row=Math.max(0,index-9);
  while(row<index)
    contents += tl[row++] + '\r\n';
  document.error.error.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()",850);
    }
  } else
    setTimeout("type_text()",speed);

}
//-->
</script>

 

分享到:
评论

相关推荐

    Android 登录页面的实现代码(密码显示隐藏、EditText 图标切换、限制输入长度)

    etPassword.setInputType(InputType.TYPE_CLASS_TEXT | EditorInfo.TYPE_TEXT_VARIATION_NORMAL); //显示文本 status = false; }else { etPassword.setInputType(InputType.TYPE_CLASS_TEXT | EditorInfo.TYPE_...

    CSS效果-多种情况CSS文字超出宽度-换行总结 代码示例

    https://img-blog.csdnimg.cn/af5f7fa301f645399cebe2ce29cdaf94.png?x-oss-process=image/watermark,type_ZHJvaWRzYW5zZmFsbGJhY2s,shadow_50,text_Q1NETiBAdGFuZ2RvdTM2OTA5ODY1NQ==,size_20,color_FFFFFF,t_70,g_...

    打字机模块:支持RichText的打字机模块

    打字机模块[支持RichText] 内容文献资料Typewriter.new (功能): 创建一个新的Typer对象。 每个TextLabel应该具有一个单独的Typer对象。 参数: 没有争论返回值: 打字机... 返回值: 没有退货Typer:TypeText (函

    API精灵源码(C#编)

    2004.03.11 21:10:15 完成滚动字幕的设置,启用了一个TIMER控件,然后设置时间,删除字符串的第一个字母已达到滚动效果! 2004.03.11 22:02:00 改正更新时出现空值出错问题,新填函数isnull 2004.03.12 13:22:08 ...

    jquery实现非叠加式的搜索框提示效果

    input class=”search_text” type=”text” value=”搜索” name=”searchText” /&gt; 下面是JQUERY代码: 代码如下: //设置搜索的默认值 $(“.search_text”).focus(function(){ &lt;span xss=removed&gt; &lt;/span&gt;if($...

    使用turtle库画一朵玫瑰花

    https://img-blog.csdnimg.cn/20190517222529805.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDUwNTU4Nw==,size_16,color_FFFFFF,t_70 ...

    纯CSS3实现漂亮的input输入框动画样式库(Text input love)

    分享一个用纯 CSS3 实现的,漂亮的 input 输入框动画样式库-Text input love。 点击每个输入框都用不同的动画效果,始终显示标签label,并显示 placeholder(占位符)...input class=basic-slide id=name type=text p

    unity-text-typer:Unity uGUI文本组件的文本键入效果

    TextTyper是Unity的文本键入效果组件。 TextTyper逐个打印字符到uGUI Text组件。 由RedBlueGames改编自synck的GitHub项目( )。 很容易找到其他文本打印组件的示例,但是TextTyper提供了两个主要区别: 打印字符...

    printPlay.rar

    实现骚操作,表白神技,python 使用QQ头像图片,生成头像的点阵字符画,可以生成送给好友,祝福类得,可以参考图片效果https://img-blog.csdnimg.cn/20200604155546844.png?x-oss-process=image/watermark,type_...

    jquery.typer.js:一个简单的jQuery插件,可实现流畅的打字效果

    typeTo ( "New Text" ) ; 这将执行一次过渡。 使用typer()无限输入 现在,假设您要遍历一组字符串以实现键入效果。 简单的! $ ( '[data-typer-targets]' ) . typer ( ) ; 该代码将使用data-typer-targets属性...

    CSS3逼真3D人物行走走路动画效果.zip

    3.1.64" type="text/css"&gt; &lt;link rel="stylesheet" href="css/moz_keyframes.css?3.1.64" type="text/css"&gt; &lt;link rel="stylesheet" href="css/common.css?3.1.64" type="text/css"&gt;  CSS3...

    献给即将到来的2023年的新年烟花(源码)

    基本介绍:一个基于Canvas实现的Firework烟花效果,可以实现烟花启动、烟花爆发的效果,彩色画的效果,主要通过构建Firework对象和particle对象去构建整体的烟花粒子效果和彩色绘图效果。之后采用setTimeout和loop...

    基于YOLOv5+Deepsort实现车辆行人追踪和计数。代码封装成一个Detector类,更容易嵌入到自己的项目中。

    [在这里插入图片描述](https://img-blog.csdnimg.cn/20201231090541223.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDkzNjg4OQ==,size_...

    非常漂亮的图片切换效果

    &lt;script type="text/javascript" src="js/prototype.js"&gt; &lt;script type="text/javascript" src="js/scriptaculous.js?load=effects"&gt; &lt;script type="text/javascript" src="js/lightbox.js"&gt; 外调 Lightbox CSS 文件...

    xq_navbar简单实现依赖于jQuery自定义快捷的炫酷导航条效果

    页面加载完成后即可调用该插件,传入你想要效果的参数 $("#bar5").xq_navbar({ "type":"block", "liwidth":"avg", "bgcolor":"#000", "hcolor":["blue","rgb(10,100,100)","red","pink","green","rgba(23,234,22,1)...

    Google Tooltip效果

    &lt;style type="text/css"&gt; .google-src-text { display: none !important } .google-src-active-text { display: block !important; color:black !important; } &lt;body onload="_setupIW();"&gt; &lt;p&gt;&lt;span onmouseover...

    Asp.Net无刷新分页( jquery.pagination.js)

    采用Jquery无刷新分页插件jquery.pagination.js 实现无刷新分页效果 页面内容: &lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"%&gt; &lt;!DOCTYPE ...

    ecshop 放大镜效果

    &lt;script type="text/javascript" src="js/action.js"&gt; &lt;script type="text/javascript" src="js/mzp-packed-me.js"&gt; 3、将模板文件(goods.dwt)中的商品图部分(需要加放大镜效果的地方,改成这样的代码)代码更改...

    【JavaScript源代码】jQuery实现图片跟随效果.docx

    jQuery实现图片跟随效果  本文实例为大家分享了jQuery实现图片跟随效果的具体代码,供大家参考,... charset=UTF-8"&gt; &lt;title&gt;Insert title here&lt;/title&gt; &lt;style type="text/css"&gt; body { text-align: center; } 

Global site tag (gtag.js) - Google Analytics