1. Refresh the framework
Copy codeThe Code is as follows:
Onload = function ()
{
Try
{
Parent. Link. location. reload ();
}
Catch (e)
{
}
}
2. Get the URL and process the characters
Copy codeThe Code is as follows:
Var url = parent. frames ["right"]. location. href;
// Document. write ('<Font size = "2" color = "red">' + url + "</Font> ");
Url = url. substring (url. indexOf ("TBSW") + 21, url. length );
3. Set the Title
Top.frames.left.doc ument. title = url;
3. Close the top rule
Copy codeThe Code is as follows:
<Script type = "text/javascript">
<! --
Function ctrl ()
{
Var img = document. getElementById ("imgctop ");
Var mainfrm = top. parent. window. frames ["Frame"];
// Alert (mainfrm );
If (mainfrm. rows = "55 ,*")
{
Mainfrm. rows = "0 ,*";
Img. src = "Images/topopen.jpg ";
Img. alt = "Expand the top rule ";
}
Else
{
Mainfrm. rows = "55 ,*";
Img. src = "Images/topclose.jpg ";
Img. alt = "turn off the top rule ";
}
}
// -->
</Script>
4, left and right
Copy codeThe Code is as follows:
<Script type = "text/javascript">
<! --
Function ctrl ()
{
Var img = document. getElementById ("imgctrl ");
If(parent.doc ument. all. bottom. cols = "170,7 ,*")
{
Parent.doc ument. all. bottom. cols = "0, 7 ,*";
Img. src = "Images/open.jpg ";
Img. alt = "Expand left then ";
}
Else
{
Parent.doc ument. all. bottom. cols = "170,7 ,*";
Img. src = "Images/close.jpg ";
Img. alt = "Disable the left rule ";
}
}
// -->
</Script>