View Full Version : <DIV> menu scrolls as scroll-bar is scrolled

07-16-2004, 09:20 PM
many of u might h've seen a such menu.
i myself has code ( i haven't written ), but i don't like its complexity.
can any1 help myself write this.

commonly seen dhtml are:
'<DIV> menu scrolls as scroll-bar is scrolled'
'message-scrolling in a <DIV> window'

we can change properties of javascript object easily.
we do image-rollovers etc. or change object properties
on mouseover, onmouseclick etc
we can also call a function using setTimeout()

but how new properties take effect e.g. scrollTo(x, y)
without page-refresh ?

if u understand what i mean, please reply.

Willy Duitt
07-16-2004, 09:56 PM

07-16-2004, 10:30 PM
Sounds like Plural of Royalty...:P

I think I understand what you mean...
This problem requires no JavaScript. There's a CSS property which can use to achieve this effect, called overflow (http://www.w3.org/TR/REC-CSS2/visufx.html#overflow).

Hope that helps!

Happy coding! :)

07-18-2004, 09:42 PM
i mean scrolling scroll-bar of browser !!
can i post u sample codes instead ??? :(
hope someone help me ..

04-05-2005, 12:23 PM
See, what I meant: