TechMates
member?
If not be one of us!Join us guys!
Login if your a member!
Enjoy!

TechMates

Life is Useless without TechMates
 
HomePortalCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Putting Effects on Status Bar

Go down 
AuthorMessage
RyceLL
Moderator
avatar

Posts : 18
Points : 35
Reputation : 1
Join date : 2009-07-27
Age : 28

PostSubject: Putting Effects on Status Bar   Tue Jul 28, 2009 11:49 pm

This is also a Old Script For Friendster....

heres the code

Code:
function tb7_makeArray(n){
    this.length = n;
    return this.length;
}

tb7_messages = new tb7_makeArray(6);
tb7_messages[0] = "Message Here";
tb7_messages[1] = "Message Here";
tb7_messages[2] = " Message Here";
tb7_messages[3] = "Message Here";
tb7_messages[4] = "Message Here";
tb7_messages[5] = "Message Here";
tb7_rptType = 'infinite';
tb7_rptNbr = 5;
tb7_speed = 300;
tb7_timeOneMsg = 3000;
tb7_minBrojRazmaka = 0;
tb7_maxBrojRazmaka = 3;
var tb7_counter=1;
var tb7_currMsg;
var tb7_stsmsg="";
var tb7_brojac = 0;
var tb7_expand = true;
var tb7_run=false
var tb7_tmpmsg="";
var tb7_spaces="";
var tb7_timer=null;
for (var i=0; i<tb7_minBrojRazmaka; i++)
    tb7_spaces += "_";
for (var i=0; i<tb7_messages.length; i++){
    tb7_tmpmsg="";
    for (var j=0; j<tb7_messages[i].length; j++){
        tb7_tmpmsg=tb7_tmpmsg+tb7_spaces+tb7_messages[i].charAt(j);
    }
    tb7_messages[i]=tb7_tmpmsg;
}
function tb7_settitle(){
if (!tb7_run){
    clearTimeout(tb7_timer2);
    return;
}
var tb7_sts = "";
if (tb7_brojac == 0)
    document.title = tb7_messages[tb7_currMsg]
else{
    for (var i=0; i<tb7_messages[tb7_currMsg].length; i++){
        for (var j=0; j<tb7_brojac; j++)
            tb7_sts += "_";
        tb7_sts += tb7_messages[tb7_currMsg].charAt(i);
    }
    document.title = tb7_sts;
}
if (tb7_expand && (tb7_brojac >= tb7_maxBrojRazmaka))
    tb7_expand=false;
if (!tb7_expand && tb7_brojac < tb7_minBrojRazmaka)
    tb7_expand = true;
if (tb7_expand)
    tb7_brojac++
else tb7_brojac--;
tb7_timer2 = setTimeout("tb7_settitle()", tb7_speed);
}
function tb7_coordinator(){
if (!tb7_run){
    tb7_currMsg=0;
    tb7_run = true;
    tb7_settitle();
}
else{
    if (tb7_currMsg == tb7_messages.length-1){
        if ((tb7_rptType == 'finite') && (tb7_counter==tb7_rptNbr)){
            clearTimeout(tb7_timer);
            tb7_run = false;
            return;
        }
        tb7_counter++;
        tb7_currMsg=0;
    }
    else{
        tb7_currMsg++;
    }
}
tb7_timer = setTimeout("tb7_coordinator()",tb7_timeOneMsg);
}
tb7_coordinator();

Just save it as .js then use the direct link for the application...

Quote :
Why Rip If u can ask for it

_________________
Back to top Go down
View user profile http://www.rycell.manilahost.net
 
Putting Effects on Status Bar
Back to top 
Page 1 of 1
 Similar topics
-
» In Search of Water Effects Advice
» Lava effects tutorial?
» XAS - Blood Effects
» Clarification on dark world monster effects
» Making good audio distortion/effects

Permissions in this forum:You cannot reply to topics in this forum
TechMates :: Friendster Design and Development :: Friendster Tricks and Tutorials :: JavaScript-
Jump to: