42 users online (0 members and 42 guests)  


  Results 1 to 8 of 8

Related

  1. images-maps    Forum: HTML Forum
    Replies: 18
  2. Replies: 1
  3. image maps and Firefox    Forum: HTML Forum
    Replies: 2
  1. #1
    dexter37's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    5

    CSS and Image Maps

    Hello,
    I'm making a small website for a school project, and I ran into a little problem. I have an image map, and I wanted to use my style sheet to change the cursor to a crosshair when you hover a link. The image map and that portion of the style sheet work perfectly fine - by themselves. I've already tried adding style="cursor:crosshair" to each of the links in the image map, but that doesn't help. Does anybody have any suggestions?

    The page in question is located http://home.attbi.com/~dexter37/communities.html
    The style sheet ishttp://home.attbi.com/~dexter37/style.css

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi dexter.

    the link to your page doesn't work. I got the stylesheet, but not the page.

    Custom cursors are funny things, and very browser-reliant. What browser are you viewing in?

    Also, try

    Code:
    img:hover {
    cursor: crosshair;
    }
    It might work.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    dexter37's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    5
    Oops, http://home.attbi.com/~dexter37/community.html , I should have caught that. Anyways, I have to run to school now, so I'll probably try that code out there. Thanks for your help!

  4. #4
    dexter37's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    5
    Well, I tried img:hover {cursor: crosshair; }, and that didn't work. Someone else suggested trying just img {cursor:crosshair; }, but that just changes the cursor over the whole image. I'm beginning to think that you can't do this.....oh well.

    edit: I'm using IE 6

  5. #5
    ianru's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    61
    /\ Bad choice right there, IE6 has a lot of problems in it and i have experienced some of them, it sux that it is not really possible to get back to IE5! Well it is piossible but way too hard for my knoledge.

  6. #6
    dexter37's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    5
    It wasn't my choice, I bought my computer with Windows XP, and IE 6 came with it. I'd like to back to 5.5, but oh well.

  7. #7
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    I had a good go at it last night, couldn't get it to work at all
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  8. #8
    dexter37's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2002
    Posts
    5
    It's ok man, I'm already going above and beyond what the instructor is expecting from this assignment, so don't worry about it too much. Thanks for your help, though!



Tags for this Thread