What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » online time script

online time script
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: online time script
This is Line 32 of the Online Time.js
code:
var OnlineTime = "Online Time: " + Sec + " Seconds " + Min + " Minutes " + Hrs + " Hours " + Days + " Days";

Why not just change it to what you want?
code:
var OnlineTime = "Online Time: " + Days + " Days " + Hrs + " Hours " + Min + " Minutes " +  Sec + " Seconds";

Wasn't that hard was it?

Or if you want to get fancy

code:
var OnlineTime = 'Online Time:';
if (Days > 1){
    OnlineTime += Days + ' Days';
}else if (Days == 1){
    OnlineTime += Days + ' Day';
}

if (Hrs > 1){
    OnlineTime += Hrs + ' Hours';
}else if (Hrs == 1){
    OnlineTime += Hrs + ' Hour';
}

if (Min > 1){
    OnlineTime += Min + ' Minutes';
}else if (Min == 1){
    OnlineTime += Min + ' Minute';
}

if (Secs > 1){
    OnlineTime += Secs + ' Seconds';
}else if (Secs == 1){
    OnlineTime += Secs + ' Second';
}




[edit]

Beat ya cook ;)

[/edit]

This post was edited on 08-12-2006 at 05:31 PM by matty.
08-12-2006 05:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
online time script - by stuartbennett on 08-12-2006 at 03:21 PM
RE: online time script - by Chris4 on 08-12-2006 at 03:32 PM
RE: online time script - by stuartbennett on 08-12-2006 at 05:15 PM
RE: online time script - by matty on 08-12-2006 at 05:20 PM
RE: online time script - by CookieRevised on 08-12-2006 at 05:29 PM
RE: online time script - by stuartbennett on 08-12-2006 at 06:31 PM
RE: online time script - by matty on 08-12-2006 at 07:03 PM
RE: online time script - by stuartbennett on 08-12-2006 at 07:42 PM
RE: online time script - by matty on 08-12-2006 at 07:58 PM
RE: online time script - by stuartbennett on 08-12-2006 at 08:18 PM
RE: online time script - by matty on 08-12-2006 at 08:42 PM
RE: online time script - by stuartbennett on 08-12-2006 at 09:01 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On