<script type="text/javascript">$(document).ready(function(){/********************************This script replaces Home Page URL "link" in the Special Interest (none) type of guild rosterformats accepted:- http://www.myspace.com/kiddkraddick,http://www.facebook.com/profile.php?id=48129544153,http://twitter.com/KiddKraddick- ms:kiddkraddick,fb:48129544153,tw:KiddKraddick*********************************/ var newTitle = "Contact Links"; // Don't Change Anything Below // ********************** $("table[id*='grdRoster']").find("a:contains('Home Page URL')").html(newTitle); $("table[id*='grdRoster']").find("a:contains('link')").each(function(){ var lnk = $(this).attr('href').split(','); for (j=0;j<lnk.length;j++){ var img = " <img width='16' src='http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/"; var tmp = unAbbrev(lnk[j]); var icon = "link.gif'>"; if (tmp.match('myspace')){ icon = "myspace.gif'>" } if (tmp.match('facebook')){ icon = "facebook.gif'>" } if (tmp.match('twitter')){ icon = "twitter.gif'>" } if (j==0) { $(this).attr('href',tmp).html(img+icon) } else { $(this).parent().append("<a href='" + tmp + "'>" + img + icon + "</a>"); } } }) function unAbbrev(t){ var t2 = t.split(':'); if (t2[0]=="ms") return "http://www.myspace.com/" + t2[1]; if (t2[0]=="fb") return "http://www.facebook.com/profile.php?id=" + t2[1]; if (t2[0]=="tw") return "http://twitter.com/" + t2[1]; return t; }})</script>