1. 程式人生 > >EasyUI多圖片展示仿輪播功能

EasyUI多圖片展示仿輪播功能

function showImg(_filePath){
	var times = 0;
	var arrs = _filePath.substring(_filePath.indexOf(",")+1).split(",");
	$('#yuwendiv').dialog({
		title : '檔案行政執法“雙隨機抽查”抽取記錄庫',
		collapsible : false,
		maximizable : false,
		resizable : false,
		closed : true,
		fit : true,
		modal : true,
		buttons : [ {
			text : "關閉",
			handler : function() {
				$('#yuwendiv').dialog('close');
			}
		},
		{
			text : "下一張",
			handler : function() {
				times ++;
				if(times == arrs.length){
					times = 0;
				}
				$("#yuweniframe1").attr("src",_path + "noticeAction/showContent?uploadpath="	+ arrs[times]);
			}
		}]
	});
	$("#yuweniframe1").attr("src",_path + "noticeAction/showContent?uploadpath="	+ arrs[0]);
	$('#yuwendiv').dialog("open");
}