Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 22:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



JS Scroll problem

Discussion on JS Scroll problem within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Cc_Cc_Cc's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 418
Received Thanks: 17
JS Scroll problem

Hallo,

ich wollte es so machen , dass ich beim Runterscrollen, wenn es am Ende angekommen ist, er etwas ausgibt.

Der macht das aber nur wenn ich erst nach unten dann wieder nach oben scrolle. Ich wollte aber, dass er immer am ende etwas ausgibt. Woran liegt das?

Normal funktioniert es ja so:

HTML Code:
$(window).scroll(function() {
    if($(window).scrollTop() == $(document).height() - $(window).height()) {
          ...
    }
});

Da ich aber eine Modal Box habe und die height auf 500px ist und overflow-y müsste ich es irgendwas anders machen oder warum funktioniert es nicht?

HTML:

CSS:

JS:

Cc_Cc_Cc is offline  
Old 01/27/2019, 11:07   #2


 
False's Avatar
 
elite*gold: 0
The Black Market: 243/0/0
Join Date: Apr 2011
Posts: 11,115
Received Thanks: 2,436
Habe dir mal ein Beispiel erstellt


Dein Code kann ich nicht ganz nachvollziehen da z.B.
Code:
$('.result_reactions_data_users').height() - $('.result_reactions_data_users').height()
logischerweiße 0 ergibt...
False is offline  
Thanks
1 User
Old 01/28/2019, 07:16   #3
 
Cc_Cc_Cc's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 418
Received Thanks: 17
Quote:
Originally Posted by .ƒaℓsє. View Post
Habe dir mal ein Beispiel erstellt


Dein Code kann ich nicht ganz nachvollziehen da z.B.
Code:
$('.result_reactions_data_users').height() - $('.result_reactions_data_users').height()
logischerweiße 0 ergibt...
Danke dir hat geklappt
Cc_Cc_Cc is offline  
Old 01/30/2019, 15:53   #4
 
Cc_Cc_Cc's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 418
Received Thanks: 17
Quote:
Originally Posted by False View Post
Habe dir mal ein Beispiel erstellt


Dein Code kann ich nicht ganz nachvollziehen da z.B.
Code:
$('.result_reactions_data_users').height() - $('.result_reactions_data_users').height()
logischerweiße 0 ergibt...
Hab grad ein Problem gemerkt,

Wenn ich ein Container einfüge,

HTML Code:
<div class="container">
  <div class="a">
    <div class="b">
       Hier steht etwas....
    </div>
  </div>
</div>
CSS:
Code:
.container {
  height:75%;
}

.a {
 height: calc(100%);
}
Dann funktoniert das nicht. Ich wollte es so machen das der Scroll-Content sich bei jeder Höhe anpasst deswegen 100%.
Cc_Cc_Cc is offline  
Reply


Similar Threads Similar Threads
Vsro silk scroll and gift scroll doesn't work
10/17/2015 - SRO Private Server - 1 Replies
solved topic can delete
(ALB) WTS Effect Scroll - Megadolon Drop Scroll
01/09/2012 - Trading - 1 Replies
Im looking for plats just serious offers please
WTT 3X Scroll for Shuta( Come with ur Scroll)(Evengarda)
06/16/2010 - Archlord Trading - 1 Replies
İ want to change 4x Scroll for shuta ... u need to come with ur scroll



All times are GMT +1. The time now is 22:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.