I've been given the following code that should make a skyscraper advert appear on my website. The problem i'm having is that it's Javascript and i have never touched it before. I'm guessing i need to put the random number generator bit of the code in the header but i don't know where to put everything else.... If i put it in the <div> i've made to contain the skyscraper will it work? If not where do i put it?
Thanks in advance.
Thanks in advance.
Code:
RANDOM NUMBER GENERATOR - Use only once per page between the head commands
<script language="Javascript">
<!--
var axel = Math.random() + "";
var ord = axel * 1000000000000000000;
//-->
</script>
***************************************************
a.pop.tmus/achemy-skyscraper 160x600
***************************************************
<SCRIPT LANGUAGE="JavaScript">
document.write('<SCR'+'IPT LANGUAGE="JavaScript1.1" SRC="a_rather_long_url;tile=1;dcopt=ist;sz=160x600;ord=' + ord + '?" ><\/SCRIPT>');
</SCRIPT>
<SCRIPT>
if ((!document.images && navigator.userAgent.indexOf("Mozilla/2.") >= 0) || navigator.userAgent.indexOf("WebTV")>= 0) {
document.write('<A HREF="a_rather_long_url;tile=1;sz=160x600;ord=' + ord + '?" TARGET="_blank">');
document.write('<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=' + ord + '?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="a_rather_long_url;tile=1;sz=160x600;ord=123456789?" TARGET="_blank">
<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=123456789?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
</NOSCRIPT>
Comment