Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $('div[id^=domainEnter]').mouseenter(function () {
- toggleSearchDisplay($(this).attr('domaincount'), 'show');
- });
- });
- function toggleSearchDisplay(num, showhide) {
- if ($('div[id=domainDiv' + num + ']').css('display') == "block" || showhide == "hide") {
- $('div[id=domainDiv' + num + ']').hide('fast');
- $('a[id = domainLink' + num + ']').text('+');
- $('input[id ^= SearchControls_' + num + '__SearchControlVisible]').val('false');
- } else {
- $('div[id=domainDiv' + num + ']').show('fast');
- $('a[id = domainLink' + num + ']').text('-');
- $('input[id ^= SearchControls_' + num + '__SearchControlVisible]').val('true');
- }
- }
- $('div[id^=domainEnter]').mouseenter(setTimeout(function () {
- toggleSearchDisplay($(this).attr('domaincount'), 'show');
- },1000));
- $('div[id^=domainEnter]').mouseenter(function () {
- setTimeout(toggleSearchDisplay($(this).attr('domaincount'), 'show'),1000);
- });
- $('div[id^=domainEnter]').mouseenter(function(){
- var $this = $(this);
- setTimeout(function () {
- toggleSearchDisplay($this.attr('domaincount'), 'show');
- },1000)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement