在做个性商品定制的时候 对上传的图片进行拖拉 调整大小 这个功能怎么做的呢 不使用flash

解决方案 »

  1.   

    有类是功能的active插件吗 我用了效果都不太好
      

  2.   

    用dw可以,
    <area shape="rect" coords="539,6,650,107" href="#" onmouseup="MM_openBrWindow('images/**.jpg','','resizable=yes,width=500,height=412')" />
    将它设置为热点,再勾选手动缩放大小,上传时就可以自动设置大小
      

  3.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>MS_resizeDiv.html</title>

        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <script>   
         document.execCommand("2D-position", false, true); 
        
         function get(s) {
         document.getElementById("show").innerHTML = "width:" + s.style.width + " height:" + s.style.height;
         }  
    </script>   
      </head>
      
      <body>
        <DIV contentEditable="true">   
    <DIV onresize="get(this)" style="WIDTH: 300px; POSITION: absolute; HEIGHT: 100px; BACKGROUND-COLOR: red; background-image: url('http://hiphotos.baidu.com/%BA%EC%C2%A5%C7%E9%C3%CE/pic/item/ed9e7094af4f2677d1135e93.jpg');">
    </DIV>   
    </DIV>
    <div id="show" style="bottom: 0px; position: absolute;">
    width: default; height: default;
    </div>
      </body>
    </html>在客户端改变图片大小或,用js获得图片的width、height后将width、height添加到服务器保存
    在客户端显示的大小从服务器获得就可以了
      

  4.   

    <DIV onresize="get(this)" >
    <img src="1.png">
            </DIV>  
    能不能这样写 这样写 png不透明怎么办