View Full Version : webpage


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 &copy; 2001
</font>
</center>
</body>
</html>

the_dark_one02
05-11-2003, 10:54 AM
im not sure but why not try this:

<body OnLoad="window.open("popup1.html","max","width=420,height=400,location=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0") ">


then you can delete your script that includes the pop-up. This should work. put if not then ill seee what i can do.

amicus
05-11-2003, 01:43 PM
the_dark_one02 code goes on one line (i'm sure you already know :)) for some reason the forum breaks it up.

junkyarddog25
05-11-2003, 05:10 PM
yea i got that but it still doesnt work, pm me for my site if u want to chekc it

starlet
05-11-2003, 05:20 PM
Originally posted by junkyarddog25
yea i got that but it still doesnt work, pm me for my site if u want to chekc it

As long as its kid friendly and nothing illegal then you can just post the URL here...

junkyarddog25
05-11-2003, 05:32 PM
it is kid friendly but it has some things about mirc and p2p programs.

amicus
05-11-2003, 06:52 PM
try this one

<body onLoad="window.open('popup1.html','max','width=420,height= 400,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0')">

amicus
05-11-2003, 06:59 PM
sorry about that last post i tried to change the color but it didn't work, not sure why. anyways heres the code again. i just change some the quotes on the inside to single quotes

<body onLoad="window.open('popup1.html','max','width=420,height= 400,loca tion=0,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=1,toolbar=0')">

junkyarddog25
05-11-2003, 07:05 PM
k, thanx ill see if it works

the_dark_one02
05-11-2003, 08:11 PM
amicus i know code goes on one line, in fact i put it all on one line, but i thought when you put it in the [ PHP ] tags it didnt put the code on dif lines.

amicus
05-11-2003, 08:27 PM
you know the forum did that to mine too :(. i don't why it does that. i didn't mean anything by it, i just saw it broken up and i though it looked a little funky but then it did it to me, sorry :(.