2010-10-25 11:54:47 +02:00
|
|
|
function insertIframe (elementId, iframeSrc)
|
|
|
|
{
|
|
|
|
var iframe;
|
|
|
|
if (document.createElement && (iframe = document.createElement('iframe')))
|
|
|
|
{
|
2010-10-25 15:26:24 +02:00
|
|
|
iframe.src = unescape(iframeSrc);
|
2010-10-25 11:54:47 +02:00
|
|
|
iframe.width = "100%";
|
|
|
|
iframe.height = "511px";
|
|
|
|
var element = document.getElementById(elementId);
|
|
|
|
element.parentNode.replaceChild(iframe, element);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|