适配IE与火狐
来源:互联网 发布:矩阵的卷积怎么算 编辑:程序博客网 时间:2024/05/12 08:49
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";
}
- 适配IE与火狐
- IE与火狐兼容性
- IE与火狐区别
- IE与火狐谁是垃圾?
- 火狐与IE兼容性总结
- showDialog IE与火狐兼容问题
- 火狐与IE兼容性总结
- ie 与火狐下的 execCommand
- ie与火狐一个差异:margin-top
- ie 与火狐的坐标 取得
- 实现火狐与IE高度的解决方法
- ie与火狐兼容 部分整理
- 火狐与IE浏览器兼容代码
- 火狐button按钮与IE的不同
- 滤镜-FireFox火狐浏览器与IE兼容问题
- IE与火狐的脚本解析setUserData
- 火狐与IE浏览器之间差别收集
- ie与火狐兼容问题(二)
- Android S5PV210 camera驱动测试程序
- TweetLabel
- jdbc 连接mysql数据库笔记
- 杨中科说给弟弟的话
- Best Practices for Speeding Up Your Web Site
- 适配IE与火狐
- 修改Xcode自动生成的文件头中的作者和公司名
- VC2008连接SQL2005开发总结
- 两道SQL面试题
- canny算子
- 版面设计
- twm 文档介绍
- 那些年,我们捧读过的C和C++经典
- 远程桌面+花生壳控制adsl动态ip用户的电脑