js loads the implementation code for the external web page through iframe

  • 2020-05-26 07:50:38
  • OfStack

Today from other sites to see, do not need to jump to other pages directly this domain name with external pages. js is used to control the size of iframe, which is really nice.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> The home of the script _www.ofstack.com</title>
<meta name="keywords" content=" The home of the script , The home of the script _www.ofstack.com" />
<meta name="description" content=" Script house - related information, script house _www.ofstack.com" />
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript"> 
window.onerror=function(){return true;} 
$(function() { 
headerH = 0;  var h = $(window).height();
  $("#huoduan_frame").height((h-headerH)+"px"); 
});
</script>
<!--[if IE 6]>
<script type="text/javascript" src="js/DDPNG.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');
</script><![endif]-->
</head>
<body scroll="no" style="margin:0; padding:0; overflow-y:hidden ">
<iframe id="huoduan_frame" frameborder="0" scrolling="yes" name="main" src="https://www.ofstack.com/index.htm" style=" height:500px; visibility: inherit; width: 100%; z-index: 1;overflow: visible;"></iframe>
<div style="display:none">
&copy; <a href="http://so.ofstack.com/"> Good sounet </a> <a href="http://so.ofstack.com/" target="_blank"> The best search engine </a>  The above search results are provided by <a href="http://so.ofstack.com/" target="_blank"> baidu </a> drive  </div>
</body></html>

This site this site note: jquery is used.


Related articles: