<
script
>
var online = new Array();
</ script >
<!-- 检测是否在线 -->
< script src = " http://webpresence.qq.com/getonline?Type=1& ... t;></script>
<script>
<!--如果在线,则显示以下内容-->
if (online[0]==0)
document.write( " < a class = ' qqb ' target = blank href = ' http://wpa.qq.com/msgrd?V=1&Uin=313777118&a ... &Menu=no ' title = ' 当前离线或隐身 ' > QQ: 313777118 </ a >& nbsp; & nbsp; < font color = # 636563 > 当前离线或隐身 </ font > " );
else
<!--如果离线,则显示以下内容-->
document.write( " < a class = ' qqa ' target = blank href = ' http://wpa.qq.com/msgrd?V=1&Uin=313777118&a ... &Menu=no ' title = ' 当前在线 ' > QQ: 313777118 </ a >& nbsp; & nbsp; < font color = red >< b > 当前在线 </ b ></ font > " );
</script >
var online = new Array();
</ script >
<!-- 检测是否在线 -->
< script src = " http://webpresence.qq.com/getonline?Type=1& ... t;></script>
<script>
<!--如果在线,则显示以下内容-->
if (online[0]==0)
document.write( " < a class = ' qqb ' target = blank href = ' http://wpa.qq.com/msgrd?V=1&Uin=313777118&a ... &Menu=no ' title = ' 当前离线或隐身 ' > QQ: 313777118 </ a >& nbsp; & nbsp; < font color = # 636563 > 当前离线或隐身 </ font > " );
else
<!--如果离线,则显示以下内容-->
document.write( " < a class = ' qqa ' target = blank href = ' http://wpa.qq.com/msgrd?V=1&Uin=313777118&a ... &Menu=no ' title = ' 当前在线 ' > QQ: 313777118 </ a >& nbsp; & nbsp; < font color = red >< b > 当前在线 </ b ></ font > " );
</script >
通过修改JScript的document.write可以实现个性化的QQ网页在线状态图片效果