i signed up at adbrite.com and got an ad code for my website ( written in javascript ). i dont want to use the javascript code in my source code but use it at as an external .js file. in my source code i entered this javascript in my source code :
<script src="http://www.delon.in/ads/leaderboard.js"></script>
and saved the code in file in leaderboard.js at http://www.delon.in/ads/leaderboard.js. but i cannot view the ads on my website. i saw at w3schools.com that the external javascript file should not have <script></script> tags. i tried editing the code but of no use. it would be great if someone could edit the original ad code so it can run through the external .js file.
original ad code by adbrite ( written in javascript ) :
<!-- Begin: AdBrite -->
<script type="text/javascript">
var AdBrite_Title_Color = '660000';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFCC66';
var AdBrite_Border_Color = '660000';
var AdBrite_URL_Color = '008000';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=658305&zs=3732385f3930" type="text/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=658305&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard-w.gif" style="background-color:#660000;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite -->
please help me, im totally a newbie at programming.:biggrin:
<script src="http://www.delon.in/ads/leaderboard.js"></script>
and saved the code in file in leaderboard.js at http://www.delon.in/ads/leaderboard.js. but i cannot view the ads on my website. i saw at w3schools.com that the external javascript file should not have <script></script> tags. i tried editing the code but of no use. it would be great if someone could edit the original ad code so it can run through the external .js file.
original ad code by adbrite ( written in javascript ) :
<!-- Begin: AdBrite -->
<script type="text/javascript">
var AdBrite_Title_Color = '660000';
var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFCC66';
var AdBrite_Border_Color = '660000';
var AdBrite_URL_Color = '008000';
</script>
<span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=658305&zs=3732385f3930" type="text/javascript"></script><!--
--><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=658305&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard-w.gif" style="background-color:#660000;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite -->
please help me, im totally a newbie at programming.:biggrin: