behaviors, pointer

G

Glen

Hi,

I am using behavior to open a new window, when you click on an image map.

Everything works fine, except that the mouse-over pointer does not change to
the hand, when you point at the hyperlink spot on the image map. The result
is that folks can't tell there is a hyperlink.

Is there a way to force the pointer to change to a hand or to otherwise
change?

Thank you
 
G

Glen

Thank you so much for offering to help.

Here's the code:
<script language="JavaScript">
<!--
function FP_openNewWindow(w,h,nav,loc,sts,menu,scroll,resize,name,url) {//v1.0
var windowProperties=''; if(nav==false) windowProperties+='toolbar=no,'; else
windowProperties+='toolbar=yes,'; if(loc==false)
windowProperties+='location=no,';
else windowProperties+='location=yes,'; if(sts==false)
windowProperties+='status=no,';
else windowProperties+='status=yes,'; if(menu==false)
windowProperties+='menubar=no,';
else windowProperties+='menubar=yes,'; if(scroll==false)
windowProperties+='scrollbars=no,';
else windowProperties+='scrollbars=yes,'; if(resize==false)
windowProperties+='resizable=no,';
else windowProperties+='resizable=yes,'; if(w!="")
windowProperties+='width='+w+',';
if(h!="") windowProperties+='height='+h; if(windowProperties!="") {
if( windowProperties.charAt(windowProperties.length-1)==',')
windowProperties=windowProperties.substring(0,windowProperties.length-1);
}
window.open(url,name,windowProperties);
}
// -->
</script>
</head>

<body topmargin="0" leftmargin="1" link="#C0C0C0" vlink="#C0C0C0"
alink="#993300" onload="dynAnimation()" language="Javascript1.2">

<div align="left">
<div align="center">
<table border="0" cellpadding="0" style="border-collapse: collapse"
width="800" bgcolor="#FFFFFF">
<tr>
<td style="border:medium none #FFFFFF; " bgcolor="#FFFFFF">
<p align="center">
<map name="FPMap0">
<area target="_blank" shape="polygon" coords="267, 166, 286, 165, 286,
151, 351, 150, 353, 95, 435, 95, 435, 195, 264, 194"
onclick="FP_openNewWindow('550', '450', false, false, false, false, true,
false, '', /*href*/'CoatofArms.htm')">
<area target="_blank" shape="polygon" coords="374, 230, 374, 259, 280,
258, 280, 277, 329, 276, 331, 296, 546, 299, 546, 227"
onclick="FP_openNewWindow('550', '450', false, false, false, false, true,
false, '', /*href*/'NameAnalysis.htm')">
<area target="_blank" shape="polygon" coords="730, 248, 737, 188, 778,
185, 775, 281, 705, 284, 705, 268, 677, 268, 677, 252, 733, 249"
onclick="FP_openNewWindow('595', '450', false, false, false, false, true,
false, '', /*href*/'Sonnet.htm')">
<area target="_blank" shape="polygon" coords="583, 184, 605, 151, 638,
150, 654, 185, 717, 184, 717, 204, 645, 206, 643, 232, 582, 233"
onclick="FP_openNewWindow('800', '450', false, false, false, false, true,
false, '', /*href*/'http://www.imdb.com/title/tt0044081')">
<area target="_blank" shape="polygon" coords="4, 217, 26, 217, 27, 223,
139, 225, 140, 237, 214, 238, 214, 253, 257, 253, 260, 267, 170, 267, 169,
278, 21, 279, 23, 240, 2, 237" onclick="FP_openNewWindow('600', '450', false,
false, false, false, true, false, '',
/*href*/'http://www.behindthename.com/php/view.php?name=stella')">
<area target="_blank" shape="polygon" coords="226, 108, 226, 91, 280,
91, 281, 104, 303, 104, 303, 117, 323, 117, 313, 134, 197, 137, 195, 123,
208, 108" onclick="FP_openNewWindow('600', '450', false, false, false, false,
true, false, '',
/*href*/'http://www.scandinavius.com/sweden/seconnections/namesday/senamesday.html')">
</map>
<img border="0" src="NamePics/NameHeader.jpg" width="790" height="302"
usemap="#FPMap0"></td>
</tr>
</table>
 
M

Murray

For those hotspots to be seen as legitimate links, they must have an href
attribute. Plus, you must remove the target of _blank, or else you'll have
two windows opening. So change each one as follows -

From this -

<area target="_blank" shape="polygon" coords="267, 166, 286, 165, 286, 151,
351, 150, 353, 95, 435, 95, 435, 195, 264, 194"
onClick="FP_openNewWindow('550', '450', false, false, false, false, true,
false, '', /*href*/'CoatofArms.htm')">

to this -

<area shape="polygon" coords="267, 166, 286, 165, 286, 151, 351, 150, 353,
95, 435, 95, 435, 195, 264, 194" onClick="FP_openNewWindow('550', '450',
false, false, false, false, true, false, '', /*href*/'CoatofArms.htm')"
href="javascript:;">

and better, to this -

<area target="_blank" shape="polygon" coords="267, 166, 286, 165, 286, 151,
351, 150, 353, 95, 435, 95, 435, 195, 264, 194"
onClick="FP_openNewWindow('550', '450', false, false, false, false, true,
false, '', /*href*/'CoatofArms.htm');return false" href="CoatofArms.htm">

which will allow your hotspots to continue working even if the visitor has
javascript turned off.
 
G

Glen

Thank you VERY MUCH! It worked like a charm! I'm afraid I'm a web amatuaur
who has probably gotten in a little over my head . . . but I'm learning.
Kind regards.
 
M

Murray

I'm glad I could help!

--
Murray
============

Glen said:
Thank you VERY MUCH! It worked like a charm! I'm afraid I'm a web
amatuaur
who has probably gotten in a little over my head . . . but I'm learning.
Kind regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top