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
<script> <br><br>/*********************************************** <br>* Tabbed Document Viewer script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com) <br>* This notice MUST stay intact for legal use <br>* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code <br>***********************************************/ <br><br>var selectedtablink="" <br>var tcischecked=false <br><br>function handlelink(aobject){ <br>selectedtablink=aobject.href <br>tcischecked=(document.tabcontrol && document.tabcontrol.tabcheck.checked)? true : false <br>if (document.getElementById && !tcischecked){ <br>var tabobj=document.getElementById("tablist") <br>var tabobjlinks=tabobj.getElementsByTagName("A") <br>for (i=0; i<tabobjlinks.length; i++) <br>tabobjlinks[i].className="" <br>aobject.className="current" <br>document.getElementById("tabiframe").src=selectedtablink <br>return false <br>} <br>else <br>return true <br>} <br><br>function handleview(){ <br>tcischecked=document.tabcontrol.tabcheck.checked <br>if (document.getElementById && tcischecked){ <br>if (selectedtablink!="") <br>window.location=selectedtablink <br>} <br>} <br><br></script>
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:
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:
启科网络商城系统由启科网络技术开发团队完全自主开发,使用国内最流行高效的PHP程序语言,并用小巧的MySql作为数据库服务器,并且使用Smarty引擎来分离网站程序与前端设计代码,让建立的网站可以自由制作个性化的页面。 系统使用标签作为数据调用格式,网站前台开发人员只要简单学习系统标签功能和使用方法,将标签设置在制作的HTML模板中进行对网站数据、内容、信息等的调用,即可建设出美观、个性的网站。










