Hello guys, I need some help here.
The problem with my js code is that on some pages the code is created 2-4 times, usualy in phpbb forums and pages that has iframe pages. I think it has problems with pages with 2-3 head,body tags.
This is the code that I inserted in my ad hosting server:
Code:
<script type="text/javascript">
var object = document.createElement('div');
object.innerHTML = 'The banner script is HERE';
var body = document.getElementsByTagName('body')[0];
body.insertBefore(object, body.firstChild);
</script>
The code that is on the page is:
Code:
<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
<script type="text/javascript">
var object = document.createElement('div');
object.innerHTML = 'The Banner script is HERE';
var body = document.getElementsByTagName('body')[0];
body.insertBefore(object, body.firstChild);
</script>
</div></div>
The <div> tags are created automaticaly by the ad server.
What I need? Maybe someone has a better ideea on how to do it.
I need to put a banner ad on my free hosting accounts. The banner should be at the top of every page and it should NOT interfere with the content of the client page.
Please help me, I realy don't know what should I do.
Regards,
kaze
|