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 Chris Ianson on 03/24/06 13:19

"Dan" <dan@tobias.name> wrote in message
news:1143163344.765185.174020@e56g2000cwe.googlegroups.com...

> 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.

I thought I'd explained it pretty well but I guess not! ;)

Here's an example page of what I'm trying to create:
http://tinyurl.com/rnqow

View it in a 1024x768 window and try clicking the Go To End and Go To Start
links. You will see it allows the users to navigate around the panorama,
however it also makes the entire browser window scroll down, presumably in
an attempt to line up the bookmark.. ahem! sorry, I mean "name attribute
with a named link end for use with a link fragment identifier".

I hope the working example helps you understand what is going wrong.

 

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

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