javascript - Ad Script Not Working -
javascript - Ad Script Not Working -
so have thing called "adhitz" on website (i'm not old plenty adsense), , need set advertisement code on every page in order work. thing is, have alter script link time time, , didn't want have edit every single webpage every time link changed, here's did:
original:
<script type="text/javascript" src="http://adhitzads.com/745025"></script>
newer:
<script id="ad1"></script>
in css stylesheet file:
#ad1 { type="text/javascript"; src="http://adhitzads.com/745025"; }
the thing is, ads no longer showing up! should do?
here this.. include script tag on each 1 of pages:
<script type="text/javascript" src="ads.js"></script>
then create file called ads.js , set in it
var script = document.createelement("script"); script.type = "text/javascript"; script.src = "http://adhitzads.com/745025"; document.head.appendchild(script);
then everytime advertisement company changes url, open ads.js , alter url there.
javascript html css scripting ads
Comments
Post a Comment