Hide a frame

Source: Internet
Author: User

<HTML>

<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Meta name = "generator" content = "Microsoft FrontPage 4.0">
<Meta name = "progid" content = "FrontPage. Editor. Document">
<Title> main-51windows.net </title>
</Head>

<Body>
<Script language = "JavaScript">
<! --
Function shtop (){
If (parent. Full. Rows. indexof ("0 ,*,")! =-1 ){
Parent. Full. rows = "64, *," + parent. Full. Rows. Split (",") [2]
Document. getelementbyid ("shtop"). value = "Hide upper part ";
}
Else {
Parent. Full. rows = "0, *," + parent. Full. Rows. Split (",") [2]
Document. getelementbyid ("shtop"). value = "show upper part ";
}
}
Function shleft (){
If (parent. Cen. Cols = "0 ,*"){
Parent. Cen. Cols = "25% ,*,"
Document. getelementbyid ("shleft"). value = "hide left ";
}
Else {
Parent. Cen. Cols = "0 ,*"
Document. getelementbyid ("shleft"). value = "show left ";
}
}
Function shbottom (){
If (parent. Full. Rows. indexof (", *, 0 ")! =-1 ){
Parent. Full. rows = parent. Full. Rows. Split (",") [0] + ", *, 64"
Document. getelementbyid ("shbottom"). value = "Hide lower part ";
}
Else {
Parent. Full. rows = parent. Full. Rows. Split (",") [0] + ", *, 0"
Document. getelementbyid ("shbottom"). value = "show lower part ";
}
}
Function maxmain (){
If (parent. Full. rows = "0, *, 0 "){
Parent. Full. rows = "64, *, 64"
Parent. Cen. Cols = "25% ,*"
Document. getelementbyid ("maxmain"). value = "hide left upper and lower ";
Document. getelementbyid ("shtop"). value = "Hide upper part ";
Document. getelementbyid ("shleft"). value = "hide left ";
Document. getelementbyid ("shbottom"). value = "Hide lower part ";
}
Else {
Parent. Full. rows = "0, *, 0 ";
Parent. Cen. Cols = "0 ,*";
Document. getelementbyid ("maxmain"). value = "show upper and lower left ";
Document. getelementbyid ("shtop"). value = "show upper part ";
Document. getelementbyid ("shleft"). value = "show left ";
Document. getelementbyid ("shbottom"). value = "show lower part ";
}
}
// -->
</SCRIPT>
<Input type = "button" name = "maxmain" id = "maxmain" onclick = "maxmain ();" value = "hide left up/down">
<Input type = "button" name = "shtop" id = "shtop" onclick = "shtop ();" value = "Hide upper part">
<Input type = "button" name = "shleft" id = "shleft" onclick = "shleft ();" value = "hide left">
<Input type = "button" name = "shbottom" id = "shbottom" onclick = "shbottom ();" value = "Hide lower part">

</Body>

</Html>

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.