=typer.curpos+4){
if(typer.innerHTML.substring(typer.curpos,typer.curpos+4)=="") {
tempStr="";
typer.curpos = typer.curpos+4;
}else if(typer.innerHTML.substring(typer.curpos,typer.curpos+4)=="
"){
tempStr="
";
typer.curpos = typer.curpos+4;
}else{
if(typer.innerHTML.length>=typer.curpos+3 && typer.innerHTML.substring(typer.curpos,typer.curpos+3)==""){
tempStr="
";
typer.curpos = typer.curpos+3;
}else{
tempStr=typer.innerHTML.substring(typer.curpos,typer.curpos+1);
typer.curpos++;
}
}
}else if(typer.innerHTML.length>=typer.curpos+3){
if(typer.innerHTML.substring(typer.curpos,typer.curpos+3)=="
"){
tempStr="
";
typer.curpos = typer.curpos+3;
}else{
tempStr=typer.innerHTML.substring(typer.curpos,typer.curpos+1);
typer.curpos++;
}
}else{
tempStr=typer.innerHTML.substring(typer.curpos,typer.curpos+1);
typer.curpos++;
}
typer.container.innerHTML = typer.container.innerHTML.substring(0,typer.container.innerHTML.length-1)+tempStr;
}
}else{
clearInterval(typer.interval1);
typer.interval2 = setInterval("typer.last()",typer.speed);
}
},
last : function(){
if(typer.container.innerHTML.substring(typer.container.innerHTML.length-1)!="_")
typer.container.innerHTML +="_";
else
typer.container.innerHTML = typer.container.innerHTML.substring(0,typer.container.innerHTML.length-1);
}
}
function clearSpace(str){
if(str!=""){
str = str.replace(/^\s*/g,"").replace(/\s*$/g,"");
}
return str;
}
script>
姓名: 冷风
Email: cityvoice@hotmail.com
籍贯: 湖南
爱好:打球,旅游,玩星际,唱歌