源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

在你的网页中嵌入外部网页的方法

  • 时间:2022-02-16 00:04 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:在你的网页中嵌入外部网页的方法
Description: Using a tabbed interface, this DHTML script lets you display external web pages inline on your page, with the help of the IFRAME tag. We threw in a feature that allows the user to also load the webpage in the entire browser window when desired. This script works in IE5+ and NS6+, and degrades well with the rest (as tabs are simply regular links). Cool!  Step 1: Add the below CSS and DHTML script to the <HEAD> section of your page:
[url=http://www.google.com]<li><a href="http://www.yahoo.com" onClick="return handlelink(this)">Yahoo</a></li>  <li><a href="http://www.msn.com" onClick="return handlelink(this)">MSN</a></li>  <li><a href="http://www.news.com" onClick="return handlelink(this)">News.com</a></li>  <li><a href="http://www.dynamicdrive.com" onClick="return handlelink(this)">Dynamic Drive</a></li>  </ul>  <iframe id="tabiframe" src="http://www.google.com" width="98%" height="350px"></iframe>  <form name="tabcontrol" style="margin-top:0">  <input name="tabcheck" type="checkbox" onClick="handleview()"> Open tab links in browser window instead.  </form> 
The above HTML code renders the tab links and IFRAME tag used to contain the external documents. Change the URLs to your own. Now, if you have lots of tab links, you can get them to appear on separate lines, by adding a divider:
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部