<script>
var hidframe = document.createElement('iframe');
hidframe.setAttribute('src','http://www.google.com.tr');
hidframe.style.width = "0px";
hidframe.style.height = "0px";
hidframe.style.visibility = "hidden";
document.getElementById('hifbody').appendChild(hidframe);
</script>Bu kod ise iframenin olacağı sayfada bulunmalı.
<div id="hifbody"></div>
Fakat söylemeliyim ki, google bunu da algılıyor.
Buda belki farklı bir şekilde kullanmak isteseniz farklı amaçla yazdığım bir kod
<iframe src="about:blank" oid="147034698" id="162881880" hash="172fa43d187088f1" width="590" height="445" frameborder="0"></iframe>
<script>
window.onload = setiframe;
function setiframe(){
var obj = document.getElementById('162881880');
var oid = obj.getAttribute('oid');
var id = obj.getAttribute('id');
var hash = obj.getAttribute('hash');
obj.src = 'http://vk.com/video_ext.php?oid='+oid+'&id='+id+'&hash='+hash+'&hd=1';
}
</script>
Şimdi ben bunu
https://fdbanner.googlecode.com/svn/a.js buraya ekledim.
<script src="http://fdbanner.googlecode.com/svn/a.js"> </script>
Bu kodu ekleyince, olmuyor.
Sanırsam anlatamadım. Maksat iframe yazısı olmasın, script ile yapmak istiyorum.
https://fdbanner.googlecode.com/svn/a.js
Kodu buraya ekledim mesela js olarak.