dcsimg
Scrolling to Particular div in HTML
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chelikani_madhukumar
Posted On:   Monday, May 10, 2004 12:41 PM

Hi ,

I have Left Navigation Frame , Header Frame and content Frame. When I click on one item on the left navigation pane it should scroll to particular div in the content pane.
I would appreciate if any one can give me an example or guide me.

Thanks,
Madhu

Re: Scrolling to Particular div in HTML

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, May 10, 2004 02:41 PM

Maybe it would be easiest to define an "a" anchor there inside the div ("a name='myanchor'"), and in the onclick, set the location, in the desired frame, to that anchor e.g. mypage#myanchor?


otherwise there are FAQ entries here about using scrollTo with absolute X,Y positioning which sounds a lot messier (you'd have to get the coordinates of the div, I guess?).

About | Sitemap | Contact