View Full Version : Stupid Javascript......
wizmasterjr
July 25th, 2003, 11:54 PM
Alright. I decided to come back to Flash and web-designing by upgrading my old website.
I tried to add a pop-up that displays current updates when you click on a text link. My Problem:It doesn't want to pop-up.
I was wondering if anyone could take the time to run through my coding to see what the devil I did wrong. If you want to try out the link that is supposed to have the pop-up to show up, go here (http://www31.brinkster.com/populoustb). Its to the left-hand side of the page, under Updates. It should say 7/03/03.
Oh yeah. Combine this :beard: and this :asian: and you have my French II teacher. Later.
nobody
July 26th, 2003, 12:04 AM
link?
pete
July 26th, 2003, 12:09 PM
ok the pop up works correctly but the link to the pop up news is wrong.
sdrawkcaB
July 26th, 2003, 01:47 PM
Replace it with this, it should work:
<html>
<head>
<title>Populous:The Beginning</title>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=200,height=300');");
}
// End -->
</script>
<META HTTP-EQUIV="Expires" CONTENT="NEVER">
<TITLE>Populous: The Beginning</TITLE>
<LINK REV="made" href="mailto:Wizmasterjr@yahoo.com">
<META NAME="keywords" CONTENT="Computer Gaming; Online Gaming; Wizmasterjr; Populous: The Beginning; Pop:TB; Populous:The Beginning; Populous:TB; Multiplayer Games; Real-Time RPGS">
<META NAME="description" CONTENT="Includes Tactics, detailed Follower and Building descriptions, and much more.">
<META NAME="author" CONTENT="Max Charner">
<META NAME="ROBOTS" CONTENT="ALL">
</head>
<body bgcolor="#FFFFFF" text="#000000" background="Populoustb%20Website/mainbackdrop.jpg">
<table width="767" border="0">
<tr>
<td align="center"><img src="Banner.gif" width="468" height="60" align="middle"></td>
</tr>
</table>
<table width="767" border="0" height="41">
<tr>
<td height="27" width="761"><a href="Buildings.htm"><img src="Populoustb%20Website/Buildings%20Button.gif" width="110" height="40" border="0"></a><img src="Populoustb%20Website/Dividers.gif" width="5" height="40"><a href="Followers.htm"><img src="Populoustb%20Website/Followers%20Button.gif" width="125" height="40" border="0"></a><img src="Populoustb%20Website/Dividers.gif" width="5" height="40"><a href="Tactics.htm"><img src="Populoustb%20Website/Tactics%20Button.gif" width="125" height="40" border="0"></a><img src="Populoustb%20Website/Dividers.gif" width="5" height="40"><a href="Downloads.htm"><img src="Populoustb%20Website/Downloads%20Button.gif" width="125" height="40" border="0"></a><img src="Populoustb%20Website/Dividers.gif" width="5" height="40"><a href="www."><img src="Populoustb%20Website/Forums%20Button.gif" width="125" height="40" border="0"></a><img src="Populoustb%20Website/Dividers.gif" width="5" height="40"><a href="Contact.htm"><img src="Populoustb%20Website/Contact%20Button.gif" width="125" height="40" border="0"></a></td>
</tr>
</table>
<table width="767" border="0" height="506">
<tr>
<td background="Populoustb Website/Backdrop for Columns copy.gif" height="35" width="125">
<font face="AvQest" size="3"><font face="Arial, Helvetica, sans-serif" size="2"><img src="Populoustb%20Website/Updates%20Divider.gif" width="125" height="40" align="top"></font></font></td>
<td height="498" width="502" rowspan="4">
<p><font face="Arial, Helvetica, sans-serif" size="3">Hey. Welcome to my
site. I haven't updated it in a while, so I'm going to start up on it
again. As you can see in the updates, I haven't done much. So, I basically
sat around doing nothing. Then I checked my e-mail, and got an e-mail
from Ice Gecko. That e-mail inspired me to check my site. When I did,
I noticed the counter and was like whoa!!I have had quite a few visitors!!!
So, I came back, re-installed Dreamweaver, and downloaded the HTML file
from Brinkster, and voila! I'm updating it. Expect a crap load of more
updates later on, as I plan on buying a new $1,500 Dell thats geared towards
high-graphic production. It'll be great fun indeed. Well, I think I'm
going to finish or at least work on the Followers section that I said
I would work on so catch ya later!</font></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><br>
<br>
</p>
</td>
<td height="487" rowspan="4" background="Populoustb Website/Backdrop for Columns copy.gif">
<p align="center"><font face="AvQest" size="5"><noscript></noscript></font><font face="AvQest" size="5"><noscript></noscript></font><font face="AvQest" size="5"><noscript></noscript></font><font face="AvQest" size="5"><noscript></noscript></font><font face="Arial, Helvetica, sans-serif" size="2"><img src="Populoustb%20Website/Links%20Divider.gif" width="125" height="40"></font><font face="AvQest" size="5"><noscript></noscript></font></p>
<div align="center">
<p><font face="Arial, Helvetica, sans-serif" size="2">Links include other
Populous Sites and sites about fun stuff, like Tabletop-RPGS.</font><font face="AvQest"><img src="Populoustb%20Website/Dividers%20for%20Columns.gif" width="125" height="5"></font><br>
<font face="AvQest"><font face="Arial, Helvetica, sans-serif" size="2">Populous
Sites<br>
</font></font><font face="Arial, Helvetica, sans-serif" size="2"><a href="http://www.thewheel.freeserve.co.uk/">Blue
Shaman's Command Post</a><br>
<br>
<a href="http://populous.cjb.net/">The Populous Shrine</a></font><font face="AvQest"><a href="http://populous.cjb.net/"></a><br>
<img src="Populoustb%20Website/Dividers%20for%20Columns.gif" width="125" height="5"><br>
</font><font face="Arial, Helvetica, sans-serif" size="2">Other Sites<br>
<a href="http://paranoia-rpg.com/">Chaos Systems</a></font><font face="AvQest"><br>
<img src="Populoustb%20Website/Dividers%20for%20Columns.gif" width="125" height="5"><br>
<font face="Arial, Helvetica, sans-serif" size="2">Want your Link Placed
here? Contact me with your site, and if you link here I'll link to you.</font><br>
</font><img src="Populoustb%20Website/Dividers%20for%20Columns.gif" width="125" height="5"><br>
<font face="AvQest" size="5">
<script language="JavaScript1.2" type="text/javascript" src="http://pub47.bravenet.com/counter/code.php?id=363601&usernum=3979313033&groupnum=47&cpv=1"> </script>
</font></p>
<p> </p>
<p><br>
<br>
<br>
</p>
</div>
</td>
</tr>
<tr>
<td background="Populoustb Website/Backdrop for Columns copy.gif" height="18" width="125">
<div align="center"><font face="AvQest" size="3"><font face="Arial, Helvetica, sans-serif" size="2">
<A HREF="javascript:popUp('http://www31.brinkster.com/populoustb/Update_pop_1.html')">7/03/03</A></font></font></div>
</td>
</tr>
<tr>
<td background="Populoustb Website/Backdrop for Columns copy.gif" height="30" width="125"><font face="AvQest" size="3"><font face="AvQest" size="3"><img src="Populoustb%20Website/Announcements%20Divider.gif" width="125" height="40"></font></font></td>
</tr>
<tr>
<td background="Populoustb Website/Backdrop for Columns copy.gif" height="299" width="125">
<p><font face="Arial, Helvetica, sans-serif" size="2">Looking for people
to send in screenshots and/or tips. Send the images through e-mail with
"Poptb Images" as the subject. See the Contact section of this
site for my e-mail address.</font></p>
<p> </p>
<p><br>
<br>
</p>
<p> </p>
<p> </p>
<p><br>
</p>
</td>
</tr>
</table>
</body>
</html>
DigitalPimp
July 26th, 2003, 08:03 PM
Why are you doing eval()? I have never used this before and all my books are @ work.
DigitalPimp
July 26th, 2003, 08:27 PM
Oh k!
I think I know what you were trying to do.
I went ahead and rewrote you a script so that all you have to do is put the date in a hyperlink and the javascript will pull the date out, add it on to the back of the url, and scroll down the page to wherever you put the anchor tag with the date.
Go check out
http://66.75.222.69/Kirupa/1/Index.html <= This is where the JS is.
http://66.75.222.69/Kirupa/1/popUp.html <= This is what it pops up to.
Let me know if you need any further help.
DigitalPimp
July 26th, 2003, 08:29 PM
I will be gone for awhile, maybe the whole night but just post anyways, I'll check up on it. Good luck.
Nick
July 26th, 2003, 10:53 PM
wizmasterjr, isn't Populous old? i remember playing the demo years ago. i like your web site though.
sdrawkcaB
July 28th, 2003, 12:22 PM
......my way worked.
DigitalPimp
July 28th, 2003, 01:25 PM
With a lot more code and not as flexible as mine.http://www.kernlearn.net/Images/DPHead.gif
wizmasterjr
July 28th, 2003, 08:47 PM
Heh.............yeah........
I'm not quite sure about this, but i think maybe i have to upload it to the net for it to work, but i'll try that.
You see, I use Dreamweaver 4 and I JUST tried the code you posted, sdrawkcaB, but it doesn't seem to be working. Digitalpimp, the links you made.............they don't work.
As far as the age, yes, it is an old game. But i love it. Thats why i made a site. Thanks for the compliment, by the way. Let me know whats going on with the coding.
Oh yeah, I'm on AIM right now. I'll be on all night. If you would like to tell me what to do on AIM, my name is RustedAngelV.
Thanks for all your help.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.