javascript - Editing Slide Interval on JS Slideshow File -


can tell me set interval between slides on js file?

//this file part of briaskiss. // //    briaskiss free software: can redistribute and/or modify //    under terms of gnu general public license published //    free software foundation, either version 3 of license, or //    (at option) later version. // //    briaskiss distributed in hope useful, //    without warranty; without implied warranty of //    merchantability or fitness particular purpose.  see //    gnu general public license more details. // //    should have received copy of gnu general public license //    along briaskiss.  if not, see <http://www.gnu.org/licenses/>.  function briaskiss(idmodule, random, picinterval, transdelay, picarray) {     this.picrandom = random;     this.picinterval = picinterval;     this.transdelay = transdelay;     this.picarray = picarray;      this.curpic = 0;     this.nextpic = 0;     this.numpics = 0;     this.curopacity = 99     this.nextopacity = 0;      this.idmodule = idmodule;      this.initiss(); }  briaskiss.prototype.initiss=function() {     if (!document.getelementbyid || !document.createelement) return;      this.picarray[0]         = document.getelementbyid("briask-iss"+this.idmodule).getelementsbytagname("img");      this.numpics = this.picarray[0].length ;      for(i = 0; < this.picarray[0].length; i++)         {             this.picarray[0][i].opacity = 0;             this.picarray[0][i].style.mozopacity = .0;             this.picarray[0][i].style.filter = "alpha(opacity=0)";         }      if (this.picrandom == 3)     {         this.issnextpic();     }      this.picarray[0][this.nextpic].style.display = "block";     this.picarray[0][this.nextpic].style.opacity = .99;     this.picarray[0][this.nextpic].style.mozopacity = .99;     this.picarray[0][this.nextpic].style.filter = "alpha(opacity=" + (.99*100) + ")";      this.curpic = this.nextpic;     settimeout("briaskinstance"+this.idmodule+".issshow()", this.picinterval); }  briaskiss.prototype.issshow=function() {     this.issnextpic();      this.curopacity = 100, this.nextopacity = 0;      settimeout("briaskinstance"+this.idmodule+".isstransition()", this.transdelay); }  briaskiss.prototype.issnextpic=function() {     if (this.picrandom < 3)     {         if (this.curpic < (this.numpics - 1))         {             this.nextpic = this.curpic + 1;         }         else         {             this.nextpic = 0;         }     }     else     {                 {             = new date();              var rndpic = math.ceil(this.numpics * math.random(this.idmodule)) - 1;          }   while (this.curpic == rndpic)          this.nextpic = rndpic;     } }  briaskiss.prototype.isstransition = function () {     this.picarray[0][this.nextpic].style.display = "block";      this.picarray[0][this.curpic].style.opacity = this.curopacity/100;     this.picarray[0][this.curpic].style.mozopacity = this.curopacity/100;     this.picarray[0][this.curpic].style.filter = "alpha(opacity=" + (this.curopacity) + ")";      this.picarray[0][this.nextpic].style.opacity = this.nextopacity/100;     this.picarray[0][this.nextpic].style.mozopacity = this.nextopacity/100;     this.picarray[0][this.nextpic].style.filter = "alpha(opacity=" + (this.nextopacity) + ")";      if (this.curopacity > 0)     {         this.curopacity -= 4;         this.nextopacity += 4;         settimeout("briaskinstance"+this.idmodule+".isstransition()", this.transdelay);     }     else     {         this.picarray[0][this.curpic].style.display = "none";          this.curpic = this.nextpic;         settimeout("briaskinstance"+this.idmodule+".issshow()", this.picinterval);     } } 


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -