You can click to hide the Left or Right columns of the page. This effect is common in practical applications. Next we will introduce the implementation code in detail. For more information, see, you can click to hide the Left or Right columns of the page (in the same TABLE)
The Code is as follows:
Script
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
Click the button that hides the left and right columns as an image, modify JS, and add ID to IMG. Here id = aa can also be changed to another name. For more information, see:
Script
Function switchSysBar (){
If (document. all. aa. src. indexOf ("bl_1 ")! =-1 ){
Aa. src = "images/al_1.gif"
Document. all ("frmTitle"). style. display = "none"
} Else {
Aa. src = "images/bl_1.gif"
Document. all ("frmTitle"). style. display = ""
}
}
Script