Home > Web Front-end > JS Tutorial > js to quickly establish a temporary conversation with any QQ number_javascript skills

js to quickly establish a temporary conversation with any QQ number_javascript skills

WBOY
Release: 2016-05-16 18:59:56
Original
1309 people have browsed it


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> function locate(){ var input= document.getElementById("no").value; document.getElementById("no").focus(); var reg = /^[1-9]\d{4,9}$/; if(!reg.test(input)){ alert("非法的QQ号码"); document.getElementById("no").select(); return; } document.getElementById("ifrHtmlEditor").src = "http://wpa.qq.com/msgrd?V=1Uin="+input+"Site=www.qq.comMenu=yes"; document.getElementById("no").select(); } function document_onkeyup() { if (event.keyCode==13) locate(); if (event.keyCode==8) return; if( (event.keyCode >= 47 && event.keyCode <= 57) || (event.keyCode >= 0x60 && event.keyCode <= 0x69) ) event.returnValue = true; else event.returnValue =false; } function window_onload() { document.getElementById("no").focus(); } </script>
Related labels:
js qq
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template