...

View Full Version : Popup Windows



SpikeS Childe
06-20-2002, 08:31 PM
Hey! Im new...Duh...lol...I'm trying to make a popup but its not working....can someone email me (forever_lost_in_dreams@hotmail.com) please....

Eskimo
06-20-2002, 08:51 PM
I hate pop-ups.

mordred
06-20-2002, 09:22 PM
That's not the best idea to ask for response by email, IMO. What if other forum members have a similar problem? Do you prefer that they all mail you about the solution or would you have them rather read it in the thread?

It's not so hard actually to create a popup:

window.open("popup.html");

SpikeS Childe
06-20-2002, 09:35 PM
Popup generator (http://www.javascriptkit.com/popwin/index.shtml) is where I was...I wanted on the Scrollbars option checked and a text link, but when I put it on my site, it didn't work....


<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,")
}

</script>

<a href="javascript:openpopup()">Click here to open window</a>

SpikeS Childe
06-20-2002, 09:53 PM
Oh! I did put them on my site...I was just posting the code....

mordred
06-20-2002, 11:19 PM
The code you posted above works for me in IE5.5 and Mozilla1.0. Can you be more specific on what you mean by "does not work"? Does JS give any error messages? Does a window open, but no page could be found? etc. etc.

SpikeS Childe
06-21-2002, 02:56 AM
I press enter and it doesnt do anything...You think I could email you my file and see it you can put it on? lol...

WA
06-21-2002, 02:59 AM
Spikes:
You may want to simply check out the following popup window wizard: http://javascriptkit.com/popwin/index.shtml

SpikeS Childe
06-21-2002, 03:01 AM
That's what I was using...and the code I got afterwards was:


<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="thankyou.htm"
winpops=window.open(popurl,"","width=400,height=338,scrollbars,")
}

</script>

<a href="javascript:openpopup()">Click here to open window</a>

WA
06-21-2002, 03:13 AM
Hmmm...the code should definitely work across most browsers. If you had a link to the problematic page in question, that would make things simplier.

SpikeS Childe
06-21-2002, 03:17 AM
well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................

*going to bed...Exam tomorrow morning....Will reply again tomorrow*

JohnKrutsch
06-21-2002, 03:24 PM
Are you telling it to open main.htm or are you leaving thanks.htm in there? Also that trailing comma after scrollbars might be problematic. If indexx.htm and main.htm are in the same directory try something like this.

<script>

//Popup Window Script
//By JavaScript Kit (http://javascriptkit.com)
//JavaScript tutorials and over 400+ free scripts

function openpopup(){
var popurl="main.htm"
winpops=window.open(popurl,"","width=400,height=338,scrollbars")
}

</script>

<a href="javascript: openpopup()">Click here to open window</a>

mordred
06-21-2002, 03:28 PM
Originally posted by SpikeS Childe
well it's all on a disk and the files are called indexx.htm and main.htm....I want the indexx to open a pop up of the main page...so where do I put the codes.....................


Post the code of indexx.htm into your next posting, so we can take a look at it and see what's going wrong. No need in emailing members, see my other post.

SpikeS Childe
06-22-2002, 08:38 PM
ok...the first is indexx.htm and the 2nd is main.htm

<HTML>
<HEAD>
<TITLE>Eternal Flames</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
<br><br>
<center><img src="splash1.jpg"></center>
<br>
<font face="Brush Script MT" SIZE="2">
<center>| <a href="http://hellhathnofury.cjb.net">Hell Hath No Fury</a> | <a href="http://daretodream-fan.cjb.net">Dare To Dream</a> | <a href="main.htm">Enter</a> |</center>
</BODY>
</HTML>

and


<HTML>
<HEAD>
<title>Eternal Flames</title>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#B4B8C4" LINK="#868CA0" VLINK="#868CA0">
<center><!-- Created by CuteMAP -->
<!-- Visit us at http://www.globalscape.com -->
<!-- Beginning of CSIM -->
<IMG SRC="full.jpg" USEMAP="#full.jpg" WIDTH=518 HEIGHT=188 BORDER=0>
<MAP NAME="full.jpg">
<AREA SHAPE=RECT COORDS="124,136,193,144" HREF="thecast.htm">
<AREA SHAPE=RECT COORDS="211,136,313,144" HREF="epguide.htm">
<AREA SHAPE=RECT COORDS="331,136,393,144" HREF="gallery.htm">
<AREA SHAPE=RECT COORDS="133,150,186,158" HREF="fanart.htm">
<AREA SHAPE=RECT COORDS="204,150,281,158" HREF="fanfiction.htm">
<AREA SHAPE=RECT COORDS="299,150,385,158" HREF="fanlistings.htm">
<AREA SHAPE=RECT COORDS="173,164,211,172" HREF="links.htm">
<AREA SHAPE=RECT COORDS="229,164,344,172" HREF="about.htm">
<AREA SHAPE=RECT COORDS="172,178,264,186" HREF="webmistress.htm">
<AREA SHAPE=RECT COORDS="282,178,345,186" HREF="mailto:forever_lost_in_dreams@hotmail.com">
</MAP>
<!-- End of CSIM -->
<br>
<!-- Created by CuteMAP -->
<!-- Visit us at http://www.globalscape.com -->
<!-- Beginning of CSIM -->
<IMG SRC="guestbook.jpg" USEMAP="#guestbook.jpg" WIDTH=150 HEIGHT=150 BORDER=0>
<MAP NAME="guestbook.jpg">
<AREA SHAPE=POLY COORDS="56,29,52,29,52,30,50,30,50,31,49,31,49,32,48,32,48,34,47,34,47,39,48,39,48,40,49,40,49,41,50,41,50,4 2,51,42,51,44,52,44,51,44,51,45,49,45,49,46,47,46,47,47,46,47,46,48,46,49,47,49,47,50,49,50,49,49,51 ,49,51,48,52,48,52,47,54,47,54,46,56,46,56,44,55,44,55,41,54,41,54,40,53,40,53,38,52,38,52,36,51,36, 51,35,52,35,52,34,54,34,54,33,55,33,55,32,56,32,56,29" HREF="http://www.theguestbook.com/egbook/391722.gbook">
<AREA SHAPE=POLY COORDS="86,45,86,60,86,59,87,59,87,57,88,57,88,55,89,55,89,51,90,51,90,48,93,48,93,51,92,51,92,56,91,56,91,5 8,90,58,90,60,89,60,89,62,88,62,88,65,87,65,87,66,84,66,84,62,83,62,83,56,82,56,82,46,83,46,83,45,86 ,45" HREF="http://www.theguestbook.com/vgbook/391722.gbook">
</MAP>
<!-- End of CSIM --></center>
</BODY>
</HTML>

TrueLies
06-22-2002, 08:58 PM
Hi

winpops=window.open(popurl,"","width=400,height=338,")

Uhm, there shouldn't be that trailing comma:
338,
should be
338

To accomodate NS4 put some string in between the second argument apex, or in some cases NS4 may open a fullscreen window even if you sepcified otherwise

ciao

SpikeS Childe
06-23-2002, 02:06 AM
but the 'scrollbars' thinkg is there....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum