imgpath= getRealPath(fileId);
document. getElementById("divSBTP").style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true',sizingMethod='scale',src="" imgpath "")";//Use filter effects
function getRealPath(fileId){
var file_upl = document.getElementById(fileId);
file_upl.select();
return document.selection.createRange ().text;
}
Note: ie8 local image upload preview cannot directly use $("#img").attr("src",imapath) because of restrictions on browser access Local files, so filters and divs are used. If filters and img are used, a broken image mark will appear.