function $(_sId) {
return document.getElementById(_sId);
}
var speed=3000;
var setid=null;
var auto="true";
function galleryplay(divs,a,mtime){ //t為要應(yīng)用此函數(shù)的id,a初始化時顯示的項目的順序數(shù)
if(divs=="0")return false;
var start=3;
if(auto=="true")
{
start = a-1;//初始項目
speed = mtime;//切換間隔
setid = null;//定時器
var loop = function(){ //自動切換
ids = divs.split(",");
for (var i=0;i