不同图片不同链接代码
<SCRIPT LANGUAGE="JavaScript" defer>

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = "http://79100101.cnblogs.com/Emoticons/emsad.gif";
Pic[1] = "http://79100101.cnblogs.com/Emoticons/emembarrassed.gif";
Pic[2] = "http://79100101.cnblogs.com/Emoticons/emcry.gif";
Pic[3] = "http://79100101.cnblogs.com/Emoticons/emteeth.gif";
Pic[4] = "http://79100101.cnblogs.com/Emoticons/emsmilep.gif";

//地址url
var urls=new Array();
urls="http://blueidea.com;http://google.com;http://yahoo.com;http://baidu.com".split(/;/gi);
// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
document.images.SlideShow.title=urls[j];
document.getElementById("SlideShow").parentNode.href=urls[j];
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
</script>
<body onload="runSlideShow()">
<a href="#" target="_blank"><img id="SlideShow" style="border:0;width:200px;height:200px"/></a>