You can put linked images in the Crawler:
Code:
<div class="marquee" id="vacation">
<a href="image_01.jpg"><img src="image_01_tbn.jpg" alt=""></a>
<a href="image_02.jpg"><img src="image_02_tbn.jpg" alt=""></a>
<a href="image_03.jpg"><img src="image_03_tbn.jpg" alt=""></a>
<a href="image_04.jpg"><img src="image_04_tbn.jpg" alt=""></a>
<a href="image_05.jpg"><img src="image_05_tbn.jpg" alt=""></a>
<a href="image_06.jpg"><img src="image_06_tbn.jpg" alt=""></a>
<a href="image_07.jpg"><img src="image_07_tbn.jpg" alt=""></a>
<a href="image_08.jpg"><img src="image_08_tbn.jpg" alt=""></a>
<a href="image_09.jpg"><img src="image_09_tbn.jpg" alt=""></a>
<a href="image_10.jpg"><img src="image_10_tbn.jpg" alt=""></a>
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'vacation',
style: { //style object for this marquee container (use quotes on both sides of the : as shown)
'width': '100%',
'height': '66px',
'background-color': '#ddd',
'border': '1px solid #111',
'margin': '2ex auto 0 auto'},
inc: 3 //speed - pixel increment for each iteration of this marquee's movement
});
</script>
If you want those links to have onclick functions, you can do that too:
Code:
<div class="marquee" id="vacation">
<a href="image_01.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_01_tbn.jpg" alt=""></a>
<a href="image_02.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_02_tbn.jpg" alt=""></a>
<a href="image_03.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_03_tbn.jpg" alt=""></a>
<a href="image_04.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_04_tbn.jpg" alt=""></a>
<a href="image_05.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_05_tbn.jpg" alt=""></a>
<a href="image_06.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_06_tbn.jpg" alt=""></a>
<a href="image_07.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_07_tbn.jpg" alt=""></a>
<a href="image_08.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_08_tbn.jpg" alt=""></a>
<a href="image_09.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_09_tbn.jpg" alt=""></a>
<a href="image_10.jpg" onclick="enlargeimage(this.href); return false;"><img src="image_10_tbn.jpg" alt=""></a>
</div>
<script type="text/javascript">
marqueeInit({
uniqueid: 'vacation',
style: { //style object for this marquee container (use quotes on both sides of the : as shown)
'width': '100%',
'height': '66px',
'background-color': '#ddd',
'border': '1px solid #111',
'margin': '2ex auto 0 auto'},
inc: 3 //speed - pixel increment for each iteration of this marquee's movement
});
</script>
Only, since enlargeimage isn't defined in the crawler script, you would have to add it to the page, ex:
Code:
<script type="text/javascript">
function enlargeimage(path, optWidth, optHeight){ //function to enlarge image. Change as desired.
var actualWidth=typeof optWidth!="undefined" ? optWidth : "600px" //set 600px to default width
var actualHeight=typeof optHeight!="undefined" ? optHeight : "500px" //set 500px to default height
var winattributes="width="+actualWidth+",height="+actualHeight+",resizable=yes"
window.open(path,"", winattributes)
}
</script>
You would put that in the head of the page.
Or (though depending upon which exact script you choose, this could be a little tricky) you could use another script for the viewer, like Lightbox or one of many of the Lightbox type scripts and viewers available around the web.
Bookmarks