function prompt_fun(a){ $(a).after("
"); if($('body').height()>$(window).height()){ $('#Layer1').height($('body').height()); }else{ $('#Layer1').height($(window).height()); } $('#Layer1').width($('body').width()); $(a).css({left:($('body').width()-$(a).width())/2,top:$(window).scrollTop()+($(window).height()-$(a).height())/2}); $('#Layer1').fadeTo("fast",0.6); $(a).show(); console.log('ok111'); } function close_prompt_fun(a){ $(a).hide(); document.getElementById("CuPlayer").innerHTML=''; $('.video_all').hide(); document.getElementsByTagName('body')[0].style.overflow=''; $('#Layer1').height(0); }