Created
October 11, 2012 23:46
-
-
Save mattparmett/3876451 to your computer and use it in GitHub Desktop.
Show/Hide WQL descriptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- jquery --> | |
<script type="text/javascript" src="./WQL_files/jquery-1.8.2.min.js"></script> | |
<!-- jquery code to show description on hover --> | |
<script type="text/javascript"> | |
//Assumes descriptions are in divs with class = cell contents | |
$(td).hover( | |
function () { | |
//Get the cell name, so we can make the right description visible | |
var descName = $(this).text() | |
$('div.' + descName).visibility='visible'; | |
}, | |
function () { | |
var descName = $(this).text() | |
$('div.' + descName).visibility='hidden'; | |
} | |
); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment