kod podkradłem stąd sfd.pl.
Kod "Pop-up'a"
Kod
var strpix = '<div id="showimage" style="position:absolute;width:800px;left:100px;top:150px;z-index:10000000;"><table class="a7" border="0" width="800" bgcolor="#000080" cellspacing="0" cellpadding="0"><tr><td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="36px"><tr><td id="dragbar" style="cursor:hand; cursor:pointer" width="100%" onMousedown="initializedrag(event)"><ilayer width="100%" onSelectStart="return false"><layer width="100%" onMouseover="dragswitch=1;if (ns4) drag_dropns(showimage)" onMouseout="dragswitch=0"><font face="verdana" color="#FFFFFF"><strong><small> REKLAMA</small></strong></font></layer></ilayer></td><td style="cursor:hand"><a href="#" onClick="hidebox();return false"><img src="../../close.gif" width="16px" height="14px" border="0"></a></td></tr><tr><td align="center" class="a7" width="100%" bgcolor="#FFFFFF" style="padding:4px" colspan="2">TRESC</td></tr></table></td></tr></table></div>';
document.write(strpix);
document.write(strpix);
No i teraz w treść chciałbym zamieścić coś takiego: (AdSense)
Kod
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxx";
google_ad_slot = "xxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
google_ad_client = "pub-xxxxxxxxxxxxx";
google_ad_slot = "xxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
No ale nic się nie wyświetla, macie na to jakąś radę ?
P.S
a gdy normalnie wkleje tą reklamę jako kod html to się wyświetla