Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: when-scrollbar-appears event


Message #1 by speedguru@m... on Fri, 22 Mar 2002 05:35:20
You should be able to compare the height of the users screen
(availHeight in IE I think) with the height of the content of the body
tag.  I think there was a thread recently on how to work out the height
of a tag.

Then if the height of the body element is larger than the availHeight
the condition where scrollbars are needed has arisen, and you fire off
the code you need, and the browser will display it's scrollbars

-----Original Message-----
From: speedguru@m... [mailto:speedguru@m...] 
Sent: Friday, March 22, 2002 5:35 AM
To: javascript
Subject: [javascript] when-scrollbar-appears event

hi,

i have a page which contains div tags some of which are hidden when the
page loads. when the hidden tags show up due to some user actions and
the page size increases & AT THE TIME WHEN THE SCROLLBAR APPEARS, I need
to SHOW a button.

in effect, the button must be shown only when a scrollbar appears in the
browser window. how can i achieve this ?

thanks for your time...


  Return to Index