查看QQ在线的网页代码
输入QQ号码查询在线状态: Ctrl+回车后这里显示状态
====================下面是代码=====================
<html>
<head><title>QQ在线查看器</title>
<META http-equiv="Content-Type" Content="txt/html;charset=GB2312">
</head>
<script><!--
function drop(n) {
if(self.moveBy){
self.moveBy (0,-900);
for(i=n; i > 0; i--){
self.moveBy(0,3);
}
for(j=8; j > 0; j--){
self.moveBy(0,j);
self.moveBy(j,0);
self.moveBy(0,-j);
self.moveBy(-j,0);
}
}
}
</script>
<body bgcolor="menu" style="border:none" scroll="no" onload="InitWin();">
<!--*********如果插入到其他页面中请只复制中间这段代码*********-->
<font color=red>输入QQ号码查询在线状态:</font><input id="QQNum" type=text value="5172388" onkeypress="CheckQQ()"><Span id="QQ"></Span>
<Script language="Javascript">
document.all.QQ.innerHTML="Ctrl+Enter后这里显示状态";
function InitWin()
{
drop(300);
var winwidth=600;
var winheight=300;
window.moveTo((window.screen.availWidth-winwidth)/2,(window.screen.availHeight-winheight)/2);
window.resizeTo(winwidth,winheight);
}
function CheckQQ()
{if(event.keyCode==10)
document.all.QQ.innerHTML="<img src=http://wpa.qq.com/pa?p=1:5172388:1%20border=0>";
else
document.all.QQ.innerHTML="Ctrl+Enter后这里显示状态";
}
</Script>
<!--*********如果插入到其他页面中请只复制中间这段代码*********-->
</body>
</html>
====================下面是代码=====================
<html>
<head><title>QQ在线查看器</title>
<META http-equiv="Content-Type" Content="txt/html;charset=GB2312">
</head>
<script><!--
function drop(n) {
if(self.moveBy){
self.moveBy (0,-900);
for(i=n; i > 0; i--){
self.moveBy(0,3);
}
for(j=8; j > 0; j--){
self.moveBy(0,j);
self.moveBy(j,0);
self.moveBy(0,-j);
self.moveBy(-j,0);
}
}
}
</script>
<body bgcolor="menu" style="border:none" scroll="no" onload="InitWin();">
<!--*********如果插入到其他页面中请只复制中间这段代码*********-->
<font color=red>输入QQ号码查询在线状态:</font><input id="QQNum" type=text value="5172388" onkeypress="CheckQQ()"><Span id="QQ"></Span>
<Script language="Javascript">
document.all.QQ.innerHTML="Ctrl+Enter后这里显示状态";
function InitWin()
{
drop(300);
var winwidth=600;
var winheight=300;
window.moveTo((window.screen.availWidth-winwidth)/2,(window.screen.availHeight-winheight)/2);
window.resizeTo(winwidth,winheight);
}
function CheckQQ()
{if(event.keyCode==10)
document.all.QQ.innerHTML="<img src=http://wpa.qq.com/pa?p=1:5172388:1%20border=0>";
else
document.all.QQ.innerHTML="Ctrl+Enter后这里显示状态";
}
</Script>
<!--*********如果插入到其他页面中请只复制中间这段代码*********-->
</body>
</html>