On Nov 12, 12:12 pm, Kavitha <[email protected]> wrote:
> <script type="text/javascript">
>     //<![CDATA[

For heaven's sake, use a bit of initiative.

You've already been told that scrollTo() isn't going to be the best
way of doing this because it needs pixels and they are difficult to
calculate. Have you looked at Rossko's suggested link? There is also
scrollIntoView() 
http://www.java2s.com/Code/JavaScriptReference/Javascript-Methods/scrollIntoViewSyntaxParametersandNote.htm
which may help. That will require each element of your sidebar to be
given an id in order for scrollIntoView() to work on it.
scrollIntoView may not be supported in all browsers.

What ever you do, DO NOT post great wodges of code. No-one will wade
through them. If you have a lot of code like this, you must post a
link to a working page (not to a code listing, image or anything else
we can't run in a browser).

Andrew

--

You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=.


Reply via email to