Jumat, 20 Mei 2011

Text berjalan di status bar dan title bar

teman teman yang ingin mempercantik blog nya dapat menggunakan script di bawah ini agar text dapat berjalan di status bar atau title bar blog milik teman2...copykan script dibawah di atas kode


...........
(copykan script disini)

<head>

silahkan di copy

<script type="text/javascript">
//<![CDATA[

var message = new Array()

message[0] = "Welcome to my Blog";
message[1] = "Thank you for visiting";
message[2] = "Don't forget to leave me comment";
message[3] = "Enjoy it!!";


var reps = 2

var speed = 300

var p=message.length;
var T="";
var C=0;
var mC=0;
var s=0;
var sT=null;
if(reps<1)reps=1;
function doTheThing(){
T=message[mC];
A();}
function A(){
s++
if(s>21){s=1}

if(s==1){document.title='[G] '+T+' [Giveyoumore]'}
if(s==2){document.title='[Gi] '+T+' [Giveyoumor]'}
if(s==3){document.title='[Giv] '+T+' [Giveyoumo]'}
if(s==4){document.title='[Give] '+T+' [Giveyoum]'}
if(s==5){document.title='[Givey] '+T+' [Giveyou]'}
if(s==6){document.title='[Giveyo] '+T+' [Giveyo]'}
if(s==7){document.title='[Giveyou] '+T+' [Givey]'}
if(s==8){document.title='[Giveyoum] '+T+' [Give]'}
if(s==9){document.title='[Giveyoumo] '+T+' [Giv]'}
if(s==10){document.title='[Giveyoumor] '+T+' [Gi]'}
if(s==11){document.title='[Giveyoumore] '+T+' [G]'}
if(s==12){document.title='[Giveyoumor] '+T+' [Gi]'}
if(s==13){document.title='[Giveyoumo] '+T+' [Giv]'}
if(s==14){document.title='[Giveyoum] '+T+' [Give]'}
if(s==15){document.title='[Giveyou] '+T+' [Givey]'}
if(s==16){document.title='[Giveyo] '+T+' [Giveyo]'}
if(s==17){document.title='[Givey] '+T+' [Giveyou]'}
if(s==18){document.title='[Give] '+T+' [Giveyoum]'}
if(s==19){document.title='[Giv] '+T+' [Giveyoumo]'}
if(s==20){document.title='[Gi] '+T+' [Giveyoumor]'}
if(s==21){document.title='[G] '+T+' [Giveyoumore]'}

if(C<(21*reps)){
sT=setTimeout("A()",speed);
C++
}else{
C=0;
s=0;
mC++
if(mC>p-1)mC=0;
sT=null;
doTheThing();}}
doTheThing();
//]]>

</script>

Tidak ada komentar:

Posting Komentar