Copy codeThe Code is as follows:
<% @ Page Language = "vb" AutoEventWireup = "false" Codebehind = "WebForm4.aspx. vb" Inherits = "HIG_Receipt.WebForm4" %>
<! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN">
<Html>
<Head>
<Title> WebForm4 </title>
<Meta name = "GENERATOR" content = "Microsoft Visual Studio. NET 7.1">
<Meta name = "CODE_LANGUAGE" content = "Visual Basic. NET 7.1">
<Meta name = vs_defaultClientScript content = "JavaScript">
<Meta name = vs_targetSchema content = "http://schemas.microsoft.com/intellisense/ie5">
<Style type = text/css>
. ResizeDivClass {
Width: 3px;
Margin: 0px 0 0px 0;
Background: # ffff33;
Border: 5px;
Cursor: e-resize;
</Style>
<Script type = text/javascript language = javascript>
Var mousedown = false;
Var aaa;
Function down (){
Mousedown = true;
Aaa = event. clientX-td1.offsetWidth;
Event. srcElement. setCapture ();
}
Function move (){
If (mousedown = true ){
Td1.style. width = Math. max (1, event. clientX-aaa );
}
}
Function up (){
Event. srcElement. releaseCapture ();
Mousedown = false;
}
</Script>
</Head>
<Body MS_POSITIONING = "GridLayout">
<TABLE width = "100%" height = "100%">
<Tr>
<Td id = "td1">
First iframe
<Iframe style = "WIDTH: 100%; HEIGHT: 100%" src = "" frameBorder = "0">
</Iframe>
</Td>
<Td class = "resizeDivClass" onmousedown = "down ()" onmousemove = "move ()" onmouseup = "up ()">
</Td>
<Td>
Second iframe
<Iframe style = "WIDTH: 100%; HEIGHT: 100%" src = "" frameBorder = "0">
</Iframe>
</Td>
</Td>
</Table>
</Body>
</Html>