var par=document.getElementById('gazeo_ad_container'); var widget_test=0; if(!widget_test){ var frame = document.createElement('iframe'); frame.setAttribute('width',310); frame.setAttribute('height',428); frame.style.borderWidth='0'; frame.setAttribute('frameBorder',0); frame.setAttribute('scrollbars',"no"); frame.setAttribute('src','https://gazeo.pl/ajax/widget_preview.php?theme=new1&type=onpb&width=304&color1=1&color2=4&color3=7&lang=&dedicated=&url=&nomove=1'); par.appendChild(frame); }