mickael9
Full Member
Posts: 117 Reputation: 3
32 / /
Joined: Jul 2005
|
RE: Whats wrong with that var declaration?
code: var x_img = 0;
function OnEvent_Timer(sTimerId)
{
if (sTimerId == "slider" && Messenger.MyStatus == 3)
{
x_img++;
if(x_img == 1)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online2.jpg";
}
else if(x_img == 2)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online3.jpg";
}
else if(x_img == 3)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online4.jpg";
}
else if(x_img == 4)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online.jpg";
x_img = 0;
}
MsgPlus.AddTimer("slider", 20000);
}
}
This post was edited on 08-17-2006 at 01:18 PM by mickael9.
|
|