var pics=new Array(); var divOfImg = document.getElementById("area"); for(i=0;iSlide Show" html += "
"; html+=""; html+="
"; html += "
"; html+="
"; html += "
"; html+=""; html+="
"; html+="
"; html+="

Description:

This is the description of the picture"; html+="

Comments:

"; html+= "
"; html+=""; html+="
"; html+="
"; html+=""; html+="
"; document.getElementById(id).innerHTML = html; } function galaryview(id){ var html="

My pictures Galary

"; for(i=0;i" } document.getElementById(id).innerHTML = html; } slider.prototype.increment = function(){ this.picindex =Number(this.picindex) + 1; if(this.picindex==pics.length) { this.picindex=Number("0"); } this.slideview('area'); } slider.prototype.decrement = function(){ this.picindex =Number(this.picindex) - 1; if(this.picindex==-1) { this.picindex=Number(pics.length-1); } this.slideview('area'); } slider.prototype.get = function(){ return this.picindex; }