There are many ways to approach this. The idea is to be able to detect exactly the URL of a slide when it's clicked on, and have that slide react to an onClick event that does something based on the URL of the slide. Going for the unobtrusive approach, you can try something like the following:
Code:
<div id="wrapper">
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
new fadeshow(fadeimages, 140, 225, 0, 3000, 1, "R")
</script>
</div>
<script type="text/javascript">
var fadewrapper=document.getElementById("wrapper")
fadewrapper.onclick=function(e){
if (typeof e=="undefined"){
var e=window.event
e.target=e.srcElement
e.preventDefault=function(){return false}
}
var targetlink=(e.target.parentNode.tagName=="A")? e.target.parentNode : null
if (targetlink){ //if this slide is hyperlinked, do something onClick
alert(targetlink.href)
return e.preventDefault()
}
}
</script>
The code in red is new. In other words, you'd wrap your original initialization script that appears in the BODY of your page with a DIV that registers clicks on it. By default all that the code does is when the user clicks on a slide that's hyperlinked, it alerts the URL of that link and stops the link from loading (for easier testing). In reality you'll probably want to do something like:
Code:
var fadewrapper=document.getElementById("wrapper")
fadewrapper.onclick=function(e){
if (typeof e=="undefined"){
var e=window.event
e.target=e.srcElement
e.preventDefault=function(){return false}
}
var targetlink=(e.target.parentNode.tagName=="A")? e.target.parentNode : null
if (targetlink){ //if this slide is hyperlinked, do something onClick
if (targetlink.href.indexOf("example.com")!=-1)
pageTracker._trackPageview('/outgoing/example.com')
else if (targetlink.href.indexOf("cnn.com")!=-1)
pageTracker._trackPageview('/outgoing/cnn.com')
else if (targetlink.href.indexOf("dynamicdrive.com")!=-1)
pageTracker._trackPageview('/outgoing/dynamicdrive.com')
}
}
It's set up to detect if a certain string appears within the URL of the slide that's clicked on, and do something accordingly.
Bookmarks