HTML tip: Click to contract the Iframe framework

Source: Internet
Author: User

  Helper House (Bkjia.com) TutorialIframe is the Html syntax that we often use, especially in the background of some websites. Today, let's talk about how to use js and iframe to make background framework shrinkage effect, in order to facilitate your learning, the Liehuo.net editor has added comments to the code. See the code below:

<Html> <meta http-equiv = Content-Type content = text/html; charset = gb2312> <title> mow.huo website is provided free of charge at the backend of _ _ www.bkjia.com </title> <style type = "text/css">. navPoint {COLOR: white; CURSOR: hand; FONT-FAMILY: Webdings; FONT-SIZE: 9pt }. a2 {BACKGROUND-COLOR: A4B6D7 ;}</style> <body style = "MARGIN: 0px" scroll = no onResize = javascript: parent. carnoc. location. reload ()> <TABLE style = "BORDER-COLLAPSE: collapse "cellSpacing = 0 cellPadding = 0 width =" 100% "border = 0> <TR> <TD align = center width =" 100% "height = 25 bgcolor =" # B1C1E0 "style = "COLOR: #330099; font: 10.5pt "> <B> helper home www.bkjia.com </B> </TD> </TR> </TABLE> <table border =" 0 "cellPadding =" 0 "cellSpacing =" 0 "height =" 100% "width =" 100% "> <tr> <td width =" 30 "align =" middle "vAlign =" center "noWrap id =" frmTitle "> <iframe frameBorder = "0" id = "carnoc" name = "carnoc" scrolling = auto src = "" style = "HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 180px; Z-INDEX: 2 "> </iframe> </td> <td width =" 46 "bgcolor =" #708EC7 "style =" WIDTH: 9pt "> <table width =" 9 "height =" 100% "border =" 0 "cellpadding =" 0 "cellspacing =" 0 "> <tr> <td width =" 200 "style =" HEIGHT: 100% "onClick =" switchSysBar () "> <font style =" FONT-SIZE: 9pt; CURSOR: default; COLOR: # ffffff "> <span class =" navPoint "id =" switchPoint "title =" close/Open left column "> 3 </span> screen switching </font> </td> </tr> </table> </td> <td width = "630" style = "WIDTH: 100% "> </td> </tr> </table> 

Tip: the code can be modified before running!

Of course, there are still many ways to implement such functions. the Helper's house will be sorted out for you to facilitate your study!

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.