防K站框架跳转代码
作者:互联网
pc端跳转
document.writeln("document.write(\"<frameset rows=\'100%,*\'frameborder=\'NO\'border=\'0\'framespacing=\'0\'>\");");
document.writeln("document.write(\"<frame name=\'main\'src=\'http://www.zhizhuowz.com/'scrolling=yes>\");");
document.writeln("document.write(\"<\/frameset>\");");
document.writeln("<\/script>");
网页手机端跳转
<script type="text/javascript">
if(/Andorid|webOS|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent)){
if(window.location.href.indexOf("?pc")<0){try{window.location.href="http:/www.zhizhuowz.com/"}
catch(e){}}}</script>
标签:write,框架,代码,writeln,pc,href,跳转,document 来源: https://www.cnblogs.com/hongyuyingxiao/p/11871419.html