Results 1 to 3 of 3
Thread: jQuery!
Hybrid View
-
18th September 2011 10:08 #1
jQuery!
! : . 1 , . : id, ( ).Code:<script> $(function(){ $('.music_link').mouseenter(function() { var divid = $(this).attr('val'); $.get('ajax.php?func=test', { id: divid } , function(data){ $('.music_link').mousemove(function(e){ var pageCoords = '( ' + e.pageX + ', ' + e.pageY + ' )'; var p = $('.music_link').position(); var space = 0; var top=e.pageY; var left=e.pageX+10; $('#status').show().html('<div class=\'popup\' style=\'top: '+top+'px; left: '+left+'px;\'>'+data+'</div>'); }); }); }).mouseleave(function() { $('#status').hide().html(''); }); }); </script>
-
18th September 2011 11:14 #2
, . .mouse_link, . , . , $('.music_link').mousemove(). . p space , ...
Fujistu Lifebook E756 | Core i7-6500U / 400MHz-3.1GHz | 8 GB DDR4-2133 | Samsung PM871 / 256 GB SSD | 15" 1920x1080 | Manjaro Linux + kernel 4.19
-
18th September 2011 12:39 #3Code:
<script> $(function(){ $('.music_link').mouseenter(function(e) { var top=e.pageY+15; var left=e.pageX+15; $('#status').fadeIn('fast').html('<div class=\'popup\' style=\'top: '+top+'px; left: '+left+'px;\'><center><img src=\'image/loading.gif\'></center></div>'); var divid = $(this).attr('val'); $.get('ajax.php?func=test', { id: divid } , function(data){ $('#status').fadeIn('fast').html('<div class=\'popup\' style=\'top: '+top+'px; left: '+left+'px;\'>'+data+'</div>'); }); }).mouseleave(function() { $('#status').fadeOut('fast'); }); }); </script>
! -




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in