Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-09-2012, 08:45 PM   PM User | #1
bkbartosz
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
bkbartosz is an unknown quantity at this point
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
bkbartosz is offline   Reply With Quote
Old 11-09-2012, 09:26 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,168
Thanks: 59
Thanked 3,993 Times in 3,962 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
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?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:32 PM.


Advertisement
Log in to turn off these ads.