473,387 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Complete beginner needs help

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.  
Apr 18 '07 #1
2 1144
jx2
228 100+
[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]
Apr 18 '07 #2
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.

[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]
Apr 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Blaze | last post by:
I am doing the first walk through on the Visual Studio .Net walkthrough book to learn a little about programming. I am having issues with the first tutorial not running correctly. It seems that...
18
by: mitchellpal | last post by:
Hi guys, am learning c as a beginner language and am finding it rough especially with pointers and data files. What do you think, am i being too pessimistic or thats how it happens for a beginner?...
2
by: stargate03 | last post by:
Hi there I have a MYSQL database which has the following table CREATE TABLE `#__content` ( `id` int(11) unsigned NOT NULL auto_increment, `title` varchar(100) NOT NULL default '', ...
2
by: pingu | last post by:
Hi guys, I've been thrown in the shallow end of this so forgive me for my ignorance with this post. I'm a PHP developer but the contract I am currently working on has some websites that were built...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.