PDA

View Full Version : How to: Scroll a inline frame from the main page.


DigitalMyth
11-04-2006, 06:22 PM
Hi,
I have an inline frame on a HTML page with a ID = "Screener" Width=100% Height=500.
I'm look for a way via Javascript or CSS to set the position of the Horizontal Scroll Postion on the inline frame. I have seen examples of how to scroll the main window. But not a inline frame.
Can anyone give me a example of how to set the scroll postion on a inline frame.

I also had the idea of using flash but i don't think i can run full PHP script inside a flash file. If this can be done can someone point me to a tutorial or a resource that descripts how do this.

Thanks
Digital.

jsebrech
11-05-2006, 03:03 PM
Scrolling a frame is no different from scrolling a window, because a frame is a window. You can access the window object for a frame by using window.frames["framename"] in its parent window.