function zxcExternal(zxcfun){ // Example to call a function where the obj.url(field 2 of the array) is 'FunctionName^|^functionparameter' // function 'FunctionName' will be called passing 'functionparameter' as a parameter var zxcdata=zxcfun.split('^|^'); window[zxcdata[0]](zxcdata[1]); } // **** Customising Variables var zxcBGColor='#B1D1FC'; // The default background color of banner elements (string) var zxcTxtColor='black'; // The default text color of banner elements (string) var zxcTxtAlign='center'; // The default text alignment of banner elements (string) var zxcFontSize='22px'; // The default font size of banner elements (string) var ImgPath=''; var ContentAry=[ImgPath]; ContentAry[1]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415110455_0.jpg','photogallery.php?aid=18',84,70,'#F2F2F2']; ContentAry[2]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415110441_1.JPG','photogallery.php?aid=18',84,70,'#F2F2F2']; ContentAry[3]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415110441_0.JPG','photogallery.php?aid=18',84,70,'#F2F2F2']; ContentAry[4]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20091001121029_0.jpg','photogallery.php?aid=17',84,70,'#F2F2F2']; ContentAry[5]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20091001121015_0.jpg','photogallery.php?aid=17',84,70,'#F2F2F2']; ContentAry[6]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20091001121003_0.jpg','photogallery.php?aid=17',84,70,'#F2F2F2']; ContentAry[7]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090923040940_0.jpg','photogallery.php?aid=16',84,70,'#F2F2F2']; ContentAry[8]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100813020830_0.JPG','photogallery.php?aid=15',84,70,'#F2F2F2']; ContentAry[9]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100813020851_0.JPG','photogallery.php?aid=15',84,70,'#F2F2F2']; ContentAry[10]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100813020807_0.JPG','photogallery.php?aid=15',84,70,'#F2F2F2']; ContentAry[11]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100813020828_0.JPG','photogallery.php?aid=13',84,70,'#F2F2F2']; ContentAry[12]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20091029121002_0.jpg','photogallery.php?aid=13',84,70,'#F2F2F2']; ContentAry[13]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20091029121019_0.jpg','photogallery.php?aid=13',84,70,'#F2F2F2']; ContentAry[14]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090923010930_0.jpg','photogallery.php?aid=12',84,70,'#F2F2F2']; ContentAry[15]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090923010955_0.jpg','photogallery.php?aid=12',84,70,'#F2F2F2']; ContentAry[16]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100812040808_0.jpg','photogallery.php?aid=11',84,70,'#F2F2F2']; ContentAry[17]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100812030821_0.jpg','photogallery.php?aid=11',84,70,'#F2F2F2']; ContentAry[18]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100812030841_0.jpg','photogallery.php?aid=11',84,70,'#F2F2F2']; ContentAry[19]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090921120941_0.jpg','photogallery.php?aid=10',84,70,'#F2F2F2']; ContentAry[20]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415100405_1.JPG','photogallery.php?aid=9',84,70,'#F2F2F2']; ContentAry[21]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415100405_0.JPG','photogallery.php?aid=9',84,70,'#F2F2F2']; ContentAry[22]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100415100406_1.JPG','photogallery.php?aid=9',84,70,'#F2F2F2']; ContentAry[23]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090924060905_0.jpg','photogallery.php?aid=8',84,70,'#F2F2F2']; ContentAry[24]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090923060915_0.jpg','photogallery.php?aid=8',84,70,'#F2F2F2']; ContentAry[25]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090923060938_0.jpg','photogallery.php?aid=8',84,70,'#F2F2F2']; ContentAry[26]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100812100834_0.JPG','photogallery.php?aid=7',84,70,'#F2F2F2']; ContentAry[27]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100812100834_0.JPG','photogallery.php?aid=7',84,70,'#F2F2F2']; ContentAry[28]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20100429110435_0.JPG','photogallery.php?aid=7',84,70,'#F2F2F2']; ContentAry[29]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090924050918_0.jpg','photogallery.php?aid=6',84,70,'#F2F2F2']; ContentAry[30]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090924050931_0.jpg','photogallery.php?aid=6',84,70,'#F2F2F2']; ContentAry[31]=['IMG','imgcropphotohome.php?x=85&y=70&imgname=photogallery/20090917050946_0.jpg','photogallery.php?aid=6',84,70,'#F2F2F2'];//ContentAry[1]=['IMG','video_photo1.jpg','photogallery.php',86,91,'#FFFFFF']; //ContentAry[2]=['IMG','video_photo2.jpg','photogallery.php',86,91,'#FFFFFF']; //ContentAry[3]=['IMG','video_photo3.jpg','photogallery.php',86,91,'#FFFFFF']; // **** Functional Code - NO NEED to Change function zxcCSBanner(zxcid,zxcvh,zxcw,zxcspd,zxcaary){ var zxcp=document.getElementById(zxcid); var zxcary=[] if (zxcaary){ var zxcpth=zxcaary[0]; for (var zxc0=1;zxc00){ zxcoop.dir=1; } else { zxcoop.dir=-1; } zxcoop.rotate(); } function zxcBannerStop(zxcid){ var zxcoop=document.getElementById(zxcid).oopbr; if (!zxcoop){ return; } clearTimeout(zxcoop.to); } function zxcBannerStart(zxcid,zxcdir){ var zxcoop=document.getElementById(zxcid).oopbr; if (!zxcoop){ return; } clearTimeout(zxcoop.to); zxcoop.dir=zxcdir||zxcoop.dir; zxcoop.rotate(); } function zxcLink(zxcobj){ // if (zxcobj.url.match('^|^')){ zxcExternal(zxcobj.url); return; } window.top.location=zxcobj.url; } function zxcStyle(zxcele,zxcstyle){ if (typeof(zxcele)=='string'){ zxcele=document.createElement(zxcele); } for (key in zxcstyle){ zxcele.style[key]=zxcstyle[key]; } return zxcele; } function zxcOOPBannerRotate(zxcp,zxcvh,zxcspd,zxchw){ this.ref='zxcoobr'+zxcp.id; this.wh=(zxcvh=='H')?'left':'top'; window[this.ref]=this; this.ary=zxcp.ary; this.spd=zxcspd||100; this.to=null; this.dir=1; this.h=zxchw; } zxcOOPBannerRotate.prototype.rotate=function(){ this.ary[1].style[this.wh]=(parseInt(this.ary[1].style[this.wh])+this.dir)+'px'; this.ary[0].style[this.wh]=(parseInt(this.ary[1].style[this.wh])-this.h)+'px'; this.ary[2].style[this.wh]=(parseInt(this.ary[2].style[this.wh])+this.dir)+'px'; this.ary[3].style[this.wh]=(parseInt(this.ary[2].style[this.wh])+this.h*2)+'px'; if (this.dir<0&&parseInt(this.ary[1].style[this.wh])+this.h<0){ this.ary[1].style[this.wh]=(parseInt(this.ary[2].style[this.wh])+this.h)+'px'; this.ary.reverse(); } if (this.dir>0&&parseInt(this.ary[1].style[this.wh])>this.h){ this.ary[1].style[this.wh]=(parseInt(this.ary[2].style[this.wh])-this.h)+'px'; this.ary.reverse(); } this.setTimeOut('rotate();',this.spd); } zxcOOPBannerRotate.prototype.setTimeOut=function(zxcf,zxcd){ this.to=setTimeout('window.'+this.ref+'.'+zxcf,zxcd); }