Connecting Tech Pros Worldwide Forums | Help | Site Map

Complete beginner needs help

Newbie
 
Join Date: Feb 2007
Posts: 12
#1: Apr 18 '07
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.

Expand|Select|Wrap|Line Numbers
  1.  
  2. RANDOM NUMBER GENERATOR - Use only once per page between the head commands
  3.  
  4. <script language="Javascript">
  5. <!--
  6. var axel = Math.random() + "";
  7. var ord = axel * 1000000000000000000;
  8. //-->
  9. </script>
  10.  
  11. ***************************************************
  12. a.pop.tmus/achemy-skyscraper 160x600
  13. ***************************************************
  14. <SCRIPT LANGUAGE="JavaScript">
  15. document.write('<SCR'+'IPT LANGUAGE="JavaScript1.1" SRC="a_rather_long_url;tile=1;dcopt=ist;sz=160x600;ord=' + ord + '?" ><\/SCRIPT>');
  16. </SCRIPT>
  17. <SCRIPT>
  18. if ((!document.images && navigator.userAgent.indexOf("Mozilla/2.") >= 0)  || navigator.userAgent.indexOf("WebTV")>= 0) {
  19. document.write('<A HREF="a_rather_long_url;tile=1;sz=160x600;ord=' + ord + '?" TARGET="_blank">');
  20. document.write('<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=' + ord + '?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>');
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. <A HREF="a_rather_long_url;tile=1;sz=160x600;ord=123456789?" TARGET="_blank">
  25. <IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=123456789?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
  26. </NOSCRIPT>
  27.  
  28.  

jx2 jx2 is offline
Familiar Sight
 
Join Date: Feb 2007
Location: Bristol UK
Posts: 227
#2: Apr 18 '07

re: Complete beginner needs help


[HTML]
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=1234 56789? " TARGET="_blank">
<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=12345 6789? " WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
</NOSCRIPT>

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=1234 56789?" TARGET="_blank">
<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=12345 6789?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
</NOSCRIPT>

[/code][/quote][/HTML]
Newbie
 
Join Date: Feb 2007
Posts: 12
#3: Apr 19 '07

re: Complete beginner needs help


I guess people don't want to help because it's to do with advertising on a site. I'm sure one of the people who have viewed this thread must know what i need to do.

Nevermind, thanks anyway.

Quote:

Originally Posted by jx2

[HTML]
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=1234 56789? " TARGET="_blank">
<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=12345 6789? " WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
</NOSCRIPT>

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=1234 56789?" TARGET="_blank">
<IMG SRC="a_rather_long_url;tile=1;sz=160x600;ord=12345 6789?" WIDTH="160" HEIGHT="600" BORDER="0" ALT=""></A>
</NOSCRIPT>

[/code]

[/HTML][/quote]
Reply