junkyarddog25
05-11-2003, 01:27 AM
this is my code that i am using. the date javascipt is working fine, but the pop doesnt come up on body onload. if you want to check my page private message me:
<html>
<head>
<title>Josh's Webpage</title>
<script language="javascript">
//<!--
function popup1()
{ window.open ("popup1.html","max","width=420,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
</head>
<body OnLoad="popup1()">
<font face="forte" color="FF8C00">
<b>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write(lmonth + " ");
document.write(date + ", " + year);
// End -->
</SCRIPT>
</b>
</font>
<center>
<a href="right.shtml"><img src="enter.jpg"></a>
<BR><BR>
<a href="right.shtml"><img src="enter1.jpg"></a>
</center>
<BR><BR>
<center>
<font color="FF8C00" face="comic sans ms" size="2">
This page was created by Josh Carr and is Copyright © 2001
</font>
</center>
</body>
</html>
<html>
<head>
<title>Josh's Webpage</title>
<script language="javascript">
//<!--
function popup1()
{ window.open ("popup1.html","max","width=420,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") }
-->
</script>
</head>
<body OnLoad="popup1()">
<font face="forte" color="FF8C00">
<b>
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write(lmonth + " ");
document.write(date + ", " + year);
// End -->
</SCRIPT>
</b>
</font>
<center>
<a href="right.shtml"><img src="enter.jpg"></a>
<BR><BR>
<a href="right.shtml"><img src="enter1.jpg"></a>
</center>
<BR><BR>
<center>
<font color="FF8C00" face="comic sans ms" size="2">
This page was created by Josh Carr and is Copyright © 2001
</font>
</center>
</body>
</html>