Javascript iframe website background interface framework code

Source: Internet
Author: User
Tip: you can modify some code before running

<html> <meta http-equiv=Content-Type content=text/html;charset=gb2312> <title>The mobaihuo website is provided free of charge at the backend of _ www.111cn.net.</title> <!--这里的样式的重点是指当鼠标移到三角按钮时变成手掌--> <style type="text/css">. NavPoint {COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt}. a2 {BACKGROUND-COLOR: A4B6D7 ;}</style> <!--onresize 事件 发生在窗口被调整大小的时候。carnoc是左边FRAME的ID。--> <body scroll=no onResize=javascript:parent.carnoc.location.reload()> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR> <TD align=center width="100%" height=25 bgcolor="#B1C1E0" ><B>The mobaihuo website is provided free of charge in the background.</b> </tD> </tR> </tABLE> <!--以下代码就是重点,屏幕切换点击后相应的向左或者向右展开--> <script> if(self!=top){top.location=self.location;} function switchSysBar(){ if (switchPoint.innerText==3){ switchPoint.innerText=4 document.all("frmTitle").style.display="none" }else{ switchPoint.innerText=3 document.all("frmTitle").style.display="" }} </script> <!--以上代码就是重点,屏幕切换点击后相应的向左或者向右展开--> <table border="0" cellPadding="0" cellSpacing="0" height="100%" width="100%"> <tr> <td width="30" align="middle" vAlign="center" noWrap id="frmTitle"><!--注意这里的ID,它返回给上面那段javascript的--> <!--以下是左边的FRAME,你只要做一个宽为180PX的页面嵌套进去就可以了。当然你也可以修改这句里WIDTH的值为你叶子的宽度--> <iframe frameBorder="0" id="carnoc" name="carnoc" scrolling=auto src="" > </iframe> </td> <!--同志们请注意下面这个TD,它的颜色就是中间跑来跑去分栏部分的颜色,你可以在这里将颜色改成与你页面融洽的颜色--> <td width="46" bgcolor="#708EC7" > <!--哈哈,看到了吧,中间的那个跑来跑去的栏实际上去一个TABLE哦!TABle的宽度就是那条栏的宽度--> <table width="9" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="200" onClick="switchSysBar()"><!--这里调用上面的switchSysBar过程--> <font > <!--这里你可以把3改成1或者其他数字来看看就发现了是形状问题了-->3. Screen switching</font></td> </tr> </table></td> <td width="630" > </td> </tr> </table> </html>
Tip: you can modify some code before running
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.