我已经构建了一个当前使用Iframe加载外部网站的应用程序。动态地将外部网站加载到Iframe中 - 有更好的方法吗?
这种方法实际上会减慢我的应用程序 - 最多需要5秒来加载一个页面, 可能会在它自己的选项卡/窗口中加载1秒钟的<。
有什么解决方案我可以实现哪些会让速度更快?!?
谢谢!
编辑:
这里是我目前使用的代码:
<script type="text/javascript">
// Change iFrame on a Button Click Event
$("#myButton").click(function(event){
$("#myIFrame").attr('src', $('#url').val());
});
</script>
<input class="url_top" type="text" id="url" value="http://">
<a id="myButton" href="#">Load</a>
<iframe id="myIFrame" height="80%" width="100%" class="netframe" src="page.php"></iframe>
您还没有给予足够详细的功能。什么是应用程序?它与外部网站有什么关系? – SLaks 2010-09-27 01:22:57