/**提示 */
function tooltip(file,type){
//页面层
title = '提示信息';
switch (type) {
case 1:
title="圖形提示";
break;
case 2:
title="文字提示";
break;
default:
title="文字提示";
break;
}
var filename = "img/"+file;
var img = new Image();
img.src = filename;
img.onload = function() {
var html = "
";
layer.open({
type: 1,
content: html,
area: [img.width+20+'px', img.height+60+'px'],
title:title,
});
};
}
/**图片提示 */
function tooltipPhoto(){
showtooltipPhoto =!showtooltipPhoto;
if(showtooltipPhoto){
document.getElementById("contentPic").style.display="none";
document.getElementById("tooltipPhoto").style.display="inline";
document.getElementById("picB").style.display="none";
}else{
document.getElementById("contentPic").style.display="inline";
document.getElementById("tooltipPhoto").style.display="none";
document.getElementById("picB").style.display="inline";
}
}
/**回答问题 */
function checkAns2(){
if(showtooltipPhoto){
tooltipPhoto();
}
document.getElementById("tooltip1").style.display="none";
document.getElementById("tooltip2").style.display="none";
checkAns(612)
}
/**转图片 */
function rotatePic2(top,bottom,value,direction){
if(showtooltipPhoto){
tooltipPhoto();
}
rotatePic(top,bottom,value,direction)
}