在另一个网站中显示网站的最有效/最快的方法是什么?
我正在开发我的作品集网站,我认为在我的作品集网站中展示我创建的网站会很好。
因此,假设我将在标题中包含我的投资组合网站的导航,并在其下方包含我的投资组合列表中的另一个网站。
我提到过并且听说它们可以完成这样的工作,但我不知道如何使用它们。
因此,任何人都可以建议一种高效、浏览器友好、不会占用大量服务器资源来显示不同网站的方法(并且可以完成这项工作)。
此外:我计划这样做的方式是通过链接到不同的网站,例如 http://webpage.com/portfolio.php?url=http://anotherWebpage.com 因此,当用户单击它时,(或其他内容)中显示的网站将是 http://anotherWebpage.com 。另外,如果可能的话,有人可以建议“AJAX”方法,该方法不需要页面刷新,并且在用户单击不同链接后立即显示不同的网页(或其他内容;D)
谢谢)))
I am developing my portfolio website and I thought that it would be nice to show websites I've created within my portfolio website.
So say I will have header with navigation of my portfolio website and beneath it a or with another website from my portfolio list.
I mentioned and as I've heard that they can do such job, but I have no idea of how to use them.
So could anyone please suggest the way that is efficient, browser friendly, wouldn't take a lot of my server resources to display different websites (and will do the job).
Additionally: the way that I was planning to do this is by having links to different websites like http://webpage.com/portfolio.php?url=http://anotherWebpage.com so when user clicks it the website shown in the (or something else) would be http://anotherWebpage.com . Also if possible could someone suggest "AJAX" method that will not require page refresh and will show different webpage in (or something else ;D ) instantly after user clicks on different links
Thank You )))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 JavaScript 和 iframe
Use javascript and iframe
我想说 iframe 是你最好的选择。
您可能希望有一个包含工具栏和所有导航元素的页面,然后是一个可以在单击链接时更改其源的 iframe。
您可能听说过 iframe 并不总是能与所有浏览器兼容,但有一些方法可以消除出现的问题。
有时它们确实是做事的最佳方式!
在此处查看一些提示< /a> 和此处
I would say that the iframe is your best bet.
You would want to have a page with your toolbar and all your navigational elements and then an iframe that can change its source when you click a link.
You've probably heard that iframes don't always play nice with every browser but there are some ways you can eliminate the problems that come up.
Sometimes they really are the best way to do things!
Check out some tips here and here