PDA

View Full Version : iframe scroller at bottom.


mathias
10-09-03, 11:21 AM
Hi,

I have an IFRAME on my site which uses a html file as SRC that is too long for the IFRAME which result in a scroller.. everything is fine so far.

What I want is for the scroller to start at the bottom by default. ie I want the end of the SRC html-file to be visible first, then if someone wants to see the beginning of the file they would have to scroll UP...

Maybe there is some nifty little javafunction for this?



Thanks!

Perry
10-15-03, 02:33 PM
If you just want the iframe to come in as though you've scrolled to the bottom...

just put a named anchor at the bottom of the page and in your main page call the iframe like this

<iframe src="iframesource.html#bottom" ></iframe>

There are javascript functions like scrollTo, scrollBy that give you some control over scrolling.