वेबसाइट:Kiosko y más - Inicio सामग्री
Kioskoymás-Inicio@font-face{font-family:'Roboto';src:url('/css/v2/fuentes/Roboto-BoldCondensed.eot');src:url('/css/v2/fuentes/Roboto-BoldCondensed.eot?#iefix')format('embedded-opentype'),url('/css/v2/fuentes/Roboto-BoldCondensed.woff2')format('woff2'),url('/css/v2/fuentes/Roboto-BoldCondensed.woff')format('woff'),url('/css/v2/fuentes/Roboto-BoldCondensed.ttf')format('truetype'),url('/css/v2/fuentes/Roboto-BoldCondensed.svg#Roboto-BoldCondensed')format('svg');font-weight:600;}@font-face{font-family:'Roboto';src:url('/css/v2/fuentes/Roboto-Medium.eot');src:url('/css/v2/fuentes/Roboto-Medium.eot?#iefix')format('embedded-opentype'),url('/css/v2/fuentes/Roboto-Medium.woff2')format('woff2'),url('/css/v2/fuentes/Roboto-Medium.woff')format('woff'),url('/css/v2/fuentes/Roboto-Medium.ttf')format('truetype'),url('/css/v2/fuentes/Roboto-Medium.svg#Roboto-Medium')format('svg');font-weight:500;}@font-face{font-family:'Roboto';src:url('/css/v2/fuentes/Roboto-Light.eot');src:url('/css/v2/fuentes/Roboto-Light.eot?#iefix')format('embedded-opentype'),url('/css/v2/fuentes/Roboto-Light.woff2')format('woff2'),url('/css/v2/fuentes/Roboto-Light.woff')format('woff'),url('/css/v2/fuentes/Roboto-Light.ttf')format('truetype'),url('/css/v2/fuentes/Roboto-Light.svg#Roboto-Light')format('svg');font-weight:300;}if(!window.location.href.includes('Applauncher')&&!window.location.href.includes('Expresswebmode')&&!window.location.href.includes('Expresstextmode')){window['gt_enable_tcf_support']=true;window.sibboCMPParams={core:"",config:"cmp.sibbo.net/v2.2/cmp-configurations/web/sibbo-cmp-kioskoymas-com-es-config-web.json",development:false,useLoader:false,useDOMContentLoaded:true};constsibboInitCallback=()=>{constconsentSed=(tcData,success)=>{//Unavezelusuarioguardelacadenaif(success&&(tcData.eventStatus==='tcloaded'||tcData.eventStatus==='useractioncomplete')){registerCookieConsetSibbo(nid);}}__tcfapi('addEventListener',2,consentSed);}document.addEventListener('sibbo-init',sibboInitCallback);}/*varfpcookie=kym_getCookie('fastpurchase_logout_redir');kym_createCookie('fastpurchase_logout_redir',0,1,".kioskoymas.com","/","tech");if(fpcookie!=null&&fpcookie!=0){varfastpurchase_redir=decodeURIComponent(fpcookie);window.location.href=fastpurchase_redir;}*/functionshowSearchResults(resultArray){varcode='';for(vari=0;i=2){$.ajax({url:'/Buscador/dyn_buscar/'+encodeURIComponent(value)+'/10',success:function(response){varresultArray=JSON.parse(response.trim());if((resultArray)&&(resultArray.length>0))showSearchResults(resultArray);else$("#buscador-int").hide();},error:function(XML,textStatus,errorThrown){$("#buscador-int").hide();}});}else$("#buscador-int").hide();}functionpopUp(URL,purchase,details){purchase=purchase||0;details=details||0;$('#popup').attr('href',URL);$('#popup').click();closeaction='document.getElementsByClassName(\'mfp-close\')[0].click();';if(purchase!=0){$('.mfp-figurefigure').append('COMPRAR');}if(details!=0){$('.mfp-figurefigure').append('+DETALLES');}}functionpopUp2(URL,button1_text,button1_url,button2_text,button2_url){button1_text=button1_text||'';button1_url=button1_url||'';button2_text=button2_text||'';button2_url=button2_url||'';$('#popup').attr('href',URL);$('#popup').click();if(button1_text!=''){if(button1_text=='LEER'){closeaction='document.getElementsByClassName(\'mfp-close\')[0].click();window.location.href=\'';$('.mfp-figurefigure').append(''+button1_text+'');}else{closeaction='document.getElementsByClassName(\'mfp-close\')[0].click();';//window.location.href=\'$('.mfp-figurefigure').append(''+button1_text+'');}}if(button2_text!=''){$('.mfp-figurefigure').append(''+button2_text+'');}}$(document).ready(function(){$('.errorclose').click(function(){$('.errorframe').fadeOut();});$('.chooseclose').click(functionKiosko y más - Inicio (){$('.chooseframe').fadeOut();});$('.infoclose,.infosubmit').click(function(){$('.infoframe').fadeOut();})$("#alerta").click(function(){$("#cookies-alerta").fadeToggle();kym_createCookie('cookie_layer',1,3650,".kioskoymas.com","/","tech");});$("#buscador-inteligente").keyup(function(e){searchStuff();if(e.keyCode==13){varurl=$('#sl0').attr('link');if(typeofurl!=='undefined')if(url!='')document.location.href=url;}});$("#buscador-inteligente").click(function(){searchStuff();});$("body").click(function(){if($("#buscador-int").is(':not(:hidden)'))$("#buscador-int").hide();});$("#menu-desp").click(function(){$("#menuab").fadeToggle();$('html,body').animate({scrollTop:0},400);});$("#show_menu_alt").click(function(){$("header#header").toggleClass('show');$("#publicaciones_menu").css({'top':$('header').innerHeight()+'px','height':'calc(100vh-'+$('header').innerHeight()+'px)'});});$("#show_aside").click(function(){$("aside").toggleClass('visible');});if($("aside").length0){$('#loginbox').attr('href','#');}else{$('#loginbox').attr('href','/apo');}kym_reloadCartCounter();kym_reloadInboxCounter();kym_aalias(0);//AWININTEGRATIONkym_awin_integration();/**setInterval(function(){kym_aalias(1);},5*60*1000);//Cadacada5min*/if(typeofkymReady=='function')kymReady();/******POPUP******/$('#popup').mnificPopup({type:'ime'});//DSSNETWORK$("#menuab.closeMenu").click(function(){$("#menuab").fadeOut();});$("#publicaciones_menu").css({'top':$('header').innerHeight()+'px','height':'calc(100vh-'+$('header').innerHeight()+'px)'});$('header.button_submenu').on('click',function(){$('#publicaciones_menu').slideToggle(300);$(this).toggleClass('activeKiosko y más - Inicio ');});$('#publicaciones_menu.closeMenu').on('click',function(){$('#publicaciones_menu').slideUp(300);$('header.button_submenu').removeClass('active');});$('#button-buscador-inteligente').on('click',function(){$('#buscador-inteligente').toggleClass('show');if($('#buscador-inteligente').hasClass("show"))$('#buscador-inteligente').focus();else$('#buscador-inteligente').blur();$(this).toggleClass('active');$('header').toggleClass('pd');});$('header.user_options').on('click',function(){$('header.user_options.options').slideToggle(300);$(this).toggleClass('active');})$('body').on('click','#carritoframe_loaded.carritopricestr',function(){$('#carritoframe_loaded.carritopricestr').removeClass('active');$(this).addClass('active');})functionloadInbox(){$.ajax({url:'/Dynamic/getInboxCounter/'+userid+'?rand='+Math.random(),}).done(function(response){if(response>0){$('#inbox_counter').html(response).show();$('#inbox_counter_menu').html(response);$('#notifications').show();}else{$('#inbox_counter').hide();}}).fail(function(response){console.log("error");})}loadInbox();//ENDDSSNETWORK//ENDONLOAD});//Analitictrafficneedconsentfromuservar_paq=window._paq||[];/*trackermethodslike"setCustomDimension"shouldbecalledbefore"trackPeView"*/_paq.push(['trackPeView']);_paq.push(['enableLinkTracking']);_paq.push(['enableHeartBeatTimer']);if(('0'!='')&&('0'!='0'))_paq.push(['setUserId','0']);(function(){varu="//stats.kioskoymas.com/matomo/";_paq.push(['setTrackerUrl',u+'matomo.php']);_paq.push(['setSiteId','1']);vard=document,g=d.createElement('script'),s=d.getElementsByTName('script')[0];g.type='text/jascript';g.async=true;g.defer=true;g.src=u+'matomo.js';s.parentNode.insertBefore(g,s);})();(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-N8HDDXZ');//console.log("permisiongiven");(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='/gt/js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','AW-5');window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','AW-5');!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','connect.facebook.net/en_US/fbevents.js');fbq('init','');fbq('track','PeView');//console.log("checkpermission2");window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}gt('js',newDate());gt('config','AW-3');;logoCerrarPublicacionesPeriódicosRevistasTitularesCanjeatucódigoChequesregaloSuscriptorEdiciónImpresaOfertasTarifasParticularesEmpresasKyMPartnersContactoKioskoymásenFacebookKioskoymásenTwitterKioskoymásenLinkedinAceptarAñadirComprarPublicaciónenKioskoyMásAñadiralcarritoComprarahoraComprarCancelarlogoPUBLICACIONESTITULARESOFERTASPREMIUMBuscadorCarritodelacompra0Perfildeusuario0MicuentaNotificacionesMissuscripcionesCerrarsesiónPeriódicosGeneralistaDeportivaEconómicaInternacionalvertodosRevistasActualidadyFinanzasCazayPescaCocinaCorazónCulturayDivulgaciónDeportesEntretenimientoEstilodevidaFemeninasHogaryDecoraciónInfantilesMasculinasMotorMúsicaProfesionalesReligiónTecnologíaViajeseHistoriavertodasvarmyLazyLoad=newLazyLoad({elements_selector:".lazyload"});varnightEditions=JSON.parse('[]');varnightPublications=JSON.parse('[]');vartMostReaded=JSON.parse('"kym_most_readed"');varoffers;functiongetDay(date){returnparseInt(date.substr(6,2));}functiongetMonth(date){returnparseInt(date.substr(4,2));}functiongetYear(date){returnparseInt(date.substr(0,4));}//DSSNETWORKvarmeses=[0,'enero','febrero','marzo','abril','mayo','junio','julio','osto','septiembre','octubre','noviembre','diciembre'];functionget_pretty_date(day_or_date,month,year){if(day_or_date.length==8){day=getDay(day_or_date);month=getMonth(day_or_date);year=getYear(day_or_date);}else{day=day_or_date;}returnday+''+meses[month].charAt(0).toUpperCase()+meses[month].slice(1)+''+year;}//ENDDSSNETWORKfunctionbuildCarruselByCIDList(cidlist,elementname,maxitems){varimg_size=$(window).width()>576?'width:230px;height:310px':'width:180px;height:243px';$('#'+elementname).html('');varhtml='';for(vari=0;(i576?'width:230px;height:310px':'width:180px;height:243px';T1=Date.now();$.ajax({url:myURL,invoquedata:{myslider:slider,myelementname:elementname,myaltcidlist:altcidlist},success:function(response){vardata=JSON.parse(response.trim());buildCarruselByCIDList(data,this.invoquedata.myelementname,12);this.invoquedata.myslider.reloadSlider();},error:function(XML,textStatus,errorThrown){buildCarruselByCIDList(this.invoquedata.myaltcidlist,this.invoquedata.myelementname,12);}});}functionbuildCarruselByOffers(elementname,maxitems){varhtml='';$('#'+elementname).html('');varimg_size=$(window).width()>576?'width:230px;height:310px':'width:180px;height:243px';for(vari=0;(i''?offers[i].bigText:carruselDescription;//if(carruselBigText=='')carruselBigText=carruselDescription;//if(carruselDescription=='')carruselDescription=carruselBigText;if((carruselBigText!=''&&offers[i].details==0)||(carruselBigText!=''&&offers[i].cid=="cash")){carruselDetails=""+carruselBigText+"";}if(is_vip==1){info_text='TucuentaesVIPytienesaccesoatodosloscontenidos.¿Deseascontinuar?';info='href="jascript:;"onclick="jascript:kym_info(\''+info_text+'\',\'Continuar\',\''+carruselURL+'\')"';}else{info='href="'+carruselURL+'"';}varcapa=''+carruselDetails+''+carruselBigText+'Comprar'html+=''+capa+''+carruselDetails+'';html+=''+carruselTitle+'';}$('#'+elementname).append(html);myLazyLoad.update();/*varcarruselURL=offers[0].link;varcarruselIMG=offers[0].ime;varcarruselTitle=offers[0].title;varcarruselDetails=(offers[0].details+'').replace('.',',')+''+offers[0].details_info+'';varcarruselDescription=offers[0].description;varcarruselBigText=offers[0].bigText;//if(carruselBigText=='')carruselBigText=carruselDescription;//if(carruselDescription=='')carruselDescription=carruselBigText;if(carruselBigText!=''&&offers[i].details==0){carruselDetails=""+carruselBigText+"";}//DSSNETWORKvarcapa=''+carruselDetails+''+carruselBigText+'Comprar'varli=''+capa+''+carruselDetails+'';li+=''+carruselTitle+'';//ENDDSSNETWORKif($('#destacado1-title').is(':visible'))$('#'+elementname).append(li);else$('#'+elementname).prepend(li);*/}functionbuildCarruselByLibrary(elementname,library){varimg_size=$(window).width()>576?'width:230px;height:310px':'width:180px;height:243px';varcids_actives=[];$('#'+elementname).html('');varhtml='';for(vari=0;i576?'width:230px;height:310px':'width:180px;height:243px';$('#carruselPremium').html('');carrosuelcontent="";$.each(elems,function(i,elem){varcarruselIMG=elem.ime;varcarruselTitle=elem.title;varurlRead=elem.urlReadvarcapa=''+'PREMIUM'+'Leer';carrosuelcontent+=''+capa+''+'PREMIUM'+'';carrosuelcontent+=''+elem.title+'';});$('#carruselPremium').append(carrosuelcontent);slider.reloadSlider();myLazyLoad.update();}},error:function(XML,textStatus,errorThrown){kym_consoleLog("Offerscouldn'tbeloaded");$('.dcha-60-interior-premium').hide();//hideinexception}});}functionsetupLoggedHeaders(){$('#carrussel_title_1').html('LOMÁSLEIDO');$('.link-todas').find('a').attr('href','/Catalogo');$('.link-todas').find('a').html('VERTODO');$('#carrussel_title_2').html('MISSUSCRIPCIONES');$('.link-todas-1').find('a').html('VERTODO');$('.link-todas-1').find('a').attr('href','/Micarpeta');$('#carrussel_title_3').html('RECOMENDACIONESPARATI*');$('.link-todas-2').find('a').html('VERTODAS');$('.link-todas-2').find('a').attr('href','/Ofertas');$('#carrussel_premium').html('PREMIUM');$('.link-premium').find('a').attr('href','Micarpeta/suscripciones/premium');$('.link-premium').find('a').html('VERTODOS');$('.contenido-dcha-60').append($('(*)LastarifasdeofertaseaplicanexclusivamentealascomprasatrésdelaplataformawebdeKioskoyMás.Todaslasofertasestándisponiblesencantidadlimitada.Todaslassuscripcionessonautorrenovablesyrenovaránautomáticamentealpreciodetarifaalfinalizarelperiodocontratadoolossucesivos.Salvoqueseindiquelocontrariotodaslasofertassonválidasexclusivamenteparaparticulares.Algunaspromocionesyofertaspodríansersoloaplicablesanuevossuscriptoresdelmedio."'));}functionsetupAnonymousHeaders(){$('#carrussel_title_1').html('PERIÓDICOSMÁSLEIDOS');$('.link-todas').find('a').attr('href','/Catalogo/filtro/periodicos');$('.link-todas').find('a').html('VERTODOS');$('#carrussel_title_2').html('REVISTASMÁSLEIDAS');$('.link-todas-1').find('a').attr('href','/Catalogo/filtro/revistas');$('.link-todas-1').find('a').html('VERTODAS');if(!is_vip){$('#carrussel_title_3').html('OFERTASDESTACADAS*');$('.contenido-dcha-60').append($('(*)LastarifasdeofertaseaplicanexclusivamentealascomprasatrésdelaplataformawebdeKioskoyMás.Todaslasofertasestándisponiblesencantidadlimitada.Todaslassuscripcionessonautorrenovablesyrenovaránautomáticamentealpreciodetarifaalfinalizarelperiodocontratadoolossucesivos.Salvoqueseindiquelocontrariotodaslasofertassonválidasexclusivamenteparaparticulares.Algunaspromocionesyofertaspodríansersoloaplicablesanuevossuscriptoresdelmedio."'));}$('.link-todas-2').find('a').html('VERTODAS');$('.link-todas-2').find('a').attr('href','/Ofertas');$('#carrussel_premium').html('PREMIUM');$('.link-premium').find('a').attr('href','/Ofertas/premium?t=kym_carrusel_home_web_premium');$('.link-premium').find('a').html('VERTODO');}functioncheckCode(){$('#code').val($.trim($('#code').val()));if($('#code').val()!=''){returntrue;}returnfalse;}/////////////////////////////////////////////////////////////////ONREADY///////////////////////////////////////////////////////////////////////functionkymReady(){varlibrary='{}';is_vip=0;if(userid!=0){obj=JSON.parse(library);is_vip=obj.vip;}///////////////////////////////////////////////////////////////////HIGHLIGHTS///////////////////////////////////////////////////////////////////////$('.conte-med').eq(0).css('display','block');$('.conte-med').eq(0).addClass('active');$('.destacado-flecha-dcha').click(function(){$('.conte-med.active').hide();next=$('.conte-med.active').index();current=next-1;if(current+1==$('.conte-med').length)next=0;$('.conte-med').eq(current).removeClass('active');$('.conte-med').eq(next).addClass('active');$('.conte-med.active').fadeIn(200);});$('.destacado-flecha-izda').click(function(){$('.conte-med.active').hide();id=$('.conte-med.active').index();$('.conte-med').eq(id-1).removeClass('active');$('.conte-med').eq(id-2).addClass('active');$('.conte-med.active').fadeIn(200);});//////////////////////////////////////////////////////////////////////SLIDERS///////////////////////////////////////////////////////////////////////varslider1=$('#carrusel1').bxSlider({minSlides:1,maxSlides:4,slideWidth:$(window).width()>576?230:180,slideMargin:20,preloadImes:'visible',onSliderLoad:function(){$('#loading1').remove();}});varslider2=$('#carrusel2').bxSlider({minSlides:1,maxSlides:4,slideWidth:$(window).width()>576?230:180,slideMargin:20,preloadImes:'visible',onSliderLoad:function(){$('#loading2').remove();}});varslider3=$('#carrusel3').bxSlider({minSlides:1,maxSlides:4,slideWidth:$(window).width()>576?230:180,slideMargin:20,preloadImes:'visible',onSliderLoad:function(){$('#loading3').remove();}});varsliderPremium=$('#carruselPremium').bxSlider({minSlides:1,maxSlides:4,slideWidth:$(window).width()>576?230:180,slideMargin:20,preloadImes:'visible',onSliderLoad:function(){$('#loadingPremium').remove();}});if(userid==0||!checkCookieConsentPermission("ad")){setupAnonymousHeaders();getCIDsContent('Dynamic/getMostReaded/P','carrusel1',['2019','2317','2200','2196','2248','e222','2099','2195','2065'],slider1);getCIDsContent('Dynamic/getMostReaded/R','carrusel2',['2019','2317','2200','Kiosko y más - Inicio 2196','2248','e222','2099','2195','2065'],slider2);}else{getLibrary(userid,'carrusel2',slider2,slider1);}if(!is_vip){getOffers(userid,nid,'carrusel3',slider3);}getPremium(sliderPremium)//////////////////////////////////////////////////////////////////////LAYER/////////////////////////////////////////////////////////////////////////$(document).on('mouseenter','.item-capa',function(){$(this).find('.capa').fadeIn(300);});$(document).on('mouselee','.item-capa',function(){$(this).find('.capa').fadeOut(100);});$(document).on('click','.conte-lupa',function(){button1_text='';button1_url='';button2_text='';button2_url='';if($(this).attr('data-cid')){tcid=$(this).attr('data-cid');kym_push('kym_trackFrontpeview',['catalogo-'+tcid]);}if($(this).attr('data-button1-text')){button1_text=$(this).attr('data-button1-text');}if($(this).attr('data-button1-url')){button1_url=$(this).attr('data-button1-url');}if($(this).attr('data-button2-text')){button2_text=$(this).attr('data-button2-text');}if($(this).attr('data-button2-url')){button2_url=$(this).attr('data-button2-url');}popUp2($(this).attr('data-url'),button1_text,button1_url,button2_text,button2_url);});//ENDONREADY}COMPRARCOMPRARCOMPRARTerecomendamosvisitarnuestraseccióndeofertasespecialesparaobtenerlosmejoresdescuentosKioskoymás¿TIENESUNCÓDIGOPROMOCIONAL?CanjearTODALAACTUALIDADATUALCANCEDisponibleenlasprincipalesplataformasdedescarga $(document).ready(function(){ $(".txt-destacado").hide(); //CAMBIODEENLACESPOPULARES //$('.populares').html("REGALAKYM OFERTASPopular>>"); //CAMBIODEBANNERSDELAIZQUIERDA //varrandom=Math.floor((Math.random()*)+); html=''; $('.conte-med').eq(0).html(html); //AJUSTEDECSS(noseponeenelstyleporquenosesobrescribe) $('.conte-med').css('padding','0px'); $(".izda-40-interior2").hide(); //Sisolohayuncontenedordebanners,seocultalaflechaynoseponeelautoclick $(".flechas-destacado").hide(); //$("#destacadoHomeIzda").css('height','250px'); //$('#ad').css('height','250px'); //VerificarsielusuariohadadosuconsentimientoalascookiesdeGoogle constsibboInitCallbackBigOne=()=>{ variframeContent=document.getElementById('ad').querySelector('iframe').contentWindow.document.body.innerHTML; if(iframeContent==""){ checkTfcapiInterval=setInterval(waitForTfcapi,3000); }else{ if(iframeContent.includes('adsbygoogle')==true&&checkGoogleConsent()==false){ $('.conte-med').eq(0).hide(); } } } document.addEventListener('sibbo-init',sibboInitCallbackBigOne); }); Publicidad logo Privacidad Resolucióndelitigios Cookies Condicionesdeuso Contacto Legal Editoresparticipantes Socialmedia KioskoymásenFacebook KioskoymásenTwitter KioskoymásenLinkedin .overlay{opacity:1;background-color:#a00;position:fixed;width:100%;height:100%;top:0px;left:0px;z-index:1000;}.terms{ height:80%; width:80%; margin-top:10%; margin:auto; border:1pxdottedblack; overflow:scroll; background-color:#fff;}.termsAck{ width:80%; margin-top:10%; margin:auto; padding:10px; background-color:#a00; color:white;} $(window).on('load',function(){ if($("footer").length){ varh=$(window).innerHeight(); varhb=$("body").innerHeight()+$("footer").innerHeight()-30; if(h>hb)$("footer").css({ 'width':'100%', 'position':'absolute', 'top':'auto', 'left':'0', 'right':'auto', 'bottom':'0' }); if(checkGoogleConsent()){ (adsbygoogle=window.adsbygoogle||[]).push({}); $("#gAdsFooter").show(); } } }); $(function(){ $(window).on('scroll',scroll_funcs); functionscroll_funcs(){ a_top(); } functiona_top(){ scrollTop=$(window).scrollTop(); if(scrollTop>200)$(".scrolltop").fadeIn(400); else$(".scrolltop").fadeOut(400); } $(".scrolltop").on('click',function(){ $("html,body").animate({ scrollTop:0 },"slow"); returnfalse; }); });