对某些字符串进行自动过滤,还是会用到的

王朝other·作者佚名  2008-05-31
宽屏版  字体: |||超大  

<!--要完成此效果把如下代码加入到<head>区域中-->

<script language=javascript >

title_tmp1=document.title

if (title_tmp1.indexOf(">>")!=-1){

title_tmp2=title_tmp1.split(">>");

title_last=" —> "+title_tmp2[1];

title_last=title_last + " —> " + title_tmp2[2];

}else{

if (title_tmp1.indexOf("——")!=-1){

title_tmp2=title_tmp1.split("——");

title_last=" —> "+title_tmp2[1];

if (title_last==" —> "){title_last=" —> "};

if (title_last==" —> "){title_last=" —> "};

}

else { title_last="==>http://www.knowsky.com"}

}

title_new="网页教学网"+title_last+""

step=0

function flash_title()

{

step++

if (step==7) {step=1}

if (step==1) {document.title='◆◇◇◇'+title_new+'◇◇◇◆'}

if (step==2) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}

if (step==3) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}

if (step==4) {document.title='◇◇◇◆'+title_new+'◆◇◇◇'}

if (step==5) {document.title='◇◇◆◇'+title_new+'◇◆◇◇'}

if (step==6) {document.title='◇◆◇◇'+title_new+'◇◇◆◇'}

setTimeout("flash_title()",180);

}

flash_title()

</script>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
© 2005- 王朝网络 版权所有