mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 09:49:13 +08:00
18 lines
346 B
JavaScript
18 lines
346 B
JavaScript
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);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|