We use a “Live Chat” feature on our website to connect our clients with our technicians. 雅虎有一个伟大的工具添加到您的在线状态,你选择任何网页。 Yahoo! has a great tool for adding your online status to any web page you choose. 该代码黑白常简单的: The code is pretty straight forward:
这将返回雅虎供应的图片: Will return this Yahoo!-provided image:
玩与雅虎供应的源产量约达17不同的图象。 Playing around with the Yahoo! provided source yields up to 17 different images. 2标签更改上述吨=到 t = 0会给你: Changing the t=2 tag above to t=0 will give you:
雅虎给了我们一个很好的选择范围...但假如??我们想使用自定义图片或笔墨? 去角质 Yahoo! gives us a pretty good range of options… but what if we want to use a custom image or text? 让我们来看看代码,这一次,密切注重: Let's look at the code again, this time, paying close attention to:
opi.yahoo/online?u=YOUR_YAHOO_ID&m=a&t= 1
以后,在我们的赏识器链接给我们带来了甚么好像是一个简单的表现状态页 Following that link in our browser brings us to what appears to be a status page that simply displays
00
假如我们注销,并 if we're logged off, and
01
假如我们已登录 if we're signed in.
假如我们的网址玩这一点, 改变 T = 1至 t = 0,我们得到了平等的地位与不同的输出页面: If we play with this URL a bit and change t=1 to t=0 , we get the same status page with different output:
YOUR_YAHOO_ID is NOT ONLINE
或 or
YOUR_YAHOO_ID is ONLINE
对我们而言,少就是多www.52diaobao.com。 For our purposes, less is more. 我们将编写一个简单的PHP脚本,它会检查一下我们的在线状态,并表现相应的图片,我们的在线状态而定。 We'll write a *** PHP script that'll check our online status and display a corresponding image depending on our online status. 在PHP是: The PHP is: