Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. $(document).ready(function () {
  2. $('div[id^=domainEnter]').mouseenter(function () {
  3.  
  4.  
  5. toggleSearchDisplay($(this).attr('domaincount'), 'show');
  6.  
  7. });
  8. });
  9.  
  10. function toggleSearchDisplay(num, showhide) {
  11.  
  12. if ($('div[id=domainDiv' + num + ']').css('display') == "block" || showhide == "hide") {
  13. $('div[id=domainDiv' + num + ']').hide('fast');
  14. $('a[id = domainLink' + num + ']').text('+');
  15. $('input[id ^= SearchControls_' + num + '__SearchControlVisible]').val('false');
  16. } else {
  17.  
  18. $('div[id=domainDiv' + num + ']').show('fast');
  19. $('a[id = domainLink' + num + ']').text('-');
  20. $('input[id ^= SearchControls_' + num + '__SearchControlVisible]').val('true');
  21.  
  22.  
  23. }
  24. }
  25.  
  26. $('div[id^=domainEnter]').mouseenter(setTimeout(function () {
  27.  
  28. toggleSearchDisplay($(this).attr('domaincount'), 'show');
  29.  
  30. },1000));
  31.  
  32. $('div[id^=domainEnter]').mouseenter(function () {
  33.  
  34. setTimeout(toggleSearchDisplay($(this).attr('domaincount'), 'show'),1000);
  35.  
  36. });
  37.  
  38. $('div[id^=domainEnter]').mouseenter(function(){
  39. var $this = $(this);
  40. setTimeout(function () {
  41. toggleSearchDisplay($this.attr('domaincount'), 'show');
  42. },1000)
  43. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement