可以直接查看QQ状态的代码

比较不错的应用代码,其实就是qq官方的查看状态页

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script type="text/javascript" language="javascript"> function btnClick() { var qq=document.getElementById("txtqq").value; var re = /^[1-9]/d{4,9}$/ if(re.test(qq)){ var url="http://labs.qq.com/ie8/preview/?uin="+qq; document.getElementById("qqabout").src=url; } else alert('你输入的不是QQ号码!') } </script> </head> <body> <input type="text" id="txtqq" /> <input name="qqbtn" type="button" onClick="btnClick();" value="提交" /> <iframe id="qqabout" src="http://labs.qq.com/ie8/preview/?uin=89933313" width='320' height='240' scrolling=no name='I1' align='center' style='border: 1px solid #0099FF' frameborder='0'></iframe> </body> </html>
提示:您可以先修改部分代码再运行


© 2024 软件教程网 | 联系我们: webmaster# 3062.net.cn