WebSite X5Help Center

 
Karl B.
Karl B.
User

Button für Rückkehr zum Seitenanfang wird nicht angezeigt  de

Autor: Karl B.
Visited 916, Followers 1, Udostępniony 0  

Obwohl unter 2 Textstil der Haken bei "Anzeigen" gesetzt ist und die "page-to-top.png auf dem Server im style-Ornder liegt, wird der Button nicht angezeigt. Was läuft das falsch?

Posted on the
2 ODPOWIEDZI
Franz-Josef H.
Franz-Josef H.
Moderator

Kann man das online sehen? 

Czytaj więcej
Posted on the from Franz-Josef H.
Karl B.
Karl B.
User
Autor

Alles gut, ich hatte den Code gelöscht.

<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<style>
/*To top Style*/
#imPageToTop { position: fixed; bottom: 30px; left: 30px; z-index: 5000; display: none; opacity: 0.75 }
#imPageToTop:hover {opacity: 1; cursor: pointer; }
</style>
<script>
/*To top code*/
$(document).ready(function(){
var height = $(window).height();
$(window).scroll(function() {
if ($(this).scrollTop()>300)
{
$('#imPageToTop').show('fast');
}
else
{
$('#imPageToTop').hide('fast');
}
});
$('#imPageToTop').on('click',function(event){
event.preventDefault();
$('html, body').animate({
scrollTop: 0
}, 10000, 'swing');
});
});
</script>

Czytaj więcej
Posted on the from Karl B.