PDA

View Full Version : Continued image map and javascript pop-up problem


lilrobson
08-28-2002, 01:58 AM
I took boywonders advice and tried it out, but there's still a problem.. any further tips or advice? Please.. I've inserted the coding below, if there's a problem and someone could help me pin point it out I'd appreciate it soooo much <3

<html>
<head>
<title>wade robson ; brilliance, composure, SEXINESS all combined in one NINETEEN year old</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#000000">
<script>

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

function WADE(){
var popurl="www.wadejrobson.net/wade.htm"
winpops=window.open(popurl,"www.wadejrobson.net/wade.htm","width=400,height=338,")
}

</script>
<center>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><img src="HM.gif" width="329" height="234" usemap="#Map" border="0"></p>
</center>
<map name="Map">
<area shape="rect" coords="4,85,34,96" href=""javascript:WADE();" "">
</map>
</body>
</html>

adios
08-28-2002, 03:28 AM
The second argument to window.open() is supposed to be a (variable) name for the new window - used as an HTML target. You've stuck the page url in there, which includes illegal characters. Also: lose the trailing comma in the list of features (in red):

function WADE(){
var popurl="www.wadejrobson.net/wade.htm"
winpops=window.open(popurl,"winpops","width=400,height=338,")
}

<area shape="rect" coords="4,85,34,96" href="javascript:void WADE()">

lilrobson
08-28-2002, 04:34 AM
IT WORKED PARTIALLY.. I think I still might not have edited what I was supposed to completely, did I? The window will pop-up now but it will say it's a 404 error, but I have the right link.. THANK YOU SO MUCH for helping me out though, I was getting so frustrated!!

<html>
<head>
<title>wade robson ; brilliance, composure, SEXINESS all combined in one NINETEEN year old</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000000" text="#000000">
<script>

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

function WADE(){
var popurl="WADE"
winpops=window.open(popurl,"www.wadejrobson.net/samp.htm","width=400,height=338")
}

</script>
<center>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><img src="HM.gif" width="329" height="234" usemap="#Map" border="0"></p>
</center>
<map name="Map">
<area shape="rect" coords="4,85,34,96" href=""java script:void WADE();" """>
</map>
</body>
</html>

adios
08-28-2002, 05:33 AM
yo wade...

winpops=window.open(popurl,"winpops","...

The window.open() function takes three (or four) arguments - bits of data passed along to make it more flexible. The second (red) one is a name for your newly-minted window - not a url. The first argument is the new page url. You appear to be trying to load a web page with a url of "WADE" (var popurl="WADE" ), and naming it after a web page located at 'www.wadejrobson.net/samp.htm'. Might consider reversing them. Never know...:thumbsup: