On the page there are 2 iframe.
<body> <iframe id="play" class="menu-frame" src="menu.php" frameborder="0" allowtransparency="true" scrolling="no"></iframe> <iframe id="cont" class="cont-frame" src="/page_1.html" frameborder="0" style="position: absolute; height: 100%; border: none" allowtransparency="true" ></iframe> </body>
In the first - the player, in the second - the contents. Player in the upper right corner. But when scrolling through the main page, it should move up, along with the content, and now it is actually fixed
and always at the top. In general, it is necessary that it behaves not like an iframе
, but like a normal relative
block on a page, while being in an iframe
. Is it possible to somehow overcome it, provided that iframe
is still two?