By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,520 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,520 IT Pros & Developers. It's quick & easy.

Can you detect when a browser slide bar is moved?

P: n/a
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?

Jul 23 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a
On 14 Feb 2005 21:08:20 -0800 Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?


Why is it people always want to try to take 100% control of MY browser?
There are some things that are meant NOT to be touched.
Please leave it alone thank you.
All that will do is force your visitors to leave, quickly.
Jul 23 '05 #2

P: n/a
Richard wrote :
On 14 Feb 2005 21:08:20 -0800 Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?


Why is it people always want to try to take 100% control of MY browser?
There are some things that are meant NOT to be touched.
Please leave it alone thank you.
All that will do is force your visitors to leave, quickly.


He didnt say he wanted to take control of it. He said that he wanted to
detect it.

--
dance with children in the rain

Jul 23 '05 #3

P: n/a
Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?


Read this thoroughly:

<URL:http://www.quirksmode.org/viewport/compatibility.html>

Attempting any viewport dimension detection and logic is fraught
with danger. You may be interested in scrollLeft - abuse at your
own peril.
--
Fred
Jul 23 '05 #4

P: n/a
On Mon, 14 Feb 2005 23:20:38 -0600, "Richard" <An*******@127.001>
wrote:
Why is it people always want to try to take 100% control of MY browser?


Because for you, RtS, we think we'd do a better job of driving it.

Jul 23 '05 #5

P: n/a
Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?

You may be interested in scrollLeft - no, forget it. I just noticed
someone else has posted that answer with the URL as well, so ignore me.

One thing springs to mind though... *why8 do you want to detect it? You
obviously want to do something and (frankly) I'd rather you didn't. Its
my browser, set up my way at my chosen size doing what I choose to let
it do. Please don't interfere with it.
Jul 23 '05 #6

P: n/a
Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?

Can a TV company detect when I turn up teh volume on my television set?

--
www.fixaphoto.co.uk
for photographic restorations
Jul 23 '05 #7

P: n/a
Els
Fat Sam wrote:
Matt MC wrote:
I want to create a routine that detects when the browser
scroll/slider bar is moved, executing a JavaScript()
function,.....is this possible at all?

Can a TV company detect when I turn up teh volume on my
television set?


Only if you live next door to them :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Now playing: Squeeze - Dr. Jazz
Jul 23 '05 #8

P: n/a
Fat Sam wrote:
Can a TV company detect when I turn up teh volume on my television

set?

Actually depending on the system, the capabilities to do so are there.

--
-=tn=-

Jul 23 '05 #9

P: n/a
Fat Sam wrote:
Can a TV company detect when I turn up teh volume on my television

set?

They don't need to. They do it for you when the commercials come on.

Jul 23 '05 #10

P: n/a
Yep, actually this is for a <iframe> area with a terms of use
agreement, that I want people to completely read before triggering an
event.

Jul 23 '05 #11

P: n/a
Matt MC wrote:
Matt MC wrote:
I want to create a routine that detects when the browser scroll/slider
bar is moved, executing a JavaScript() function,.....is this possible
at all?
... actually this is for a <iframe> area with a terms of use
agreement, that I want people to completely read before triggering an
event.


Use a form with a submitbutton ("accepted") at the end of the terms of use.
If it's a long text, split the text up in smaller parts. At the bottom of
each part buttons like "Read part 1", "Read part 2", "Part 3" ... Acceptance
only possible when all parts are opened.
Since it seems to be important: use server side scripting instead of JS.

--
Nico
http://www.nicoschuyt.nl
Jul 23 '05 #12

P: n/a
Matt MC wrote:
Yep, actually this is for a <iframe> area with a terms of use
agreement, that I want people to completely read before triggering an
event.


You can't guarantee that they actually read anything. If you
want them to scroll to the bottom, put your accept/decline
buttons at the very bottom of the iFrame.
--
Fred
Jul 23 '05 #13

P: n/a
Google groups seems to have something like the OT requested, that
causes a "Topic:" <div> overlay when the scrollbar is moved past a
certain point. Not sure how they did it though.........

Jul 23 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.