石家庄网站建设,石家庄网站制作,首选新钥匙建站。
分享到:

石家庄网站建设,石家庄网站制作

始于2007年,服务客户2000多……
网站首页 建站报价 建站流程 成功案例 最新资讯 常见问题 关于我们 服务项目 联系我们
关于我们
关于我们
建站报价
建站流程
常见问题
服务项目
域名注册 空间主机
网站建设 网站推广
最新资讯
标题: yahoo messenger 聊天代码
yahoo messenger 聊天代码
时间:2011-09-17 14:44      点击:

 

  1. [转载]Display Yahoo Messenger Online Status on Web Page网页上显示雅虎通在线代码和在线聊天窗口(2011-06-7 09:39:47)  
  2. 文章来自:www.52diaobao.com  
  3.  
  4.   官方网址: messenger.yahoo/pingbox/studio/ 生成网页上在线谈天窗口 演示网页: dusystem/bbs/map.asp   
  5.  
  6.   Display Yahoo Messenger Online Status on Web Page   
  7.  
  8.   blog.wlacs/2009/02/display-yahoo-messen ger-online-status-on-web-page/   
  9.  
  10.   mwolk/blog/show-yahoo-messenger-online- status-on-website/   
  11.  
  12.   messengeroo/yahoo-messenger/tips-tr icks/yahoo-messenger-online-offline-status-blog-web site-image-viewer/   
  13.  
  14.   codeproject/KB/HTML/Yahoo.aspx   
  15.  
  16.   <a href = 'ymsgr:sendim?novavnu'>   
  17.  
  18.   <img src="opi.yahoo/online?u=YourID&m=g&t=St yleID" border=0>   
  19.  
  20.   </a>   
  21.  
  22.   <a href="edit.yahoo/config/send_webmesg?.target= youryahooid&.src=pg”><img border="0" src="opi.yahoo/online?u=youryahooid&m=g&t=8l=us"></a><br />   
  23.  
  24.   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:   
  25.  
  26.   <a href="messenger.yahoo/edit/send/?.targe t=YOUR_YAHOO_ID">   
  27.  
  28.   <img border="0" src="opi.yahoo/yahooonline/u=YOUR_YAHOO _ID/m=g/t=2/l=us/opi.jpg">   
  29.  
  30.   </a>   
  31.  
  32.   这将返回雅虎供应的图片: Will return this Yahoo!-provided image:   
  33.  
  34.      
  35.  
  36.   玩与雅虎供应的源产量约达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:   
  37.  
  38.      
  39.  
  40.   下面是的avaialbe(t = 0时通过T = 16): Here's what's avaialbe (t=0 through t=16):   
  41.  
  42.      
  43.  
  44.      
  45.  
  46.      
  47.  
  48.      
  49.  
  50.      
  51.  
  52.      
  53.  
  54.      
  55.  
  56.      
  57.  
  58.      
  59.  
  60.      
  61.  
  62.      
  63.  
  64.      
  65.  
  66.      
  67.  
  68.      
  69.  
  70.      
  71.  
  72.      
  73.  
  74.      
  75.  
  76.   雅虎给了我们一个很好的选择范围...但假如??我们想使用自定义图片或笔墨? 去角质 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:   
  77.  
  78.   opi.yahoo/online?u=YOUR_YAHOO_ID&m=a&t1   
  79.  
  80.   以后,在我们的赏识器链接给我们带来了甚么好像是一个简单的表现状态页 Following that link in our browser brings us to what appears to be a status page that simply displays   
  81.  
  82.   00   
  83.  
  84.   假如我们注销,并 if we're logged off, and   
  85.  
  86.   01   
  87.  
  88.   假如我们已登录 if we're signed in.   
  89.  
  90.   假如我们的网址玩这一点, 改变 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:   
  91.  
  92.   YOUR_YAHOO_ID is NOT ONLINE   
  93.  
  94.   或 or   
  95.  
  96.   YOUR_YAHOO_ID is ONLINE   
  97.  
  98.   对我们而言,少就是多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:   
  99.  
  100.   <?php   
  101.  
  102.   $getstatus = file_get_contents('mail.opi.yahoo/onlin e?u=YOUR_YAHOO_ID&m=a&t=1');   
  103.  
  104.   switch($getstatus) {   
  105.  
  106.   case "00": $status = '<img src="offline.jpg" />';   
  107.  
  108.   break;   
  109.  
  110.   case "01": $status = '<img src="online.jpg" />';   
  111.  
  112.   break;   
  113.  
  114.   }   
  115.  
  116.   echo $status;   
  117.  
  118.   ?>   
  119.  
  120.   您可以定义$状态但是你乐意的话。 You can define $status however you'd like. 尽情享受吧! Enjoy!  

 

感谢您对新钥匙建站的一贯支持与关注!
新钥匙建站提供:
域名注册 | 空间主机 | 网站建设 | 网站推广
业务(一)QQ:点击这里给我发消息1351126800   业务(二)QQ:点击这里给我发消息67030191   售后服务QQ:点击这里给我发消息65724142
QQ不在线时请电话联系  133 9303 5011 地址:石家庄市红旗大街599号(红旗大街南二环交叉口南行1000米路东西美花城4-B-403)(乘车路线)
© 石家庄网站制作,石家庄网站建设 2006-2014 新钥匙网站建设 冀ICP备11004523号-1 网站地图 推荐链接