Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

todays challenge - stupid but tricky question!

Status
Not open for further replies.

WiccaChic

Technical User
Jan 21, 2004
179
US
Hi. I have an HTML app that includes a psuedo drop-down menu I created using some css and some vbs. It looks like so:
----------
|
option1 [] <-- vertical scroll bar
option2 |
option3 |
option4 |
option5 |

When a user clicks on say option3, that options child-options pop down directly underneath the parents options position, like so:

----------
|
option1 []
option2 |
option3 |
-op2a |
-op2b |
-op2c |
-op2d |
-op2e |
<cont> |

Well apparently, sometimes the child option menu includes so many options that they scroll out of sight and require the user to use the scroll bar to view the entire list. So users have "suggested" that I code this so that if they click on a parent menu option they would like the option list to position itself so that the selected option to position itself to the top of the scrolling area BEFORE popping down its child options. That way maybe they will see the entire list of child options, so the above example would look like so:

----------
option3 []
-op2a |
-op2b |
-op2c |
-op2d |
-op2e |
-op2f |
-op2g |
option4 |
option5 |

I know the "issue" is retarded and the result of lazy-@$$ users, but does my description make sense? If so, anyone know how to do this?
 
That looks promosing, but MS's example is pretty crummy. Anyone have a decent example of how to do this?
 
I ended up using scrollintoview, and it works fine in that it positions vertically in the right place. But it also moves the horizontal scroll and that screws up my frame. Is there a way to prevent horizontal scrolling? Not showing the scrowbar does not prevent the browser from being able to reposition apparently.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top