parent
f27a54be97
commit
0886177c5a
4 changed files with 30 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||||||
|
function insertIframe (elementId, iframeSrc)
|
||||||
|
{ |
||||||
|
var iframe; |
||||||
|
if (document.createElement && (iframe = document.createElement('iframe'))) |
||||||
|
{ |
||||||
|
iframe.src = iframeSrc; |
||||||
|
iframe.width = "100%"; |
||||||
|
iframe.height = "511px"; |
||||||
|
var element = document.getElementById(elementId); |
||||||
|
element.parentNode.replaceChild(iframe, element); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue