View Full Version : pop-up help!!


sugarberrie87
07-12-2003, 08:41 PM
hey yall I have a site with an image map, and i want it so that when it clicks on the enter button, it opens in a new non-resizable window that the width is 720 and the height is 576. This is the code I have, and it works except when i click the link to enter it doesnt open in a new resized pop-up window, please help!! thanx! the website is http://www.geocities.com/cracklecafe/rose.htm if u need it.

<head>
<script language="javascript">
//<!--
function popup()
{ window.open ("http://geocities.com/cracklecafe/index.htm", "popup", "width=720, height=576, location=0, menubar=0, resizable=0, scrollbars=0, status=0, titlebar=1, toolbar=0") }
-->
</script>
</head>

<body>

<IMG NAME="rose0" SRC="rose.jpeg" WIDTH="470" HEIGHT="328" BORDER="0" USEMAP="#rose">

<MAP NAME="rose">
<AREA SHAPE="rect" COORDS="234,246,338,284" HREF="http://www.geocities.com/cracklecafe/index.htm" ALT="Enter Paree..." TITLE="Voila! || La tres Magnefique Paris">
</MAP>

</body>

kicker91
07-12-2003, 08:58 PM
i use a different kind of pop-up. its a little easier and less confusing. it goes in the "body" section:

<head>
</head>

<body>

<IMG NAME="rose0" SRC="rose.jpeg" WIDTH="470" HEIGHT="328" BORDER="0" USEMAP="#rose">

<MAP NAME="rose">
<AREA SHAPE="rect" COORDS="234,246,338,284" HREF="javascript:pop()" ALT="Enter Paree..." TITLE="Voila! || La tres Magnefique Paris">
</MAP>

<script>
function pop(){
var popurl="http://geocities.com/cracklecafe/index.htm"
winpops=window.open(popurl,"","width=720,height=576,scrollbars,")
}
</script>
</body>

sugarberrie87
07-12-2003, 09:07 PM
do i use that exact code or do i need to add anything? thanx :D

kicker91
07-12-2003, 09:10 PM
nope! thats it! you just don't have <html></html> =D

sugarberrie87
07-12-2003, 09:12 PM
ok thanx!! XD

sugarberrie87
07-12-2003, 09:14 PM
ahh!! it didn't work! when i clicked the link nothing happened. :/

kittycat
07-12-2003, 10:26 PM
Use your original code, that you posted in the first post above.
Change HREF="http://www.geocities.com/cracklecafe/index.htm" with HREF="javascript:popup();" (take the spacee out of javascript)
It should work with that.

sugarberrie87
07-12-2003, 11:32 PM
Yesa!! it worked!! thanx s0o0o0o much!! =D :D XD !!

kicker91
07-12-2003, 11:36 PM
who's worked? mine or kittys? *glances at kitty*

sugarberrie87
07-13-2003, 12:23 AM
kittys worked, but thanx to both for yur help!! ;)