上一张下一张

/*
* 改变灰度图索引,下一张,上一张
* */
function GrayImageChangeIndex(type) {
if(type=='up'){
GrayImagePlayIndex--;
if(GrayImagePlayIndex<0){
GrayImagePlayIndex=GrayImagePlayLength-1;
}
}else{
GrayImagePlayIndex++;
if(GrayImagePlayIndex>=GrayImagePlayLength){
GrayImagePlayIndex=0;
}
}
GrayImageLayerLayer.getSource().setPlayIndexWithAnimation(GrayImagePlayIndex);

}
posted @ 2022-07-14 23:04  小林222  阅读(41)  评论(0)    收藏  举报