0
Im Working on this page:http://gpt.hernan.org/gpnew/v1%20(Referrals%20hover).html 当鼠标悬停在推荐按钮上时,会出现一个背景覆盖图,我需要它逐渐显示。也许有些淡入或淡出动画。在鼠标上淡出背景覆盖
我正在使用此脚本使覆盖运行。
<script type="text/javascript">
(function(){
$('#coins').on('mouseenter', function(){
var w = $(window).width();
var h = $(window).height();
$('<div></div>').appendTo('body').
addClass('overlay').css({ 'width': w, 'height': h });
}).on('mouseleave', function(){
$('.overlay').remove();
})
})();
</script>