home about me stuff links follow dashboard

Wednesday, August 3, 2011

教学/Tutorial || 移动标题/Make Title Moving






佳欣
=)

For 佳欣 
=)

各位
喜欢的话帮我按个Like
也麻烦各位帮我按部落格的Like
在部落格顶端^.^
谢谢

Everybory
if you like my tutorial
pls help me press the Like button
and please help me press the like button at the top there^.^
thx 
点它/Click it : 





中文/Chiness:

① 信息中心 --> 设计 --> 页面元素 --> 添加小工具 --> HTML JavaScript

② 将以下代码放进HTML JavaScript

<script language="javascript">
<!--
var tx = new Array (
"输入文字",
"输入文字");


var txcount=2;//


var i=1;
var wo=0;
var ud=1;
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 '; ",1000);


parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",200);
}


animatetitle();


// -->


</script>


③ 将红色字体填上

④ 储存

完成!!!
祝你成功!!!



英文/English:

① Dashboard --> Design --> Page Elements --> Add a Gadget --> HTML JavaScript

② Copy the code below and paste it into HTML JavaScript

<script language="javascript">
<!--
var tx = new Array (
"The word you want to write",
"The word you want to write");

var txcount=2;//


var i=1;
var wo=0;
var ud=1;
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 '; ",1000);


parent.window.document.title=tx[wo].substr(0, i)+"_";
setTimeout("animatetitle()",200);
}


animatetitle();


// -->


</script>

③ Fill up the Red color word

④ Save

Done!!!
Wish you good luck!!!





链接我/Link Me




sticker



2 Oreo ♥:

Post a Comment