anchor.diff:  <%String url = "";%>
   //声明arr数组
   var arr = new Array();
  -<% Object o = session.getAttribute("picUrl");%>
  +
   var c = 60 *<%=session.getAttribute("daojishi")%>;
   	//10分钟
   	var t;
  
positive.code: 
  	//初始化数组数据
  	function initData() {		
  		<% //url ="d:\\1.jpg";
  		List<FaceEntity> faces=new ArrayList<FaceEntity>();
  		//url = (String)session.getAttribute("picUrl");
  		url = "f:/test.jpg";
  		String path = request.getContextPath();
  		String s = path;
  		PicFace picFace=new PicFace(new File(url));
  		faces=picFace.getFaces();
  		int size = 0;
  
negative.code: 		//count = 1;
  		//var testimg = "images/test.jpg";
  		//document.getElementById("myCanvas").style.backgroundImage="url("+urlpic+")";
  		if ( count == 1 ){//当天有一节课
  			
  			<% ArrayList<CourseInfo> course = new ArrayList<CourseInfo>();
  			  Object temp1 = session.getAttribute("coursesInfo");
  			  course = (ArrayList<CourseInfo>) temp1;
  			  String cname = course.get(0).getCname();
  			  url = (String)session.getAttribute("picUrl");%>
  			var coursename = <%=cname%>;
  			document.getElementById("courseTeacher").innerHTML= coursename;
  			
  			var urlpic = <%=url%>;
  			if(urlpic==null){
  				document.getElementById("tips").innerHTML="还未开始点名或者图片上传不成功，请耐心等候";
  				}else{
  					document.getElementById("myCanvas").style.backgroundImage="url("+urlpic+")";
  					}
  			
  		}else if ( count > 1){//课程冲突
  			
  			document.location.href="indextoerror.jsp";
  			
  		}else if ( count == -1 ){//当天无课
  			
  		
  			document.location.href="indextoerror.jsp";
  		}
  