|
-
Nov 17th, 2007, 03:20 PM
#1
Thread Starter
Member
Yahoo Messenger Dinamic Status
I used YM SDK for creating a dinamic status ... something like a marquee text
The code was done in JavaScript as the SDK require but I got stuck at the final step
Who is familiar with YM SDK will recognize the next lines of code
function onFriendSelected(friend) {
marquee();
}
function marquee() {
s1=sir.substring(c,m)
f=sir.substring(0,c)
if (c==0)
{
window.external.Messenger.Me.Status.SetCustomStatus(s1, false, "", "");
}
if (c>0)
{
window.external.Messenger.Me.Status.SetCustomStatus(s1+f, false, "", "");
}
c=c+1
if (c>m-1)
{
c=0
}
t=setTimeout("marquee()",1000);
}
So as you see in the code ... when I select a friend from my list the status text should rotate every 1 second ... this is my problem ... it wont rotate and will generate an error
This behavour is present only when i use the timer functions because if I change the code to rotate the status when I click manally a contact the rotation is generated
I tryed to contact Yahoo! Messenger Developer Support forum but is closed by Yahoo since March 2007 so I hope to find here an answer
Thx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|