need a quick answer please. (disable scroll bar for 'x' amount of seconds)

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

bikerbcs

Thread Starter
Joined
Oct 10, 2005
Messages
103
i want to be able to disable scrolling on my website for a specific amount of seconds, is there a javascript code I can use? thanks. im not very good with html and web development and I need this.
 

DrP

Joined
Jul 23, 2005
Messages
739
jQuery:

Code:
$("body").css("overflow", "hidden");
var showBars = function() {
    $("body").css("overflow", "auto");
}

// show the scroll bars after 3 seconds
setTimeout(showBars, 3000);
You'll need jQuery, if you don't know...
 
Joined
Apr 23, 2009
Messages
1,156
Is your intention to piss off users so they never come back?
That's the net effect it will have.
 

DrP

Joined
Jul 23, 2005
Messages
739
Is your intention to piss off users so they never come back?
That's the net effect it will have.
Gulp! I thought you were complaining I wasn't being helpful, at first, but then worked out what you mean! Don't you think, if used well, this might work to focus visitors on an advert? Actually, yeah, you're right - terrible idea!
 
Joined
Jan 17, 2011
Messages
10
Is your intention to piss off users so they never come back?
That's the net effect it will have.
Not if you have a big page and want to allow some if not most too load, set the timer to one second, this wouldn't 'piss' off users in my opinion.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top