Results 1 to 4 of 4

Thread: Pointer Change Without hyperlink

  1. #1
    Join Date
    Jul 2008
    Posts
    65
    Thanks
    42
    Thanked 0 Times in 0 Posts

    Default Pointer Change Without hyperlink

    I have an OnClick event in an <a> tag which does not have an href attribute. Instead of displaying the standered mouse selection cursor when you move the mouse over the text I would like it to have the cursor with the finger. Thnx

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Code:
    cursor:pointer;
    You might find this link useful:
    http://www.w3schools.com/CSS/pr_class_cursor.asp
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    hosdank (08-06-2008)

  4. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Use css styling in the anchor like so:

    Code:
    <a style="cursor: pointer;">Not A Link, but has pointer as a cursor.</a>
    Hope this helps.

    Edit: sorry rangana, cross post.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  5. The Following User Says Thank You to thetestingsite For This Useful Post:

    hosdank (08-06-2008)

  6. #4
    Join Date
    Jul 2008
    Posts
    65
    Thanks
    42
    Thanked 0 Times in 0 Posts

    Default

    Thanks so much guys.

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
  •