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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with scrollbars in js 1

Status
Not open for further replies.

miseo

Programmer
Jan 11, 2004
9
AU
I have a menu system that works extremely well, but when the content in the page overflows, so that the scrollbar comes up its a bit hard to see the stuff at the bottom and so as soon as I click on an Item in the menu I want it to scroll down, based on the position of where it is in the screen. If you can help me this will be good.

I have another problem too, Inside my framset object for a certain page I have scrolling="auto" and this is good for all pages but one, because the browser thinks that this one page is over 1 screen, but when you look at it in a browser, its not and there is nothing in the html that would make it anyway, so I need a way, preferably in js, to make the scrollbars disappear in this particular frame only for this one page and appear defaultly in the frame, every other time, if its possible, that is
 
Look at the CSS [tt]overflow[/tt] attribute. You probably don't need JavaScript to do what you want.

________________________________________
[hippy]Roger J Coult; Grimsby, UK
In the game of life the dice have an odd number of sides.
 
there is no url available at the moment, since it's a lot of hassle to get the pages uploaded and that to my server, since I don't have high enough clearance to do it. Also, I have tried the overflow and this doesn't do a thing, because the scrolling attribute in the page that includes the frameset tag seems to overwrite it somehow and everything else I try from other websites that do the same thing, it doesn't work on mine. :(
 
the scrollIntoView method worked great!:-D, the name tag idea also worked (I forgot about that one, when I was posting this), now onto the second problem
 
I got the second problem fixed, there was a picture used as a vertical line down the side and it was longer than the screen, so I just had to make it shorter and it worked, sorry to trouble u all about these non js problems
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top