Guest_imported
New member
- Jan 1, 1970
- 0
Hi, If anyone can help me with this one I would be really grateful, I'm starting to tear my hair out.(and it's probably something really stupid i'm doing wrong)
Below is the source code of a page that has one big image woth several parts that can be clicke on. Each time a part is clicked i want the script to open up a new browser window (at a predetermined size etc), now the imagemap part seems to be o.k. coz when you click on the linking parts the url line changes to say 'javascript(function}' etc, but it doesn't actually do the script.
I've been staring at it for hours now, and i can't get my head round it, i'm starting to think it is something really easy that i've missed and just can't see it.
If you can spot the mistake(s) i would really appreciate a reply.
many many thanks in advance.
amacfx
-------------------------------------------
<html>
<head>
<title>Pick a word, everyone a winner !!!!</title>
<script language="JavaScript">
<!--
function gsoh(one)
{
itsafire=window.open(one,'gsohwindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=414,height=376)
}
function incoming (two)
{
difr1=window.open(two,'incomingWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=457,height=457)
}
function speed (three)
{
difr2=window.open(three,'speedWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=400,height=400)
}
function ezagood (four)
{
difr3=window.open(four,'ezagoodWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=400)
}
function puzle (five)
{
difr4=window.open(five,'puzleWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=400)
}
function wantsome (six)
{
difr5=window.open(six,'wantsomeWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=500)
}
function listenup (seven)
{
difr6=window.open(seven,'listenupWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=800,height=376)
}
// end of script-->
</script>
</head>
<body>
<center>
<tr><td align=center valign=top>
<MAP NAME="menu">
<area shape="rect" coords="286,38,407,74" href="javascript:gsoh('singles.html')">
<area shape="rect" coords="93,118,260,151" href="javascript:incoming('incoming.html')">
<area shape="rect" coords="388,122,692,153" href="javascript:speed('speed.html')">
<area shape="rect" coords="503,203,668,231" href="javascript:ezagood('spermfinal.html')">
<area shape="rect" coords="83,351,235,391" href="javascriptuzle('puzle.html')">
<area shape="rect" coords="465,336,729,380" href="javascript:wantsome('wantsome.html')">
<area shape="rect" coords="43,33,189,75" href="javascript:listenup('musicreviewer.html')">
</map>
<IMG NAME="listings" SRC="portal.jpg" border=0
USEMAP="#menu"></TD></tr>
</body>
</html>
------------------------------------
any ideas ??
Below is the source code of a page that has one big image woth several parts that can be clicke on. Each time a part is clicked i want the script to open up a new browser window (at a predetermined size etc), now the imagemap part seems to be o.k. coz when you click on the linking parts the url line changes to say 'javascript(function}' etc, but it doesn't actually do the script.
I've been staring at it for hours now, and i can't get my head round it, i'm starting to think it is something really easy that i've missed and just can't see it.
If you can spot the mistake(s) i would really appreciate a reply.
many many thanks in advance.
amacfx
-------------------------------------------
<html>
<head>
<title>Pick a word, everyone a winner !!!!</title>
<script language="JavaScript">
<!--
function gsoh(one)
{
itsafire=window.open(one,'gsohwindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=414,height=376)
}
function incoming (two)
{
difr1=window.open(two,'incomingWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=457,height=457)
}
function speed (three)
{
difr2=window.open(three,'speedWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=400,height=400)
}
function ezagood (four)
{
difr3=window.open(four,'ezagoodWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=400)
}
function puzle (five)
{
difr4=window.open(five,'puzleWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=400)
}
function wantsome (six)
{
difr5=window.open(six,'wantsomeWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=600,height=500)
}
function listenup (seven)
{
difr6=window.open(seven,'listenupWindow','toolbar=no,scrollbars=auto,resizable=no,menubar=no,status=yes,directories=no,location=no,width=800,height=376)
}
// end of script-->
</script>
</head>
<body>
<center>
<tr><td align=center valign=top>
<MAP NAME="menu">
<area shape="rect" coords="286,38,407,74" href="javascript:gsoh('singles.html')">
<area shape="rect" coords="93,118,260,151" href="javascript:incoming('incoming.html')">
<area shape="rect" coords="388,122,692,153" href="javascript:speed('speed.html')">
<area shape="rect" coords="503,203,668,231" href="javascript:ezagood('spermfinal.html')">
<area shape="rect" coords="83,351,235,391" href="javascriptuzle('puzle.html')">
<area shape="rect" coords="465,336,729,380" href="javascript:wantsome('wantsome.html')">
<area shape="rect" coords="43,33,189,75" href="javascript:listenup('musicreviewer.html')">
</map>
<IMG NAME="listings" SRC="portal.jpg" border=0
USEMAP="#menu"></TD></tr>
</body>
</html>
------------------------------------
any ideas ??