在博客中设置QQ状态显示
作者:admin 日期:2008-05-03
写论文写烦了,偶然发现在博客中显示QQ状态非常有意思,发现QQ有点可爱拉。
第一种方法,利用qq的“互动状态”功能,就可以在你的博客上显示你的QQ状态拉。
详细的设置和参数去这里看http://is.qq.com/webpresence/code.shtml
在线的效果

代码
程序代码
把qq号和网站地址改成你自己的就行拉。
第二种办法,qq并没有给我们提供文字设置的选择,只能用它的图片显示QQ状态,嘿嘿,就有朋友想出办法,用JS来显示,这个爽。
在线的效果

代码
程序代码
第一种方法,利用qq的“互动状态”功能,就可以在你的博客上显示你的QQ状态拉。
详细的设置和参数去这里看http://is.qq.com/webpresence/code.shtml
在线的效果

代码
程序代码<a target=blank href="http://wpa.qq.com/msgrd?V=1&Uin=94788078&Site=www.daokers.com&Menu=yes">94788078<img border="0" SRC=http://wpa.qq.com/pa?p=1:94788078:4 alt="给我发消息"></a></font>
把qq号和网站地址改成你自己的就行拉。
第二种办法,qq并没有给我们提供文字设置的选择,只能用它的图片显示QQ状态,嘿嘿,就有朋友想出办法,用JS来显示,这个爽。
在线的效果

代码
程序代码<script>
var online= new Array();
</script>
<script src="http://webpresence.qq.com/getonline?Type=1&94788078:"></script>
<script>
if (online[0]==0)
document.write("<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=94788078&Site=www.daokers.com&Menu=no' title='当前离线或隐身'>94788078<img border='0' src='http://www.daokers.com/linkimags/outline.jpg'></a><font color=#636563>离线</font>");
else
document.write("<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=94788078&Site=www.daokers.com&Menu=no' title='当前在线'>94788078<img border='0' src='http://www.daokers.com/linkimags/online.jpg'></a><font color=red><b>在线</b></font>");
</script>
var online= new Array();
</script>
<script src="http://webpresence.qq.com/getonline?Type=1&94788078:"></script>
<script>
if (online[0]==0)
document.write("<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=94788078&Site=www.daokers.com&Menu=no' title='当前离线或隐身'>94788078<img border='0' src='http://www.daokers.com/linkimags/outline.jpg'></a><font color=#636563>离线</font>");
else
document.write("<a target=blank href='http://wpa.qq.com/msgrd?V=1&Uin=94788078&Site=www.daokers.com&Menu=no' title='当前在线'>94788078<img border='0' src='http://www.daokers.com/linkimags/online.jpg'></a><font color=red><b>在线</b></font>");
</script>
以下说明属本文之一部分:
转载请保持完整并注明:转自 金刀客[www.daokers.com]
[本日志由 admin 于 2009-05-02 11:16 AM 编辑]
评论: 0 | 引用: 0 | 查看次数: -
发表评论
上一篇
下一篇

相关日志:
文章来自: 




