打开网站自动调取弹窗,添加QQ好友,QQ群的方式
添加QQ好友,在网站头部head添加
<meta http-equiv="refresh" content="0; url=tencent://AddContact/?fromId=50&fromSubId=1&subcmd=all&uin=这里填写QQ号"/>
添加QQ群,在网站头部head添加。
<embed src="这里填写加群完整链接" autostart="true" loop="true" hidden="true"></embed>
JS判断当前域名,执行跳转
host = window.location.host; if (host != "baidu.com") { location.href = "http://www.baidu.com"; }
QQ头像调用接口
100/100 调用接口:
http://q2.qlogo.cn/headimg_dl?bs=QQ号&dst_uin=QQ号&src_uin=QQ号&fid=QQ号&spec=100&url_enc=0&referer=bu_interface&term_type=PC
http://q2.qlogo.cn/headimg_dl?bs=QQ号&dst_uin=QQ号&src_uin=QQ号&fid=QQ号&spec=100&url_enc=0&referer=bu_interface&term_type=PC
640/640 调用接口:
http://q1.qlogo.cn/g?b=qq&nk=QQ号&s=640
跳转网页
<html lang="en"> <head> <meta charset="UTF-8"> <title>5秒后跳转到另一个页面</title> </head> <script> var t = 5; var s = '.'; timeID=setInterval("countDown()",1000); function countDown(){ time.innerHTML= t +"秒后跳转"+s; t--; s+='.'; if (t==0) { location.href="https://blog.qoz.cc/";; //跳转目标网址 clearInterval(timeID); } } </script> <body> <div><font ID="time" face="impact" color="#272822" size="7">即将跳转</font> </div> </body> </html>
js强制复制内容到剪贴板,不弹出框
<!--复制内容--> <script> document.addEventListener('click', function bindCopy(e) { dom = document.createElement('textarea'); // Prevent zooming on iOS dom.style.fontSize = '12pt'; // Reset box model dom.style.border = '0'; dom.style.padding = '0'; dom.style.margin = '0'; // Move element out of screen horizontally dom.style.position = 'absolute'; dom.style['left'] = '-9999px'; // Move element to the same position vertically var yPosition = window.pageYOffset || document.documentElement.scrollTop; dom.style.top = yPosition + 'px'; dom.setAttribute('readonly', ''); dom.value = '这里输入内容'; document.body.appendChild(dom); dom.select(); dom.setSelectionRange(0, dom.value.length); document.execCommand('copy'); document.removeEventListener('click', bindCopy); }) </script> <!--复制内容-->
背景音乐
<EMBED src="http://music.163.com/song/media/outer/url?id=1330348068.mp3" autostart="true" loop="false" width="0" height="0">
本文作者为远梦,转载请注明。
[aru_22]插眼