Forum Moderators: open

Message Too Old, No Replies

avoid automatic scrolling

         

mindre

9:32 pm on Oct 9, 2004 (gmt 0)

10+ Year Member



Hi guys,
I'm having a problem with the browser being forced to scroll.

I have an iframe inside a moveable div element. I'm not using a frameset. The document inside the iframe contains several named anchors, and when I link to them from outside the iframe, the browser window scrolls to place the named anchor not only at the top of the iframe, but on top of the browser window as well. I DON'T WANT THIS!

Extremely thankful for suggestions, the project has to be finished in a few days!

mindre

9:50 pm on Oct 9, 2004 (gmt 0)

10+ Year Member



Didn't make much sense, did it?
I'll try again:
I have two divs with id "left" and "right".
"left" contains an iframe with src="left.html"
"right" is static, while "left" moves vertically when i click links in "right" to position itself with it's top on the same height as the clicked link.

The links in "right" refers to named anchors in left.html. Clicking the links have three effects:
A) The "left" div moves to the clicked link (good)
B) The named anchor places itself at the top of the iframe (good)
C) The browser window scrolls to place the named anchor at the top of the browser window. Not good.

Hope that's clarifying!

GencTurk

7:21 am on Oct 11, 2004 (gmt 0)



Maybe :
if you link as <a href="filename.htm" target="right">
--> it will be okay.
But :
at the first time you have to add name to frames like as name="left" or name="right"
Good Luck...