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:
复制代码 代码如下:
google
yahoo
msn
news.com
dynamic drive
open tab links in browser window instead.
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: 复制代码 代码如下:
google
yahoo
msn
news.com
dynamic drive