On Apr 4, 1:24 pm, kuldeep <kuldeep.rathor...@gmail.com> wrote: > hi frds, > I have div in my code with the help javascript i cover that portion > black shaded background on loading. but if i scroll my page it wont > get exect position. it come different place.so any one why this > happening.
Hi, I have no experience with this, but I would give getScrollOffsets a try: window.scrollTo(0, 120); document.viewport.getScrollOffsets(); //-> { left: 0, top: 120 } See http://www.prototypejs.org/api/document/viewport/getscrolloffsets. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---