MRX.LAFuck the Rules!
SAVE POINT / 01 MRX.LA

生活存档,继续冒险。

代码、工具,还有值得记下的小事。

读取日志 PRESS START
冒险日志一点代码,一些生活。

用JS控制手机或者PC来访分别iframe不同的内容

function uaredirect() {
    var n = navigator.userAgent.toLowerCase();
         if (n.indexOf(’android’)>-1){
document.writeln(’<iframe scrolling=”no” frameborder=”0” marginheight=”0” marginwidth=”0” width=”100%” height=”2000” allowTransparency src=”http://www.xxx.com”></iframe>’);
}
         else  if (n.indexOf(’iphone’)>-1 || n.indexOf(’iPhone’)>-1 || n.indexOf(’ipod’)>-1 || n.indexOf(’ipad’)>-1 || n.indexOf(’ios’)>-1){
document.writeln(’<iframe scrolling=”no” frameborder=”0” marginheight=”0” marginwidth=”0” width=”100%” height=”2000” allowTransparency src=”http://www.xxx.com”></iframe>’);
}
         else {
document.writeln(’<center><iframe scrolling=”no” frameborder=”0” marginheight=”0” marginwidth=”0” width=”100%” height=”1450” allowTransparency src=”http://www.xxx.com”></iframe></center>’);
 
}
}
uaredirect();

这是偶然在一个被挂马的站上看到的,典型的黑帽手法..不过有点价值,可以留下!

发表评论

填写下面的表单发表评论

SELECT YOUR WORLD

换个世界,继续阅读。

随阳光、夕阳和月亮切换,也可以手动停留在喜欢的世界。

当前世界:游戏存档点