Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2012 03:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1549126 to your computer and use it in GitHub Desktop.
Save anonymous/1549126 to your computer and use it in GitHub Desktop.
s = document.createElement('script');
s.setAttribute('type','text/javascript');
s.innerHTML = "$(document).ready(function(){var a = $('#Content a');a.mouseenter(function(){var This = this;a.each(function(){if(this.innerHTML == This.innerHTML && this.href.match('/member/') && (this.childNodes[0].nodeType != 1)){this.style.cssText += ';background:yellow;border-radius:3px;box-shadow:0 0 2px #999;-webkit-transition:background-color 2s ease;-moz-transition:background-color 2s ease;-o-transition:background-color 2s ease;transition:background-color 2s ease;';this.zfoucsed = true;};});}).mouseleave(function(){a.each(function(){if(this.zfoucsed){this.zfoucsed = undefined;this.style.cssText += ';background:transparent;box-shadow:0 0 0 #999;';}});});});";
document.body.appendChild(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment