Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: lesk
Forum: JavaScript frameworks 11-14-2012, 11:07 PM
Replies: 12
Views: 524
Posted By lesk
Thumbs up I appreciate all the help you´ve given me :) ...

I appreciate all the help you´ve given me :)

I think I finally did it!

this is the JS:

$(window).scroll(function(){
if ($(window).scrollTop() > 200){
...
Forum: JavaScript frameworks 11-14-2012, 10:33 PM
Replies: 12
Views: 524
Posted By lesk
thanks for the link, will check it out. I...

thanks for the link, will check it out.

I have this now:

$(window).scroll(function(){
if ($(window).scrollTop() > 400){
$('#servicediv').css({position:'relative',top:400});
...
Forum: JavaScript frameworks 11-14-2012, 10:04 PM
Replies: 12
Views: 524
Posted By lesk
hmm de-bouncing script . I will look into that. ...

hmm de-bouncing script . I will look into that.

BUT.

I changed the code around and got this:

$(window).scroll(function(){
if ($(window).scrollTop() > 380){
...
Forum: JavaScript frameworks 11-14-2012, 09:41 PM
Replies: 12
Views: 524
Posted By lesk
Sorry! Changed it to if($('#servicediv'))...

Sorry!
Changed it to

if($('#servicediv')) {
$(this).scroll(function () {
if ($(window).scrollTop() > 380) {
$(this).stop().scrollTop(380);
}
});
}
Forum: JavaScript frameworks 11-14-2012, 09:06 PM
Replies: 12
Views: 524
Posted By lesk
Now it looks like this: ...

Now it looks like this:

$(window).scroll(function() {
if($('#servicediv')) {
$(window).scroll(function () {
if ($(window).scrollTop() > 380) {
$(window).scrollTop(380);
...
Forum: JavaScript frameworks 11-14-2012, 07:25 PM
Replies: 12
Views: 524
Posted By lesk
Jquery scroll to certain height problem

Hi, need help on this one getting real bald here :P
Im working on this website that one a page there has to be a restriction on how high you can scroll.
I have this div that is only showing a part...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT +1. The time now is 12:15 AM.