zoukankan      html  css  js  c++  java
  • 弹窗上传图片

      <asp:Image ID="smallImg" runat="server" Style=" 80px; height: 80px;" ImageUrl="~/Admin/images/upload.jpg" />
                                                <br />
                                                <asp:TextBox ID="txtUrlImage" runat="server" Width="25%"></asp:TextBox>
                                                <uc2:UploadImage ID="UploadImage1" runat="server" OriTextBoxControlID="txtUrlImage"
                                                    SmallControlID="smallImg" />
                                                   

                                                     function goShowDetail() {
                ShowPopWindow('添加相片', 420, 320, 'AddProductImage.aspx?PID=' + goodsid);
            }
           
             <input id="Button1" type="button" class="btn" value="添加照片" onclick="goShowDetail();" />
            
            
            
            
             function ShowPopWindow(title,w,h,url) {
        if (typeof (WfloatBox) == 'undefined') {
            initbox();
        }
        getElement('FmPop').src = '../public/Loading.html';
        var randomID = Math.random(); 
        url += (url.indexOf('?') > -1 ? '&' : '?') + 'RandomID='+randomID;
           
        WfloatBox.style.width = w;
        WfloatBox.style.height = h;
        getElement('spTitle').innerHTML = title;
        getElement('TBPopContent').style.height = h - 30;
        GetCenterXY_ForLayer(WfloatBox);
       
        getElement('FmPop').height = h - 70;
        getElement('FmPop').src = url;
        showBox();
        return false;
    }

  • 相关阅读:
    PHPUnit断言详情
    dev tools杂谈
    sublime text3 + python3.5 ide
    文件传输接收sz、rz命令用法
    Linux编辑器vi使用方法详细介绍
    vi编辑字符串替换及sed用法
    Selenium实战(一)——浏览器实例
    Python的数据库连接
    Cypress测试框架——一个简单的测试用例
    Cypress测试框架——入门1
  • 原文地址:https://www.cnblogs.com/jimmychow/p/2320958.html
Copyright © 2011-2022 走看看