开发者

omegle.com title change imitation

I was looking at omegle.com and noticed that when someone is typing, the title changes every half second from --Omegle-- to __Omegle__ or something similar. Is this in JavaScript? If so, how would I recreate somethin开发者_如何学运维g like this? No - NOT for homework. Just thought it was cool.

EDIT: I got it to happen once but I can't figure out how i would get it to occur regularly without a while(1 == 1) thing.


in javascript

change document.title every half second

change the icon? i have never try .i will try it justnow!wait! i have try it ! but i can't achieve it!


They use a function which is called periodically by the browser in order to alter the document.title, using window.setInterval.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜