在你的网页中嵌入外部网页的方法_javascript技巧
程序员文章站
2022-05-27 08:36:32
...
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 section of your page:
To customize the look of the tabs (ie: color), edit the CSS. There is no need to modify the script at all.
Step 2: Add the below code to the section of your page:
Step 1: Add the below CSS and DHTML script to the section of your page:
复制代码 代码如下:
Step 2: Add the below code to the section of your page:
复制代码 代码如下:
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:
复制代码 代码如下:
推荐阅读
-
使用HTML5在网页中嵌入音频和视频播放的基本方法
-
网页中插入透明Flash的方法和技巧
-
js 实现打印网页中定义的部分内容的代码_javascript技巧
-
js 实现打印网页中定义的部分内容的代码_javascript技巧
-
javascript实现网页中的选项卡(两种方法)
-
JS实现网页表格自动变大缩小的方法_javascript技巧
-
网页屏蔽(左右键,代码等)的非JS方法_javascript技巧
-
javascript实现在网页任意处点左键弹出隐藏菜单的方法_javascript技巧
-
javascript+css 网页每次加载不同样式的实现方法_javascript技巧
-
js类中获取外部函数名的方法_javascript技巧