[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Andrew,

Weird, that code doesn't seem to work for me. So you are putting it right after this line?:

delete row_array;

Mike

Message: 2
Date: Thu, 3 Jan 2008 13:39:54 -0700
From: "Welch, Andrew" <AWelch at auroragov dot org>
Subject: Re: [IUG] sorting reading history, etc.
To: "IUG INNOPAC List" <innopac at innopacusers dot org>
Message-ID:
<CF2F5C6412214D42B13BBE4290069A24F88B83 at VMAIL2 dot aurora dot city>
Content-Type: text/plain;charset="iso-8859-1"

You could add the following lines to the end of the makeSortable function (for us it's line 162 or so of the script):

headrow[i].style.color = "#0000ee"; // change this to your link color;
try { headrow[i].style.cursor = "pointer"; }
catch (e) { headrow[i].style.cursor = "hand"; } // IE 5.5 catch;
headrow[i].title = "Click to sort by " + headrow[i].firstChild.nodeValue;

These lines will color the column headers blue (adjust the hex value to your liking), turn the cursor into a pointing hand on hover, and give the link a title attribute of "Click to sort by <whatever the header is>"

Let me know if you want more guidance on where exactly to place these lines.

Andrew Welch
Sr. Library Systems Technician
Aurora Public Library
Aurora, CO 80012

--
Mike Cunningham
Web Services Librarian
Cambridge Libraries