Skip to content

Instantly share code, notes, and snippets.

Created January 23, 2013 00:25
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/4600386 to your computer and use it in GitHub Desktop.
Save anonymous/4600386 to your computer and use it in GitHub Desktop.
<!-- wp_footer hook for Plugins -->
<link rel='stylesheet' id='contact-form-css' href='http://localhost/wp-content/plugins/contact-form/style.css?ver=3.5' type='text/css' media='all' />
</footer>
<!--END: Footer Section-->
<!--Javascript Indicator-->
<div class="indicator" id="js-ind"><a href="http://www.mimoymima.com/help/turning-javascript-on-and-off/" title="You don't have javascript enabled, click here to learn more.">Enable Javascript</a></div>
<!--Javascript Indicator-->
<script type="text/javascript">
/* Trophies */
$('.trophylnk').hoverIntent({over: ShowIt,out: HideIt,timeout: 100});
$('.trophies').mousemove( function(e) {
mouseX = e.clientX;
mouseY = e.clientY;
});
$('.trophies').ajaxComplete(function(event,request, settings){
$('.trophylnk').hoverIntent({over: ShowIt,out: HideIt,timeout: 100});
$('.trophies').mousemove( function(e) {
mouseX = e.clientX;
mouseY = e.clientY;
});
});
function ShowIt(){
var tWidth = Math.round((viewportWidth * 0.99) * 0.19);
$(this).find('.bottom-bg').css({'z-index': '100','top':mouseY,'left':mouseX}).fadeIn('fast');
}
function HideIt(){
$(this).find('.bottom-bg').css('z-index','0').fadeOut('fast');
}
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment