⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filemanage.aspx

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 ASPX
📖 第 1 页 / 共 2 页
字号:
                case "ram":
                case "swf":
                    OpenObjectWindow(imgSrc)
                    break;

                default:
                    break;
            }
             
        }
        
        function OpenObjectWindow(spath)
        {
           var newWin = window.open("",null,"directories=0,height=600,width=500,menubar=0,left=0,top=0,resizable =0,status=1,titlebar=0,toolbar=0,scrollbars=0,location=0");
           newWin.document.write("<html>");
           newWin.document.write("<title>查看文件</title>");
           newWin.document.write("<body><div>");
           newWin.document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'");
           newWin.document.write(" width='600'");
           newWin.document.write(" height='500'>");
           newWin.document.write("<param name='movie' value='" + spath + "'>");
           newWin.document.write("<param name='wmode' value='transparent'>");
           newWin.document.write("<param name='quality' value='autohigh'>");
           newWin.document.write("<embed src='" + spath + "' quality='autohigh'");
           newWin.document.write(" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'");
           newWin.document.write(" wmode='transparent'");
           newWin.document.write(" width='600'");
           newWin.document.write(" height='500'>");
           newWin.document.write("</embed></object>");
           newWin.document.write("</div>");
           newWin.document.write("</body></html>");
           newWin.document.close();
        }
        
        function OpenNewImgWindow(imgSrc)
        {
             var image=new Image();
	         image.src=imgSrc;
             var newWin = window.open("",null,"directories=0,height="+image.height+",width ="+image.width+",menubar=0,left=0,top=0,resizable =0,status=1,titlebar=0,toolbar=0,scrollbars=0,location=0");
             newWin.document.write("<html>");
             newWin.document.write("<title>查看图片</title>");
             newWin.document.write("<body><div>");
             newWin.document.write("<img src='"+imgSrc+"' width='"+image.width+"' height='"+image.height+"'/> ");
             newWin.document.write("</div>");
             newWin.document.write("</body></html>");
             newWin.document.close();
        }
        
function CheckAll(me)
{
    var index = me.name.indexOf('_');  
    var prefix = me.name.substr(0, index); 
    var checkstatus = me.checked;
    for(var i=0; i<document.forms[0].length; i++) 
    { 
        var o = document.forms[0][i]; 
        if (o.type == 'checkbox') 
        { 
            if (me.name != o.name) 
            {
                if (o.name.substring(0, prefix.length) == prefix) 
                {
                    if(!o.disabled)
                    {
                        o.checked = !me.checked;
                        o.click();
                        me.checked = checkstatus;
                    }
                }
            }
        } 
    } 
}

function CheckItem(me, HeaderID, RowClassName, SelectedCssClass)
{
    if (me.checked)
    {
        HighLight(me, SelectedCssClass);
    }
    else
    {
        LowLight(me, RowClassName);
    }
    
    var headerchk = document.getElementById(HeaderID)
    var index = headerchk.name.indexOf('_');  
    var prefix = headerchk.name.substr(0, index); 
    var totalnumber = 0;
    var totalchecked=0;
    if(headerchk.checked)
    {
        headerchk.checked = headerchk.checked & 0;
    }
    for(var i=0; i<document.forms[0].length; i++) 
    { 
        var o = document.forms[0][i]; 
        if (o.type == 'checkbox') 
        { 
            if (o.name != headerchk.name) 
            {
                if (o.name.substring(0, prefix.length) == prefix) 
                {
                    totalnumber++;
                    if (o.checked) totalchecked++;
                }
            }
        } 
    }
    if (totalnumber == totalchecked)
    {
        headerchk.checked = true;
    }
}

function HighLight(Element, SelectedCssClass)
{
    while (Element.tagName != '<%=RequestString("ShowType") != "0" ? "TR" : "TD"%>') { Element = Element.parentNode; }
    Element.className = SelectedCssClass;
    CurrentClassName = Element.className;
}

function LowLight(Element, RowClassName)
{
    while (Element.tagName !=  '<%=RequestString("ShowType") != "0" ? "TR" : "TD"%>') { Element = Element.parentNode; }
    Element.className = RowClassName;
    CurrentClassName = Element.className;
}

function MouseOver(me, MouseOverCssClass)
{
    CurrentClassName = me.className;
    me.className = MouseOverCssClass;
}

function MouseOut(me)
{
    me.className = CurrentClassName;
}


String.prototype.endWith = function(oString)
{   
    var reg = new RegExp(oString + "$");
    return reg.test(this);
}

function batchconfirm(prompt, nocheckprompt)
{
    var prompt = (arguments.length > 0) ? arguments[0] : "确定要进行此批量操作?";
    var nocheckprompt = (arguments.length > 1) ? arguments[1] : "请选择所要操作的项目!";
    var haschecked = false;
    for (var i=0; i<document.forms[0].length; i++) 
    { 
        var o = document.forms[0][i]; 
        if (o.type == "checkbox" && o.name.endWith("Files") && o.checked == true) 
        { 
            haschecked = true;
            break;
        } 
    } 
    if (!haschecked)
    {
        alert(nocheckprompt);
        return false;
    }
    else
    {
        if (!confirm(prompt))
        {
            return false;
        }
    }
}

        </script>

    </asp:Panel>
</asp:Content>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -