iframe nightmare

  • lvlacleod
  • Born
  • Born
  • lvlacleod
  • Posts: 3

Post 3+ Months Ago

Hi, i have a bit of a problem and hope someone here can help.
I want to link some of my menus options to open in an iframe, that parts not the problem. The problem is i want the part of the main page where the iframe is to always be at the top when any of the links are selected, similar to using the <a href> and <a name>.
So if there is anyone there that knows of a script to do this or if i am missing something really simple i would be very grateful
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Could you clarify that or give us an example of what you want? You'll get help much faster if you'd do that. :-)
  • lvlacleod
  • Born
  • Born
  • lvlacleod
  • Posts: 3

Post 3+ Months Ago

ok, if the iframe is near the bottom of the main page and i click on a link which is near the top of the main page i would have to scroll down to see what was in the iframe. is there any way when the link is selected the main page is scrolled up automatically so that u can see the iframe without scrolling?
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Okay, that makes much more sense! I think that this should work:

Code: [ Select ]
<a href="#go" onClick="parent.blah.location.href='AnotherPage.htm';">Click</a>

<a id="go" />
<iframe src="blah.html" name="blah" />
  1. <a href="#go" onClick="parent.blah.location.href='AnotherPage.htm';">Click</a>
  2. <a id="go" />
  3. <iframe src="blah.html" name="blah" />


There may be a better way, but this seems to work! :D
  • lvlacleod
  • Born
  • Born
  • lvlacleod
  • Posts: 3

Post 3+ Months Ago

Hmmm! tried that but all that happens is the main page goes back to the top. Thanks for your help anyway

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 102 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.