|
Posted by Vic Sowers on 03/18/06 14:10
"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.
>
Try setting the href="http://www.yahoo.com/" and onClick="return confirm("Do
you really want Yahoo?')"
[Back to original message]
|