|
|||
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 | 23.12.2011 23:13 |
CSS - CMS - lange Menus Balken/BG oben? | shinobi | CSS | 3 | 13.10.2011 21:12 |
DIV Höhe 100% | Daniel86 | CSS | 12 | 29.07.2011 12:40 |
CSS Text nebeinander? | carstiee09 | CSS | 13 | 13.11.2009 19:18 |
2 div container, 2. orientiert sich am 1. | kemai | CSS | 9 | 21.06.2005 14:28 |