Với các code này bạn có thể đặt trong các thẻ
Loại thứ 1:
Code loại thứ 2:
Với các code này bạn có thể làm cho thanh tiêu đề xinh động hơn
Good Luck!
- Code:
<head>code tại đây</head>
Loại thứ 1:
- Code:
<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=" [You must be registered and logged in to see this link.] - Diễn đàn lớp 08K1 - ĐH Chu Văn An "}
}
title_new=""+title_last+""
step=0
function flash_title()
{
step++
if (step==8) {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+'-*---]'}
if (step==7) {document.title='[----*'+title_new+'*----]'}
setTimeout("flash_title()",180);
}
flash_title()
</script>
Code loại thứ 2:
- Code:
<script language=javascript>
var titletext="۩۞–»[You must be registered and logged in to see this link.] - Diễn đàn lớp 08K1 - ĐH Chu Văn An«–۞۩";
var repeat=true;
var index=0;
function scrolltitle()
{
if(index <=titletext.length)
{
document.title=titletext.substring(0,index);
index++;
setTimeout('scrolltitle()', 2);
}
else
{
index=0;
if(repeat)setTimeout('scrolltitle()',1000);
}
}
window.onload=function()
{
if(!document.layers)setTimeout('scrolltitle()',1000);
}
</script>
Với các code này bạn có thể làm cho thanh tiêu đề xinh động hơn
Good Luck!