You are here: Re: Can a Hyperlink call a Javascript confirm prompt? « HTML « IT news, forums, messages
Re: Can a Hyperlink call a Javascript confirm prompt?

Posted by Chris Ianson on 03/18/06 13:52

Any ideas guys?

"Chris Ianson" <notme@hotmail.com> wrote in message
news:v2HSf.37635$wl.6919@text.news.blueyonder.co.uk...
> Hi, I have this JavaScript, which I only want to occur if a user clicks on
> a hyperlink hotspot in a large image:
>
> <script type="text/javascript">
> <!--
> var answer = confirm ("This link is not available, click OK to load a
> similar link, or Cancel to not.")
> if (!answer)
> window.location="http://www.yahoo.com/"
> // -->
> </script>
>
> To make matters more challenging, there are about 10 hotspots in the
> image, and I want them each to have a different value for window.location.
> I.e. if the user clicks OK in each hotspot, each one will redirect them to
> a different site.
>
> Any clever-clogs out there who can help out? :)
>
> Thanks in advance.
>

 

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

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