redblood21
Number of posts : 58 Registration date : 2009-04-05 Age : 29 Location : pampanga
| Subject: title bar effects compilation Thu Apr 16, 2009 2:32 am | |
| i cant explain this effect but try it here is the codes - Quote :
- //title
function titlebar(val) { var msg = "DESIRE_MSG"; var speed = 500; var pos = val;
var msg1 = "DESIRE_MSG"; var msg2 = "DESIRE_MSG";
if(pos == 0){ masg = msg1; pos = 1; } else if(pos == 1){ masg = msg2; pos = 0; }
document.title = masg; timer = window.setTimeout("titlebar("+pos+")",speed); }
titlebar(0); edit the blue part scrolling title bar here is the code - Quote :
- //Scrolling Title Bar
putmsg=")-[DESIRE_MSG]-("; letchar2="·.¸¸.·´´*`··._.··"; letchar1="·.¸¸.·´´*`··._.··";ultimo1=letchar1.length-1; ultimo2=letchar2.length-1; ultimo2=letchar2.length-1; tiempo=setTimeout("tit_scroll()",.1); function tit_scroll() { aux1=letchar1.charAt(ultimo1-1); letchar1=aux1+letchar1.substring(0,ultimo1-1); aux2=letchar2.charAt(0); letchar2=letchar2.substring(1,ultimo2+1)+aux2; document.title="(" + letchar2 + putmsg + letchar1 + ")"; tiempo=setTimeout("tit_scroll()",.1); return true; } edit the blue part wahaha try this - Quote :
- function tb1_makeArray(n){
this.length = n; return this.length; }
tb1_messages = new tb1_makeArray(1); tb1_messages[0] = "DESIRE_MSG"; tb1_bln = 50; tb1_rptType = 'infinite'; tb1_rptNbr = 8; tb1_speed = 100; tb1_counter=1; tb1_timer = null; tb1_last = 1; tb1_st=''; tb1_currMsg = 0; function tb1_scrolltitle(){ if (tb1_last > tb1_messages[tb1_currMsg].length){ if (tb1_st.length == 0){ tb1_last=1; if (tb1_currMsg == tb1_messages.length-1){ if ((tb1_rptType == 'finite') && (tb1_counter==tb1_rptNbr)){ clearTimeout(tb1_timer); return; } tb1_counter++; tb1_currMsg=0; } else{ tb1_currMsg++; } } else{ tb1_st=tb1_st.substring(1,tb1_st.length); } } else{ tb1_st = tb1_messages[tb1_currMsg].substring(0, tb1_last); for (var i=0; i<=(tb1_bln+tb1_messages[tb1_currMsg].length-tb1_last); i++) tb1_st="_"+tb1_st; tb1_last++; } document.title = tb1_st; tb1_timer = setTimeout("tb1_scrolltitle()", tb1_speed); } tb1_scrolltitle(); edit the blue part type writter title bar effects - Quote :
- //Typewriter Document Title
var message="DESIRE_MSG" var message=message+" " i="0" var pTitle="" var speed="150"
function pShow(){ if (!document.all&&!document.getElementById) return document.title=pTitle+message.charAt(i) pTitle=pTitle+message.charAt(i) i++ if(i==message.length) { i="0" pTitle="" } setTimeout("pShow()",speed) } compile it into your js file no preview credits to hidecodesgalore jesel.XD | |
|