Jump to content

Iframe help.


rswildy

Recommended Posts

Ok guys, i've created a frame linking to a diffrent site, its a worldswitcher for runescape.com anyway, i turned scrolling OFF, now.. I would like it to scroll to the bottom of the iframe so you only see the game and not the ad above so it fits on screen anyone help?

Link to comment
Share on other sites

<a href="http://above3.runescape.com/lang/en/aff/runescape/game.ws?lowmem=1&plugin=0" target="content">8</a>

it opens in "content" but my frame isnt big enough, how do i get it to show the bottom of the page being displayed in the frame, this is because im going to turn scrolling off on my frames.

<a href="http://above3.runescape.com/lang/en/aff/runescape/game.ws?lowmem=1&plugin=0#bottom" target="content">8</a>

doesn't work.

Link to comment
Share on other sites

If you've tried target and it doesn't work, look into using the scrollTo method of the HTML DOM:http://www.w3schools.com/htmldom/met_win_scrollto.asphttp://www.w3schools.com/js/tryit.asp?file...window_scrolltoYou can call the scrollTo method on your iframe object:

var myFrame = document.getElementById("myFrameID");myFrame.scrollTo(0, 500);

After you scroll the frame, perhaps you could then hide the scrollbars:

myFrame.style.overflow = "hidden";

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...