GG wrote:
Is possible automatically scrolling frame using java script ???
var frame = parent.frames.frameName;
if (frame && frame.scrollBy) {
frame.scrollBy(0, 20);
}
scrolls the frame, if you want to repeat that use setInterval:
function scrollFrame (frame) {
frame.scrollBy(0, 20);
}
var timerId;
if (parent.frames.frameName) {
timerId = setInterval('scrollFrame(parent.frames.frameName); ', 50);
}
In reality you might also want to clear the interval timer once the
frame has been scrolled to the end but checking that requires browser
specific code.
--
Martin Honnen
http://JavaScript.FAQTs.com/