?
Solved

java error on website

Posted on 1998-03-25
5
Medium Priority
?
169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
bigelos earned 200 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

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to dynamically set the form action using jQuery.

771 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