mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
14 lines
352 B
JavaScript
14 lines
352 B
JavaScript
function insertIframe (elementId, iframeSrc)
|
|
{
|
|
var iframe;
|
|
if (document.createElement && (iframe = document.createElement('iframe')))
|
|
{
|
|
iframe.src = unescape(iframeSrc);
|
|
iframe.width = "100%";
|
|
iframe.height = "511px";
|
|
var element = document.getElementById(elementId);
|
|
element.parentNode.replaceChild(iframe, element);
|
|
}
|
|
}
|
|
|