I have a frameset with a menu. The menu is filled from a database and has several levels.
So, if the menu 'unfolds' it is sometimes longer than the page... which makes the scrollbar appear.
Now: I DON'T WANT THAT. :)
What I want, is a script which checks if the page is getting longer than the frame. If so, I want it to display two buttons to scroll up and down in the page.
Can anyone please help me? I can't find it on the internet. I have tried some, but somehow the scripts won't work. (Maybe because I use a lot of PHP and database scripting???)
why dont you use a inline frame? much simpler.
use an iframe and then put the scrollers next to it like i do on http://www.nathantech.com/~nathan it turns the iframe into a layer kind of, i really dont uderstand it though :)
Instead of createing a new thred I will just ask my question as part of this thread.
look at the links i posted theres an example in there
Okay, those links are helpfull, though what I want to do is have two (2) images that act as the up and down button of the scroll bar without the actual bar bit inbetween.
sry just being lazy at the moment. if you cant get it to work i will d it for u
The link that you are showing doesn't seem to work in Mozilla (1.0rc1).
what I have been trying to do is manipulate window.pageYOffset
I am not sure if this can be manipulated.
Thanks for your help so far.
Okay I have figured out how to do what I wanted.
to scroll a particular frame the code is
x and y are both pixle values that scroll the window by the specified amount of pixles.
you have these methods as well just to let you know
window.scrollTo(iX, iY) //or
window.scroll(iX, iY) //or