Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image map link problem

    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.

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    New Coder
    Join Date
    Jan 2006
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you thank you thank you

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


    THANKS A MILLION GUYS!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •