|
Posted by Dan on 03/24/06 03:22
Chris Ianson wrote:
> I have achieved this without any need for flash or QuickTime, by drawing a
> layer on the image, and placing a bookmark in it. Now users can jump to
> different parts of the image. It works perfectly, except the browser also
> scrolls the main window all the way down, which causes the iframe position
> to scroll up the page. It stays in view, but the stuff above it does not,
> and that's the problem.
It would really help if we could see an actual URL that demonstrates
this effect, so we don't just have to make blind guesses as to the
actual code you are using. A simple targetted hyperlink doesn't have
the "jumping" effect that you're citing, so perhaps you're doing some
silly thing like using an "onclick" JavaScript event on a hyperlink to
"#" alone, which indeed causes a pointless "jump" in the original page.
The best solution to this is not to do that; simply use the
destination URL in the "href" attribute and use a "target" attribute to
target the iframe. If for some reason it's actually necessary to have
an action take place in an "onclick" event without a real target URL in
the "href" attribute, you can end the JavaScript code with "return
false;" to suppress the jump, but you're still introducing
accessibility problems by not having your site work without Javascript.
--
Dan
Navigation:
[Reply to this message]
|