...

View Full Version : Image map link problem



mattyp
01-02-2006, 01:56 AM
ok, i have created a site using an image map, but there is only one problem. when you hover over a link the mouse does not change into a pointer like it should.

here is the code i am using for the links-

<area SHAPE="rect" COORDS="448,435,520,469" HREF="otherstuff.html"
TARGET="resource window" alt="">


incase it is another problem, here is the whole thing-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>StrikeBackBMX</title>
<script language="JavaScript">
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
</script>
<style type="text/css">
body {
scrollbar-3dlight-color:#000001;
scrollbar-arrow-color:#000001;
scrollbar-track-color:#000001;
scrollbar-darkshadow-color:#000001;
scrollbar-face-color:#000001;
scrollbar-highlight-color:#000001;
scrollbar-shadow-color:#000001;
background-color: #000000;
background-image: url('' );
}
table.blogbody {
/* this edits the other the place where the blog is */
border: 0px solid 000000;
border-width: 0px 0px 0px 0px;
width:280px;
}
TD,P,body {
COLOR: #000000;
FONT-FAMILY: verdana, tahoma, helvetica, sans-serif, arial;
line-height: 12pt;
FONT-SIZE: 10px;
cursor:default;
text decoration:none;
}
table.left, td.mainleft, table.navigation, table.footer, table.search, #SearchBar1_pnlYouAreHere, .mainleft {
display: none;
}

#pnlEnabled table, #htmleditor, #lblTimeZone, #pnlEprops {
width:250px;
}
</style>
</head>
<body>
<table border="0">
<tr>
<Td>
<center><IMG SRC="sbbackround4.jpg"usemap="#4k" BORDER=1></center>
<map name="4k">
<area SHAPE="rect" COORDS="448,435,520,469" HREF="otherstuff.html"
TARGET="resource window" alt="">
<area SHAPE="rect" COORDS="586,440,617,460" HREF="next.html">
<area SHAPE="rect" COORDS="640,449,668,485" HREF="crew.html" TARGET="resource window" alt="">
<area SHAPE="rect" COORDS="683,490,712,515" HREF="media.html" TARGET="resource window" alt="">
<area SHAPE="rect" COORDS="730,535,762,580" HREF="contact.html" TARGET="resource window" alt="">
</map>
<div align="left">
<div style="position: static; width:800px; height: 400px;overflow:auto; margin-top:-705px; margin-left:119px; FILTER: alpha(opacity=100); OVERFLOW: auto; FILTER: chroma(color=#660D1F) allowTransparency;>">
</div>
<div style="position:static; margin-left:80px; margin-top:-100px; border: 0px solid #ffffff; width: 310px; height: 265px; background:none;overflow: auto; overflow-x:hidden; OVERFLOW: auto; FILTER: chroma(color=#000001) allowTransparency;">
<center>Sunday, December 25, 2005</center>

<table border="0" cellspacing="0" cellpadding="4" width="100%" class="blogbody">
<tr>
<td width="5%"></td>
<td align="justify">
Happy holidays to everyone, from Strike Back BMX.<br>

</tr>
</table><br>
</div></div>



</body>
</html>

thanks in advance.

mark87
01-02-2006, 02:02 AM
Hard to help without an actual link so we can see the image.

You should be getting the hyperlink hand so the only thing I can really suggest is add style="cursor: hand;" within the <area> tags.

Edit, Remove the cursor: default; declaration in the CSS. Just noticed that.

_Aerospace_Eng_
01-02-2006, 02:19 AM
hand is only supported by IE, you want style="cursor: pointer" removing cursor:default as Mark said should fix the problem. Then there will be no need to add a style to the areas.

mark87
01-02-2006, 02:24 AM
Yup realised after I posted, in fact I think to comply with all browsers you should use cursor:pointer; cursor:hand - but as said, shouldn't be needed.

mattyp
01-02-2006, 03:35 AM
thank you thank you thank you

you were right, i just had to remove cursor: default.


THANKS A MILLION GUYS!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum