|
Posted by Chris Ianson on 03/18/06 00:50
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]
|