2 wangyantao hb wangyantao_hb 于 2014.12.04 16:30 提问

如何修改不用设置浏览器的Active插件呢,

else {//此处为IE6,7,8,9的操作
file.select();
file.blur();
var src = document.selection.createRange().text;
var div_sFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src='" + src + "')";
var img_sFilter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image,src='" + src + "')";

        preview_div.innerHTML = "";
        var img = document.createElement("div");
        preview_div.appendChild(img);
        img.style.filter = img_sFilter;
        img.style.visibility = "hidden";
        img.style.width = "100%";
        img.style.height = "100%";   
                    function setImageDisplay() {
            var rect = perviewImage.clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight);
            preview_div.innerHTML = "";
            var div = dcmt.createElement("div");
            div.style.width = rect.width + 'px';
            div.style.height = rect.height + 'px';
            div.style.marginLeft = rect.left + 'px';
            div.style.marginTop = rect.top + 'px';
            div.style.filter = div_sFilter;

            preview_div.appendChild(div);

1个回答

czw2010
czw2010   2014.12.05 09:51

这是从本地中读取文件吗?很少用这种方法

Csdn user default icon
上传中...
上传图片
插入图片