|
|||
DIV-Container aus iFrame hängen
Hallo,
ich habe ein Problem mit einem JS und stehe hier irgendwie auf dem Schlauch. Ich versuche das Problem mal etwas vereinfacht darzustellen. Im Firebug habe ich den folgenden Code HTML-Code:
<html> <body> ...... <iframe id="masterFrame"> <html> <body> <iframe id="slaveFrame"> <html> <body> <!-- SOME CODE --> <div id="myDiv"> <!--- SOME CODE --> </div> </body> </html> </iframe> </body> </html> </iframe> ...... </body> </html> HTML-Code:
<html> <body> ...... <iframe id="masterFrame"> <html> <body> <iframe id="slaveFrame"> <html> <body> <!-- SOME CODE --> <div id="myDiv"> <!--- SOME CODE --> <script> var myDiv = document.getElementById("myDiv"); window.frameElement.parentNode.appendChild(myDiv); </script> </div> </body> </html> </iframe> </body> </html> </iframe> ...... </body> </html> HTML-Code:
<html> <body> ...... <iframe id="masterFrame"> <html> <body> <iframe id="slaveFrame"> <html> <body> </body> </html> </iframe> <div id="myDiv"> <!--- SOME CODE --> <script> var myDiv = document.getElementById("myDiv"); window.frameElement.parentNode.appendChild(myDiv); </script> </div> </body> </html> </iframe> ...... </body> </html> HTML-Code:
window.frameElement.parentNode.appendChild(myDiv); Danke |
Sponsored Links |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Img im div Container an größe anpassen... | Lilienfan | CSS | 2 | 24.12.2011 00:13 |
CSS - CMS - lange Menus Balken/BG oben? | shinobi | CSS | 3 | 13.10.2011 22:12 |
DIV Höhe 100% | Daniel86 | CSS | 12 | 29.07.2011 13:40 |
CSS Text nebeinander? | carstiee09 | CSS | 13 | 13.11.2009 20:18 |
2 div container, 2. orientiert sich am 1. | kemai | CSS | 9 | 21.06.2005 15:28 |