You are here: Re: Is it possible for a hyperlink to call TWO URLs? « HTML « IT news, forums, messages
Re: Is it possible for a hyperlink to call TWO URLs?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация