cam
09-12-2005, 10:31 PM
The site I am working on has a small iframe which displays various documents/images. The links on the main page target the iframe and all work fine with the exception of one document. The problem document is a long document with several named anchors. When the document is called up by the links it loads correctly but, the entire webpage "jumps" upward so that the top of the iframe is right up under the browser address bar and the top of the webpage disappears under the browser bar as though the whole page were scrolled upward. This only happens when viewing at resolutions of 1024x768 or less. Does anyone have any ideas how to fix this other than to make each section of the document a smaller seperate document?
Code for main page:
<td><iframe name="window" id="window" src="edit/home.html" width="384" height="380" frameborder="0" scrolling="auto" marginwidth="1" marginheight="1">no frames text</iframe></td>
Code for image links:
<a href="edit/members.html#fch" target="window"><img src="images/logo_fch.jpg" width="80" height="66" border="0"></a>
Code to name section of doc to be displayed in iframe:
<a name="fch" id="fch"></a>
<a name="whh" id="whh"></a> etc
Would appreciate any assistance on this prob - am going grey over this, and it doesn't suit me. :p
Code for main page:
<td><iframe name="window" id="window" src="edit/home.html" width="384" height="380" frameborder="0" scrolling="auto" marginwidth="1" marginheight="1">no frames text</iframe></td>
Code for image links:
<a href="edit/members.html#fch" target="window"><img src="images/logo_fch.jpg" width="80" height="66" border="0"></a>
Code to name section of doc to be displayed in iframe:
<a name="fch" id="fch"></a>
<a name="whh" id="whh"></a> etc
Would appreciate any assistance on this prob - am going grey over this, and it doesn't suit me. :p