Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Thanked 0 Times in 0 Posts

    sortTable.js Question

    I have a simple sortable html table on my website. SortTable.js is doing its job in the sense that clicking on the headers allows the columns to be sorted. The problem is that the mouse-over does not change the cursor, my cursor just remains a text cursor. I was wondering how I would go about changing this. Also, I was wondering how I would add a hover attribute to the heading attributes. I know how to add the hover attribute to links, but since the table headers aren't links I am a little confused as to how I go about this.

    Thank You

  2. #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Thanked 4,947 Times in 4,908 Posts
    Nothing to do with JavaScript. Just use CSS to change the style of the cursor when it is over that element. And with most modern browsers, you can add hover to most elements in the <style> section.

    Since you don't bother to show the code you are using, it's hard to give a more specific answer. There must be hundreds of files named "sortable.js" floating around out there. How do we know which one you are using?
    Be yourself. No one else is as qualified.


Posting Permissions

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