Solved

java error on website

Posted on 1998-03-25
5
164 Views
Last Modified: 2013-12-25
This is a program witten by FlyCast. The problem is everytime I look at the html it says "Now is not defined" Line 6
The url is http://www.cyo.org/test.htm the code is below if you have any question please ask.

<html>
<head>
<title>test</title>
<SCRIPT LANGUAGE="JAVASCRIPT">
<!-- now = new Date();
my_random = now.getTime();
function print_tag() {document.write("<a href='http://adex3.flycast.com/server/socket/127.0.0.1:2800/click/CatholicYouthOnline/HomePage/" + my_random +"'>");
document.write("<img src='http://adex3.flycast.com/server/socket/127.0.0.1:2800/ad/CatholicYouthOnline/HomePage/"+ my_random + "' border=0 width=468 height=60></A>");
} //-->
</SCRIPT>

</head>
<body>

<SCRIPT LANGUAGE="JAVASCRIPT">
<!--print_tag();
 //-->
</SCRIPT>
<NOSCRIPT>
<AHREF="http://adex3.flycast.com/server/socket/127.0.0.1:2800/click//CatholicYouthOnline/HomePage/123456">
<IMG SRC="http://adex3.flycast.com/server/socket/127.0.0.1:2800/ad//CatholicYouthOnline/HomePage/123456 BORDER=0 WIDTH=468 HEIGHT=60>
</A>
</NOSCRIPT>

</body>
</html>
0
Comment
Question by:CYO
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
bigelos earned 50 total points
ID: 1858084
Change
<!-- now = new Date();
my_random = now.getTime();
to
<!--
var now = new Date();
var my_random = now.getTime();

and change
<!--print_tag();
to
<!--
print_tag();
0
 

Author Comment

by:CYO
ID: 1858085
Thanks. I need it for my ads.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1858086
BTW, the line
<AHREF="http://adex3.flycast.com/server/socket/127.0.0.1:2800/click//CatholicYouthOnline/HomePage/123456">
points to the persons own computer.  Try looking at the same site on another computer and I sincerely doubt it will work. 127.0.0.1 is a universal address to your own computer/server, so it will be different for everybody.
0
 

Author Comment

by:CYO
ID: 1858087
It has been working fine for 8 months on many other computers. I tried it at a freinds house, tried it at school and it works great. flycast gave me that it has somthing to do with there ad service.  Anyway my IP address is 207.something.
0
 
LVL 3

Expert Comment

by:bigelos
ID: 1858088
OK, I won't argue with success.
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question