opencv/doc/_static/insertIframe.js

13 lines
350 B
JavaScript
Raw Normal View History

2013-08-21 20:44:09 +08:00
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);
}
}