var item_usericon1 = document.getElementById("item_usericon1");
var photoPath=document.getElementById("photo").value;
if (document.all) {//IE
$("#preview").remove();
if(photoPath=="" || photoPath =="null"){
item_usericon1.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = "<%=request.getContextPath()%>/images/default/user_photo_01.png";
}
else{
item_usericon1.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = "<%=request.getContextPath()%>/image/imageAction_image.action?fileId="+photoPath+"" ;
}
item_usericon1.style.width = "145px";
item_usericon1.style.height = "145px";
}else{//火狐
if (photoPath == "") {
$("#preview").attr("src", "<%=request.getContextPath()%>/images/default/user_photo_01.png");
}
else {
$("#preview").attr("src", "<%=request.getContextPath()%>/image/imageAction_image.action?fileId=" + photoPath);
}
$("#item_usericon1").removeAttr("style");
$("#preview")[0].style.width = "144px";
$("#preview")[0].style.height = "145px";
}
var photoPath=document.getElementById("photo").value;
if (document.all) {//IE
$("#preview").remove();
if(photoPath=="" || photoPath =="null"){
item_usericon1.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = "<%=request.getContextPath()%>/images/default/user_photo_01.png";
}
else{
item_usericon1.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = "<%=request.getContextPath()%>/image/imageAction_image.action?fileId="+photoPath+"" ;
}
item_usericon1.style.width = "145px";
item_usericon1.style.height = "145px";
}else{//火狐
if (photoPath == "") {
$("#preview").attr("src", "<%=request.getContextPath()%>/images/default/user_photo_01.png");
}
else {
$("#preview").attr("src", "<%=request.getContextPath()%>/image/imageAction_image.action?fileId=" + photoPath);
}
$("#item_usericon1").removeAttr("style");
$("#preview")[0].style.width = "144px";
$("#preview")[0].style.height = "145px";
}