(function(d) { var mainDiv = ''; mainDiv += '
'; var videoIframe = document.createElement('iframe'); videoIframe.setAttribute('width','400px'); videoIframe.setAttribute('height','300px'); videoIframe.setAttribute('allowFullScreen','true'); videoIframe.setAttribute('webkitallowfullscreen','true'); videoIframe.setAttribute('mozallowfullscreen','true'); videoIframe.setAttribute('rel','nofollow'); videoIframe.setAttribute('src','http://iqna.ir/fa/news/play/3746206/1030350'); setTimeout(function(){ document.getElementById('video-display-embed-code_1030350').innerHTML = mainDiv; document.getElementById('video-display-embed-code_1030350').getElementsByClassName('main_div_embed_iframe')[0].appendChild(videoIframe); }, 100); })();