Cara membuat Text bergerak di adress bar



Artikle kali ini saya membahas bagaimana cara membuat judul address bar menjadi tambah keren,
triks kali ini hampir sama dengan yang dulu itu tapi hanya beda bentuknya doang.tidak usah panjang lebar lagsung aja . .
Disini saya akan memberikan beberapa code script dan pastinya berbeda-beda.



SCRIPT 1 :

<script type="text/javascript">
//<![CDATA[
function tb9_makeArray(n){
this.length = n;
return this.length;
}
tb9_messages = new tb9_makeArray(1);
tb9_messages[0] = "++ [[> Welcome to my Blog <]] ++ [[> Game <]] ++ [[> Cheater <]] ++";
tb9_rptType = 'infinite';
tb9_rptNbr = 5;
tb9_speed = 100;
tb9_delay = 2000;
var tb9_counter=1;
var tb9_currMsg=0;
var tb9_timerID = null
var tb9_bannerRunning = false
var tb9_state = ""
tb9_clearState()
function tb9_stopBanner() {
if (tb9_bannerRunning)
clearTimeout(tb9_timerID)
tb9_timerRunning = false
}
function tb9_startBanner() {
tb9_stopBanner()
tb9_showBanner()
}
function tb9_clearState() {
tb9_state = ""
for (var i = 0; i < tb9_messages[tb9_currMsg].length; ++i) {
tb9_state += "0"
}
}
function tb9_showBanner() {
if (tb9_getString()) {
tb9_currMsg++
if (tb9_messages.length <= tb9_currMsg) {
if ((tb9_rptType == 'finite') && (tb9_counter==tb9_rptNbr)){
tb9_stopBanner();
return;
}
tb9_counter++;
tb9_currMsg=0;
}
tb9_clearState()
tb9_timerID = setTimeout("tb9_showBanner()", tb9_delay)
}
else {
var tb9_str = ""
for (var j = 0; j < tb9_state.length; ++j) {
tb9_str += (tb9_state.charAt(j) == "1") ? tb9_messages[tb9_currMsg].charAt(j) : "____"
}
document.title = tb9_str
tb9_timerID = setTimeout("tb9_showBanner()", tb9_speed)
}
}
function tb9_getString() {
var full = true
for (var j = 0; j < tb9_state.length; ++j) {
if (tb9_state.charAt(j) == 0)
full = false
}
if (full) return true
while (1) {
var num = tb9_getRandom(tb9_messages[tb9_currMsg].length)
if (tb9_state.charAt(num) == "0")
break
}
tb9_state = tb9_state.substring(0, num) + "1" + tb9_state.substring(num + 1, tb9_state.length)
return false
}
function tb9_getRandom(max) {
var now = new Date()
var num = now.getTime() * now.getSeconds() * Math.random()
return num % max
}
tb9_startBanner()

//]]>
</script>

SCRIPT 2 :

<script type='text/javascript'>
//<![CDATA[
msg = " --- welcome to my blog--- ";
msg = " --Terimah kasih sudah mau berkunjung--" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",100);
}
scrollMSG();
//]]>
</script>

SCRIPT 3 :

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

var message = new Array() // leave this as is

message[0] = "Welcome to my Blogger !";
message[1] = "yOu Was EnTeREd To HeLL aReA";
message[2] = "bUt, YoU wIll nOt DeAtH hErE";
message[3] = "jUst keEp EnJoY !!";
message[4] = "Don't fOrgEt...";
message[5] = "LeaVe mE a cOoL cOmment !!";
var reps = 2
var speed = 100
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>9){s=1}
if(s==1){document.title='[U====] '+T+' [====U]'}
if(s==2){document.title='[=T===] '+T+' [===T=]'}
if(s==3){document.title='[==T==] '+T+' [==T==]'}
if(s==4){document.title='[===A=] '+T+' [=A===]'}
if(s==5){document.title='[====>] '+T+' [<====]'}
if(s==6){document.title='[===A=] '+T+' [=A===]'}
if(s==7){document.title='[==T==] '+T+' [==T==]'}
if(s==8){document.title='[=T===] '+T+' [===T=]'}
if(s==9){document.title='[U====] '+T+' [====U]'}
if(C<(8*reps)){
sT=setTimeout("A()",speed);
C++
}else{
C=0;
s=0;
mC++
if(mC>p-1)mC=0;
sT=null;
doTheThing();}}
doTheThing();
//]]>
</script>

SCRIPT 4 :

<script type='text/javascript'>//<![CDATA[
var message = new Array() // leave this as is
message[0] = "Utta Jadoel";
message[1] = "Utta Jadoel";
message[2] = "Utta Jadoel";
message[3] = "Utta Jadoel";
message[4] = "Utta Jadoel";
message[5] = "Utta Jadoel";
var reps = 2
var speed = 0
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>9){s=1}
if(s==1){document.title='<+=**=+[ '+T+' ]=+=**=>'}
if(s==2){document.title='<=+=**=[ '+T+' ]+=**=+>'}
if(s==3){document.title='<+=**=+[ '+T+' ]=**=+=>'}
if(s==4){document.title='<=**=+=[ '+T+' ]+=**=+>'}
if(s==5){document.title='<+=**=>[ '+T+' ]<=+=**>'}
if(s==6){document.title='<=**=+=[ '+T+' ]+=**=+>'}
if(s==7){document.title='<+=**=+[ '+T+' ]=**=+=>'}
if(s==8){document.title='<=+=**=[ '+T+' ]+=**=+>'}
if(s==9){document.title='<+=**=+[ '+T+' ]=+=**=>'}
if(C<(8*reps)){
sT=setTimeout("A()",speed);
C++
}else{
C=0;
s=0;
mC++
if(mC>p-1)mC=0;
sT=null;
doTheThing();}}
doTheThing();
//]]>
</script>

SCRIPT 5 :

<script language="javascript">
var rev = "fwd";
function titlebar(val)
{
var msg = ''Game Cheater";
var res = " ";
var speed = 100;
var pos = val;
msg = " |--- "+msg+" ---|";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}
titlebar(0);
</script>

Ket :
teks yang berwarna merah diatas anda ganti dengan nama yang anda inginkan.

Dan Berikut Langkah-langkah nya :
1. login terlebih dahulu pastinya.
2. Masuk ke tata letak (layout) >> Edit HTML
3. Cari code </head> kalo udah ketemu copy salah satu code Script diatas, lalu letakan tepat di atasnya code </head>
 

Semoga bermanfaat yach,...

Tidak ada komentar:

Posting Komentar

-Music-

 

Welcome In Kode Blogger

Contoh Sliding Login Dengan JQuery

Disamping ini adalah contoh Sliding Login menggunakan JQuery. Login Form Disamping hanya Contoh dan tidak dapat digunakan layaknya Login Form FB, Karena Blog ini terbuka untuk umum tanpa perlu mendaftar menjadi Member

Tutorial Blog

Untuk membuatnya Silahkan : Klik Disini

Member Login

Lost your password?

Not a member yet? Sign Up!

http://www.blogger.com/img/blank.gif