Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script type="text/javascript">
/***********************************************
* DHTML slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
function zxcEffect(o){
var img=document.getElementById(o.ID),ary=o.Array,hold=o.AutoHold,cnt=0,z0=0;
if (img&&typeof(ary)=='object'&&ary.constructor==Array){
o.ary=[];
for (var z0=0;z0<ary.length;z0++){
if (ary[z0]&&ary[z0][0]){
o.ary[cnt]=[new Image(),ary[z0][1]];
o.ary[cnt][0].src=ary[z0][0];
cnt++;
}
}
o.img=img;
o.a=img.parentNode.nodeName.toUpperCase()=='A'?img.parentNode:false;
o.cnt=0;
o.lgth=o.ary.length-1;
o.hold=typeof(hold)=='number'&&hold>0?hold:5000;
zxcEffect[o.ID]=o;
}
}
function zxcEffectAuto(id,ms){
var o=zxcEffect[id];
if (o){
o.to=setTimeout(function(){ zxcEffectNext(id,1,true); },typeof(ms)=='number'&&ms>0?ms:200);
}
}
function zxcEffectPause(id){
var o=zxcEffect[id],ud=typeof(ud)=='number'?ud<0?-1:1:1;
if (o){
clearTimeout(o.to);
}
}
function zxcEffectNext(id,ud,auto){
var o=zxcEffect[id],ud=typeof(ud)=='number'?ud<0?-1:1:1;
if (o){
zxcEffectPause(id);
o.cnt+=ud;
o.cnt=o.cnt<0?o.lgth:o.cnt>o.lgth?0:o.cnt;
o.img.filters.revealTrans.Transition=Math.floor(Math.random()*23)
o.img.filters.revealTrans.stop()
o.img.filters.revealTrans.apply()
o.img.src=o.ary[o.cnt][0].src;
o.img.filters?o.img.filters.revealTrans.play():null;
window.status="Image "+(o.cnt+1)+" of "+o.lgth;
if (o.a){
o.a.removeAttribute('href');
o.ary[o.cnt][1]?o.a.href=o.ary[o.cnt][1]:null;
}
auto?zxcEffectAuto(id,o.hold):null;
}
}
</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="2" height="22"><center>
<a><img src="http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg" id="photoslider1" style="filter:revealTrans(duration=2,transition=23)" border=0></center></td>
<script type="text/javascript">
/*<![CDATA[*/
zxcEffect({
ID:'photoslider1', // the uniuque ID name of the image. (string)
Array:[ // an array of arrays defining the image SRCs and optional HREFs. (array)
// field 0 = the image SRC
// field 0 = the optional HREF of the image parent link.
['http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg','http://www.vicsjavascripts.org.uk/'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt6.jpg'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt7.jpg','http://www.dynamicdrive.com/']
],
AutoHold:4000 //(optional) the auto rotate hold delay in milli seconds. (number, default = 4000)
});
/*]]>*/
</script> </tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="zxcEffectNext('photoslider1',-1);return false">Previous Slide</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="zxcEffectNext('photoslider1',1);return false">Next Slide</a></td>
</tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="zxcEffectAuto('photoslider1');return false">Auto</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="zxcEffectPause('photoslider1');return false">Pause</a></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="2" height="22"><center>
<a><img src="http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg" id="photoslider2" style="filter:revealTrans(duration=2,transition=23)" border=0></a></center></td>
<script type="text/javascript">
/*<![CDATA[*/
zxcEffect({
ID:'photoslider2',
Array:[
// field 0 = the image SRC
// field 0 = the Optional HREF of the image parent link.
['http://www.vicsjavascripts.org.uk/StdImages/Egypt5.jpg','http://www.vicsjavascripts.org.uk/'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt6.jpg'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt7.jpg'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt8.jpg'],
['http://www.vicsjavascripts.org.uk/StdImages/Egypt9.jpg','http://www.dynamicdrive.com/']
],
AutoHold:4000
});
/*]]>*/
</script> </tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="zxcEffectNext('photoslider2',-1);return false">Previous Slide</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="zxcEffectNext('photoslider2',1);return false">Next Slide</a></td>
</tr>
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="zxcEffectAuto('photoslider2');return false">Auto</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="zxcEffectPause('photoslider2');return false">Pause</a></td>
</tr>
</table>
<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://dynamicdrive.com">Dynamic Drive</a></font></p>
</body>
</html>
Bookmarks