Autor | Zpráva | ||
---|---|---|---|
jan99 Profil * |
#1 · Zasláno: 10. 1. 2013, 19:18:09
Zdravim, vsiml sem si ze klasicky google Adsense kod vytvari iframe ktery pak v DOM nema atribut SRC.
Zajimalo by me jak se to da udelat? Zkousel sem ruzne "pokusy" a bez uspechu.. Tohle je zkopirovany obsah dom: <ins style="display:inline-table;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"> <ins id="aswift_0_anchor" style="display:block;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px"> <iframe allowtransparency="true" frameborder="0" height="280" hspace="0" marginwidth="0" marginheight="0" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){w.location.replace(h)}}" scrolling="no" vspace="0" width="336" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;"> #Dokument ... </iframe> </ins> </ins> Tady vidite ze v iframe tagu neni vubec src. Diky |
||
Joker Profil |
#2 · Zasláno: 10. 1. 2013, 19:25:18
jan99:
„Zajimalo by me jak se to da udelat?“ No… prostě tam ten atribut nenapsat? <iframe><!-- Tohle je iframe bez src --></iframe> |
||
_es Profil |
#3 · Zasláno: 10. 1. 2013, 22:01:10
jan99:
„Tady vidite ze v iframe tagu neni vubec src.“ Asi sa tam ten atribút nastaví neskôr cez JS, lebo iframe bez JS nemá veľký zmysel - vyplýva to aj z toho, že je tam atribút onload. |
||
Časová prodleva: 11 let
|
0