<style type="text/css">th.header { background: #222222 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/sort-white.gif) left center no-repeat; cursor: pointer; font-weight: bold; text-align:center; padding-left: 10px; border-right: 1px solid #00000;}th.headerSortUp { background: #400000 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/asc-white.gif) left center no-repeat; }th.headerSortDown { background: #804000 url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/desc-white.gif) left center no-repeat; }#hideZeros { font-weight:normal; text-align:right; font-size:8pt;}.hide {display:none;}</style><script src="http://www.guildportal.com/Cms/jquery.tablesorter.min.js" type="text/javascript"></script><script type="text/javascript">$(document).ready(function() { try {// Add Table Sort $("span").each(function () { if ($(this).attr('id').match('lblRaidPointTitle')) { $(this).parent().find("table:eq(0)").attr("id","RaidTable"); } }); $("#RaidTable").find("tbody").attr("id","RaidData"); $("#RaidTable").find("tr:eq(0)").remove(); var hdr = "<tr><th class=\"{sorter: 'text'}\">Member</th><th class=\"{sorter: 'numeric'}\" width=80"; hdr += "align=center>Att. Raids</th><th class=\"{sorter: 'numeric'}\" width=80 align=center>M/SU</th>"; hdr += "<th class=\"{sorter: 'numeric'}\" width=80 align=center>A/P</th><th class=\"{sorter: 'numeric'}\""; hdr += "width=80 align=center>Curr. Points</th></tr>"; $("#RaidData").before("<thead id='RaidHeader'></thead>"); $("#RaidHeader").html(hdr);// Add button var hideImage = '(+/-)'; var CurrentPoints = "Curr. Points"; var filter = "eq(" + columnNum(CurrentPoints) + ")"; var temp = $("#RaidHeader").find("th:" + filter).html(); temp += " <a href='#' id='hideZeros'>" + hideImage + "</a>" $("#RaidHeader").find("th:" + filter).html(temp); $("#hideZeros").click(function() { $("#RaidData").find("tr").each(function() { if ($(this).find("td:" + filter).html() < 1) { $(this).toggleClass("hide"); } }) }) $("#RaidTable").tablesorter({ textExtraction: function(node) { var xx = node.innerHTML.toLowerCase(); if (xx.match("history")) { var temp = xx.substring(0,xx.indexOf("<br>")); return temp.replace(/~/g,"").replace(/-/g,"").replace(/\./g,"").replace(/\*/g,""); } if (xx.match("viewindividual")) { temp = node.childNodes[0].innerHTML; return temp.substr(temp.indexOf("/")+1,temp.length); } return xx; } ,sortList: [[4,1],[0,0]] });} catch (e) {}})function columnNum(x) { var counter = 0; var temp = false; $("#RaidHeader").find("th").each(function() { if ($(this).text().match(x)) {temp = counter;} counter++; }); return temp;}</script>
<style type="text/css"> .tooltip, .preview, .screenshot { cursor:pointer; } #tooltip, #tooltip2, #preview, #screenshot { color:#dddddd; background:#222222; border: 1px solid #333333; padding:5px; display:none; opacity: 0.9; filter: alpha(opacity=90); text-align:left; border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; } </style> <script src="http://www.axiomfiles.com/Files/258012/tooltip.js" type="text/javascript"></script>