Results 1 to 7 of 7

Thread: How do you create a cursor "hand" with Cell HTML?
      
   

  1. #1
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default How do you create a cursor "hand" with Cell HTML?

    Hi fellow VodaHostians,

    I want to cause the mouse to show the little hand status when I hover over a table cell and I want to use the Cell HTML for that. Does anybody know the code for that? I know how to hyperlink a cell using Cell HTML and I don't want to use the standard text hyperlinking. Your assistance would be greatly appreciated.

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: How do you create a cursor "hand" with Cell HTML?

    You can change the cursor that shows using css

    style="cursor: pointer;"

    That may or may not work with BV because it may have its own style attribute in the same html tag your are wanting to add it to. A javascript solution possible at that point though.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default Re: How do you create a cursor "hand" with Cell HTML?

    Quote Originally Posted by Watdaflip View Post
    You can change the cursor that shows using css

    style="cursor: pointer;"

    That may or may not work with BV because it may have its own style attribute in the same html tag your are wanting to add it to. A javascript solution possible at that point though.
    Thanks Watdaflip,
    It works perfectly. I have used Inside Tag, Is that correct? Now I have some work to do.

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: How do you create a cursor "hand" with Cell HTML?

    Quote Originally Posted by Tom vR View Post
    I have used Inside Tag, Is that correct?
    I can't say for sure as I don't use BV, but since its working I would assume so.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default Re: How do you create a cursor "hand" with Cell HTML?

    Quote Originally Posted by Watdaflip View Post
    You can change the cursor that shows using css

    style="cursor: pointer;"

    That may or may not work with BV because it may have its own style attribute in the same html tag your are wanting to add it to. A javascript solution possible at that point though.
    Hi Watdaflip,
    Sorry lol, I was too quick on the draw earlier. The code works in preview, but not when published. Any other suggestions?

  6. #6
    CarbonTerry's Avatar
    CarbonTerry is offline Major General
    Join Date
    Oct 2005
    Location
    St L MO
    Posts
    2,590

    Default Re: How do you create a cursor "hand" with Cell HTML?

    The code will usually work in IE but not FF.
    CarbonTerry
    Semper Fi
    Still green...still mean......just not as lean

    Red Hawk Archery
    Zone 5 Photo
    My USMC

  7. #7
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: How do you create a cursor "hand" with Cell HTML?

    I've never had any problems with it working with FF, it may not work with FF on certain tags (I only force the cursor to change on links).

    Make sure that the tag you are inserted it on doesn't have two style.

    Try using this javascript code, with an "onload" event
    Code:
    <script type="text/javascript">
    function changeCursor(id)
    {
         document.getElementById(id).style.cursor = pointer;
    }
    </script>
    onload="changeCursor('id_for_html_tag');"

    changing the green text to the id of the html tag. This may help if the problem is a redefinition of the style attribute.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49