求助啊!!Javascript美工哥哥们 求助!!!!

来源:百度知道 编辑:UC知道 时间:2024/05/30 00:12:21
<html>
<script language="JavaScript">
<!--
var tx = new Array (
"您好呀,欢迎您的光临^_^",
"知道吗?我就是标题栏",
"呵呵,现在我也~会闪啦",
"看啊,我闪~我闪……",
"快快把你的眉眼抛过来呀!嘻嘻……");
//设置好你的页面标题栏中要闪烁的5句文本(具体内容自己据需而定吧你)
var txcount=5;
//数字“5”对应于上边设定的文本数
var i=1;
var wo=0;
var ud=1;
//定义i、wo、ud三者的初值
function animatetitle()
{
window.document.title=tx[wo].substr(0, i)+"_";
if (ud==0) i--;
if (ud==1) i++;
if (i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (i==tx[wo].length+10) {ud=0;i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-";
// if (window.document.title.length == 20 ) window.document.title=window.document.title+"]";
// if (window.document.title.length == 21 ) setTimeout("window.document.title='Animierte Seitentitel '; ",1

嘿嘿给你弄好了,给我分呀,哈哈哈哈
另外不推荐鼠标特效,呵呵,我赛扬2.4CPU要占20%的cpu 汗...
-----------------------------------------

<html>
<script language="JavaScript">
<!--
var tx = new Array (
"您好呀,欢迎您的光临^_^",
"知道吗?我就是标题栏",
"呵呵,现在我也~会闪啦",
"看啊,我闪~我闪……",
"快快把你的眉眼抛过来呀!嘻嘻……");
//设置好你的页面标题栏中要闪烁的5句文本(具体内容自己据需而定吧你)
var txcount=5;
//数字“5”对应于上边设定的文本数
var title_i=1;//////////////错误在这哦,与下面控制鼠标的i冲突嘿嘿
var wo=0;
var ud=1;
//定义title_i、wo、ud三者的初值
function animatetitle()
{
window.document.title=tx[wo].substr(0, title_i)+"_";
//alert(tx[wo].substr(0, i))

if (ud==0) title_i--;
if (ud==1) title_i++;
if (title_i==-1) {ud=1;i=0;wo++;wo=wo%txcount;}
if (title_i==tx[wo].length+10) {ud=0;title_i=tx[wo].length;}
// if (window.document.title.length < 20 ) window.document.title=window.document.title+"-&quo