Div pop-up window in frameset outer solution
The homepage is laid out through the framset webpage. Now there is a temporary message window, And the Ajax return will pop up. But there is a problem. As a webpage element, div is dependent on frame. How can we make it at the top of the entire View window? Frmae connects to the webpage and blocks more than one part. A solution is provided here. Record it first.
<HTML>
The frame to be overwritten by the homepage div is placed in the introduced page and called with IFRAME.
---Call.html ---
<HTML> <body> <Div id = 'popi' class = ''style =" position: absolute; float: Left; Top = 5; left = 25; display = 'none'; Z-index: 2; "> pop-up Div </div> <IFRAME src =" mainindex.html "width = 100% Height = 100% marginwidth = 0> </body>
--Mainindex.html --
<Frameset rows = "30, *" style = "Z-index: 1"> <frame src = "topframe.html" style = "Z-index: 1 "> <frameset Cols =" 30, * "style =" Z-index: 1 ">
<Frame src = "menuframe.html" style = "Z-index: 1"> <frame src = "mainframe.html" style = "Z-index: 1">
</Frameset> <frame src = "footframe.html" style = "Z-index: 1"> </frameset>
JS action
<A onclick = "top.divframe.doc ument. getelementbyid ('popid '). style. Display = 'block'"> display Div </a>
-- The end!