Hi,
I design websites in HTML and I've got a following problem:
I want to run advertisements on my site. Is there any way
to use some script, so all the spaces where ads will be placed
through the site will refer to only one file, so after editing that file
all ads will change on all of the pages at once?
I'm not sure if I stated myself clear
I tried to insert a JavaScript call
<SCRIPT LANGUAGE="JavaScript" SRC="my-file-with-ads.js">
<!--
/-->
</SCRIPT>
into every page on my site but for example etology.com has their ad
code also in the JavaScript format and when I put their JavaScript code into my *.js file that is called on every page on my site, Internet Explorer crash and doesn't display site layout properly (Firefox for example displays everything ok)
It looks like that:
I've got this
<SCRIPT LANGUAGE="JavaScript" SRC="my-file-with-ads.js">
<!--
/-->
</SCRIPT>
in source code of every page, and the file "my-file-with-ads.js" contains:
document.write("<div id='ad-up'><script language='javascript' type='text/javascript' charset='utf-8' src='http://pages.etology.com/gtbjs/3244543510.php'></script></div>")
I tried to break the </script> and it still doesn't work in IE
Is there any other way to put JavaScript format ads into every page on the website that will be easy to edit?
Thanks