开发者

Show one at a time?

I have a script on my website that shows messsages from a mysql database. Now开发者_JAVA技巧 I want to make it so it only pops up one message at a time. Anyone want to shed some light on this?

Windows Vista

PHP - Mysql - Ajax - JS

I can't really provide a code sample but here is some pseudocode:

if(ID == 1)
{ 
// SHOW  ID++;
}

// Show #2 


Set up a callback that pulls and pops up the new message, then schedules the callback again if a message was successfully pulled and shown.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜