Merhaba herkese,
Elimde örneğin 5 adet iframe ile verilmiş reklam kodu var,
bunları her 30 saniyede bir yenilenmesini yani değişmesini istiyorum.
Elimde aşağıdaki gibi bir kod var fakat bu script olarak çekiyor ben iframe olarak çekme istiyorum.
<meta http-equiv="refresh" content="30" >
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') + 
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>
<script type='text/javascript'>
googletag.cmd.push(function() {
googletag.defineSlot('/4822869/160*600_Sol', [160, 600], 'div-gpt-ad-1475060445137-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<!-- /4822869/160*600_Sol -->
<div id='div-gpt-ad-1475060445137-0' style='height:600px; width:160px;'>
<script>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1475060445137-0'); });
</script>
</div>




Elimdeki iframe kodları bu şekilde. Bunları her 30 saniyede değişmek istiyorum.
<iframe scrolling='no' frameBorder='0' style='padding:0px; margin:0px; border:0px;border-style:none;border-style:none;' width='728' height='90' src="http://wlgoldenbahis.adsrv.eacdn.com/I.ashx?btag=a_6521b_1325c_&affid=4854&siteid=6521&adid=1325&c=" ></iframe>