|

Nuke sitemizde en sağında veya en solunda google, normal resim vb. gibi reklamlar göstermek istiyorsanız doğru yerdesiniz.
Bu işlemi çoğu zaman javascript kodlarla halletmeye çalışırız ve birtakım sorunlarla karşılaşırız. Birde gözardı ettiğimiz birşey olurki o da google'nin adsense reklam sözleşmesinde javascipt kodları kabul etmemesidir . Ee javascript olmuyorsa o zaman ne yapacaz? Diye sorduğunuzu duyar gibiyim. Biz bu işlemi "Div" etiketiyle halletmeye çalışacaz. Bu sayede javascript kullanmadan nuke sitemizin en sağında veya en solunda üst tarafta sayfayla beraber hareket etmeyen yani sabit duran google adsense veya normal bir jpg, gif vs reklamını gösterebilecez. Yapılması gerekenler neler mi? Hemen anlatayım. Öncelikle anadizin > themes> kullandığımız tema > header.html'yi açalım. en üste veya başka bir uygun yere şunları ekleyelim: Sağ tarafta Google Adsense Reklamını göstermek istiyorsak: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; right:0px; top:15px" id="katman1"> <script type="text/javascript"><!-- google_ad_client = "pub-5371279163672627"; /* 120x600, oluşturulma 12.05.2008 */ google_ad_slot = "6838795048"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div>
Sol tarafta Google Adsense Reklamını göstermek istiyorsak: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; left:0px; top:15px" id="katman1"> <script type="text/javascript"><!-- google_ad_client = "pub-5371279163672627"; /* 120x600, oluşturulma 12.05.2008 */ google_ad_slot = "6838795048"; google_ad_width = 120; google_ad_height = 600; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></div>
Sağ tarafta normal Resim Reklamını göstermek istiyorsak: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; right:0px; top:15px" id="katman1"> <img border="0" src="RESMİN ADRESİ BURAYA"></div>
Sol tarafta normal Resim Reklamını göstermek istiyorsak: <div style="position: absolute; width: 100px; height: 100px; z-index: 1; left:0px; top:15px" id="katman1"> <img border="0" src="RESMİN ADRESİ BURAYA"></div> Hepsi bu kadar. Böylece reklamlarımızı dilediğimiz gibi yayınlama özgürlüğüne sahibiz :) hepinize kolay gelsin.
|