SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    I want my 4th arrow! garlinto's Avatar
    Join Date
    Jun 2002
    Location
    Riding the electron wave
    Posts
    372
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow Table cell as part of a link

    I have a table that can be viewed HERE (left side of page) that contains links to my catalog pages.

    I want the mouse pointer to change into a hand (indicating that the mouse is hovering over a link) as soon as the pointer enters the table cell where my present text links are located. I tried wrapping the <A> tags around the <TD> tags, which contain the text part of the links, but it didn't look or work right. Also did funny things with my CSS when I did that. Mouse pointer just acted like it was text, even though the link still worked if you clicked on it.

    Does anyone have any ideas?

    Thanks.
    Ducharme's Axiom: "If you view your problem closely
    enough, you will recognize yourself as part of the problem."


  2. #2
    Super Ninja Monkey Travis's Avatar
    Join Date
    Dec 2001
    Location
    Sioux City, Iowa
    Posts
    691
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <td style="cursor:hand" onclick="window.location.href='http://domain.com'">
    <a href="http://domain.com">Link</a>
    </td>
    Travis Watkins - Hyperactive Coder
    My Blog: Realist Anew
    Projects: Alacarte - Gnome Menu Editor

  3. #3
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should change "hand" to "pointer" to be official (or if you want it to work in Mozilla or other browsers)--"hand" is proprietary to IE. Now, if you don't give a flip if IE6 and down (hopefully MS'll catch up to proper standards by 7) don't see the hand, you can save yourself some typing and be on the forefront of standards with this bit of CSS:
    Code:
    [onclick] { cursor: pointer; }
    It'll make any eliment with an 'onclick' attribute use a hand. Hope this helps! :-)

    ~~Ian
    Last edited by Ian Glass; Dec 18, 2002 at 23:56.

  4. #4
    I want my 4th arrow! garlinto's Avatar
    Join Date
    Jun 2002
    Location
    Riding the electron wave
    Posts
    372
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks guys...

    Thank you very much for your help. I'm gonna giv those suggestions a whirl...

    Thanks.
    Ducharme's Axiom: "If you view your problem closely
    enough, you will recognize yourself as part of the problem."



Bookmarks

Posting Permissions

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