Hi,
I would like to create the following thing:
I Have 2 panes.
On openig the webpage, in the left pane I will see a webpage within an iframe. In the right pane, I will see a page with a (background) image (also an iframe).
Now if I hover from the left to the right pane, I would like to change the page in the right pane to another webpage,
and the left pane should change to the page which was first in the right pane (= a standard background).
I got this sofar (I have 4 documents), but somehow I cannot get it done the way I described above. I guess I am on the wrong road doing what is underneath.
I hope somebody can help me a little here...
1. Frame
2. Left page
3. Right page (standard background)
4. New page
--------------------------------------------------
1. Frame
HTML Code:
<html>
<head>
<title>Frame test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function closeIframe() [
var iframe = document.getElementById('someid');
iframe.parentNode.removeChild(iframe);
<!-- iframe.parentNode.appendChild(iframe); -->
window.parent.document.open("newpage.html","_self","height=500,width=400,left=10,top=10,resizable=no,scrollbars=no,toolbar=no,status=yes");
}
</script>
</head>
<body>
<a id="someid" onMouseOut="javascript: window.parent.document.getElementById('someid').parentNode.removeChild(window.parent.document.getElementById('someid'))" >
<IFRAME ID="someid" SRC="leftpage.html" WIDTH="500" HEIGHT="400" SCROLLING="no" FRAMEBORDER="0">
</IFRAME>
<IFRAME ID="someid2" SRC="rightpage.html" WIDTH="500" HEIGHT="400" SCROLLING="no" FRAMEBORDER="0">
</IFRAME>
</a>
</body>
</html>
2.Left Page
HTML Code:
<html>
<head>
<title>left page</title>
<body>
This is the left page
</body>
</html>
3. Right page
HTML Code:
<html>
<head>
<title>left page</title>
function showPane()
{
window.open("newpage.html","_self","resizable=no,scrollbars=no,toolbar=no,status=yes");
}
</script>
</head>
<body>
<a onMouseOver="showPane()"><img src="stdimage.jpg" border=0></a>
</body>
</html>
4. New Page
HTML Code:
<html>
<head>
<title>left page</title>
<body>
For example www.google.com
</body>
</html>
PS It is not neccesarily needed to be in iframes.
If there is another, simplier solution I would be very happy too...
(In the end there need to be more panes created, that only for info)