甲鱼咬人吗:如何实现网页标题栏内容的闪烁

来源:百度文库 编辑:高考问答 时间:2024/04/28 22:09:13
就如http://www.ishuangcheng.com的标题栏一样??

<script language="JavaScript">
step=0
function flash_title()
{
step++
if (step==3) {step=1}
if (step==1) {document.title='◆◇◆ 河北胜芳双成家具厂 http://www.ishuangcheng.CoM ★'}
if (step==2) {document.title='◇◆◇ 河北胜芳双成家具厂 http://www.ishuangCheng.cOm ☆'}
setTimeout("flash_title()",200);
}
flash_title()
</script>

<script language="JavaScript">
step=0
function flash_title()
{
step++
if (step==3) {step=1}
if (step==1) {document.title='◆◇◆ 河北胜芳双成家具厂 http://www.ishuangcheng.CoM ★'}
if (step==2) {document.title='◇◆◇ 河北胜芳双成家具厂 http://www.ishuangCheng.cOm ☆'}
setTimeout("flash_title()",200);
}
flash_title()
</script>