📄 vip-up.aspx
字号:
function yingyong_close()//应用程序接口关闭
{
chuangti.style.display='none';
chuangti_beijiang.style.display='none';
zhegai.style.display='none';
}
function ToggleVisibility(id, type) //开始上传,并进行上传前校验
{
td1.style.border ='';
div1.style.display ='none';
td2.style.border ='';
div2.style.display ='none';
if(document.getElementById('AttachFile').value=='')
{
td1.style.border ='#ff0000 thin solid';
div1.style.display ='block';
div1.innerHTML='您没选择文件';
return false;
}
var s=document.getElementById('AttachFile').value;
var s=s.toString();
var i=s.length;
while(s.substring(i,i+1)!='.' && i>0)
{
i=i-1;
}
if(i==0)
{
td1.style.border ='#ff0000 thin solid';
div1.style.display ='block';
div1.innerHTML='文件名格式不对,请重新选择';
return false;
}
if(ExtenName.indexOf(s.substring(i,s.length).toLowerCase())!=-1)
{
td1.style.border ='#ff0000 thin solid';
div1.style.display ='block';
div1.innerHTML='无法支持'+s.substring(i,s.length)+'格式文件';
return false;
}
s=document.getElementById('AttachFile').value.toString();
if(s.indexOf("'")!=-1 || s.indexOf(" ")!=-1 || s.indexOf("<")!=-1 || s.indexOf(">")!=-1 || s.indexOf(";")!=-1)
{
td1.style.border ='#ff0000 thin solid';
div1.style.display ='block';
div1.innerHTML='无法支持带引号,空格,尖括号,分号的文件名';
return false;
}
s=document.getElementById('TextBox3').value;
if(s.indexOf("'")!=-1 || s.indexOf(" ")!=-1 || s.indexOf("<")!=-1 || s.indexOf(">")!=-1 || s.indexOf(";")!=-1)
{
td2.style.border ='#ff0000 thin solid';
div2.style.display ='block';
div1.innerHTML='无法支持带引号,空格,尖括号,分号的密码';
return false;
}
if(document.getElementById('TextBox3').value!=document.getElementById('TextBox4').value)
{
td2.style.border ='#ff0000 thin solid';
div2.style.display ='block';
return false;
}
el = document.getElementById(id);
if(type == 'on')
{
el.style.display = 'block';
fileinput.style.display ='none';
window.setInterval(getp,1000);
quxiao.style.display ='block';
made=made+1;
}
}
function c_click()//选择使用密码
{
if(document.getElementById('Checkbox1').checked==true)
{
tr1.style .display ='block';
tr2.style .display ='block';
tr3.style .display ='block';
tr4.style .display ='block';
}
else
{
tr1.style .display ='none';
tr2.style .display ='none';
tr3.style .display ='none';
tr4.style .display ='none';
document.getElementById('TextBox3').value='';
document.getElementById('TextBox4').value='';
}
}
function chanshenggongjutiao()//产生工具栏
{
gongjutiao.innerHTML='';
if(mode=='Drives')
{
gongjutiao.innerHTML+=" <img src=\"images/xinjian.gif\" alt =\"新建文件夹\" style=\"vertical-align : middle ;\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=xinjian','400px','100px','输入文件名');\"/>";
if(xuanzhong.type=='f' ||xuanzhong.type=='w' )gongjutiao.innerHTML+=" <img src=\"images/cut.gif\" alt=\"剪切\" style=\" vertical-align : middle\" onclick=\"jianqieban.speak(xuanzhong.src,xuanzhong.id,xuanzhong.name,xuanzhong.type);chanshenggongjutiao();\"/>";
else gongjutiao.innerHTML+=" <img src=\"images/cut.gif\" alt=\"剪切\" style=\"vertical-align : middle ; filter: Alpha(Opacity=60, Style=0);\"/>";
if(jianqieban.type=='w' || jianqieban.type=='f')gongjutiao.innerHTML+=" <img src=\"images/Paste.gif\" alt=\"粘贴\" style=\" vertical-align : middle\" onclick=\"yidong(jianqieban.id,mulu,jianqieban.type);\"/>";
else gongjutiao.innerHTML+=" <img src=\"images/Paste.gif\" alt=\"粘贴\" style=\"vertical-align : middle ; filter: Alpha(Opacity=60, Style=0);\"/>";
if(xuanzhong.type=='w' || xuanzhong.type=='f')gongjutiao.innerHTML+=" <img src=\"images/shanchu.gif\" alt=\"删除\" style=\"vertical-align : middle\" onclick=\"caidan.style.display='none';d();\"/>";
else gongjutiao.innerHTML+=" <img src=\"images/shanchu.gif\" alt=\"删除\" style=\"vertical-align : middle ; filter: Alpha(Opacity=60, Style=0);\"/>";
gongjutiao.innerHTML+=" <img src=\"images/Refresh().gif\" alt=\"刷新\" style=\"vertical-align : middle ;\" onclick=\"Refresh();\"/>";
gongjutiao.innerHTML+=" <a href=\"help/user_help.htm\" target=\"_blank\" ><img src=\"images/help.gif\" alt=\"帮助\" style=\"vertical-align : middle ;border : 0px\"/></a>";
}
if(mode=='Network')
{
gongjutiao.innerHTML+=" <img src=\"images/Create_Network.gif\" alt =\"新建网络\" style=\"vertical-align : middle ;\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=Create_Network','400px','200px','创建网络');\"/>";
gongjutiao.innerHTML+=" <img src=\"images/Enter_Network.gif\" alt =\"加入网络\" style=\"vertical-align : middle ;\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=Enter_Network','400px','200px','加入网络向导');\"/>";
if(xuanzhong.type=='N')gongjutiao.innerHTML+=" <img src=\"images/set_Network.gif\" alt=\"网络设置\" style=\" vertical-align : middle\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=set_Network&folder='+xuanzhong.id,'400px','200px','网络设置向导');\"/>";
else gongjutiao.innerHTML+=" <img src=\"images/set_Network.gif\" alt=\"网络设置\" style=\"vertical-align : middle ; filter: Alpha(Opacity=60, Style=0);\"/>";
gongjutiao.innerHTML+=" <img src=\"images/Refresh().gif\" alt=\"刷新\" style=\"vertical-align : middle ;\" onclick=\"Refresh();\"/>";
gongjutiao.innerHTML+=" <a href=\"help/Network_help.htm\" target=\"_blank\" ><img src=\"images/help.gif\" alt=\"帮助\" style=\"vertical-align : middle ;border : 0px\"/></a>";
}
}
function chanshengcaidan()//产生右键菜单
{
if(mode!='Drives')return;
caidan.style.left=event.x;
caidan.style.top=event.y;
caidan.style.display='block';
caidan.innerHTML="";
caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=xinjian','400px','100px','输入文件名');\"> 新建文件夹</div>";
if(xuanzhong.type=='w')caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=gaiming&wenjianjia='+xuanzhong.id+'&name='+escape(xuanzhong.name),'400px','100px','输入文件名');\"> 重命名</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 重命名</div>";
if(xuanzhong.type=='f')caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=fabu&file='+xuanzhong.id+'&name='+escape(xuanzhong.name),'500px','200px','发布位置');\"> 发布地址</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 发布地址</div>";
if(xuanzhong.type=='f' ||xuanzhong.type=='w' )caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"jianqieban.speak(xuanzhong.src,xuanzhong.id,xuanzhong.name,xuanzhong.type);chanshenggongjutiao();\"> 剪切</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 剪切</div>";
if(jianqieban.type=='w' || jianqieban.type=='f')caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"yidong(jianqieban.id,mulu,jianqieban.type);\"> 粘贴</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 粘贴</div>";
if(xuanzhong.type=='w' || xuanzhong.type=='f')caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"caidan.style.display='none';d();\"> 删除</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 删除</div>";
if(xuanzhong.type=='w')caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"yingyong('<% Response.Write(class1.up); %>'+'dunhuakuang.aspx?caozuo=Share_folder&folder='+xuanzhong.id,'400px','200px','共享与安全');\"> 共享与安全</div>";
else caidan.innerHTML+="<div style =\" color :#aca899\"> 共享与安全</div>";
caidan.innerHTML+="<div onmouseover=\"this.style.backgroundColor ='#000099'; this.style.color ='#ffffff';\" onmouseout=\"this.style.backgroundColor =''; this.style.color ='#000000';\" onclick=\"Refresh();\"> 刷新</div>";
}
function Refresh()//刷新文件夹
{
ul1.innerHTML='正在刷新列表,等待服务器回应';
if(mode=='Drives')
{
makeRequest('<% Response.Write(class1.up); %>user-file.aspx?caozuo=liebiao&mulu='+mulu,ul1);
makeRequest('<% Response.Write(class1.up); %>user-file.aspx?caozuo=rongliang',rongliang);
}
if(mode=='Network')
{
makeRequest('<% Response.Write(class1.up); %>Network/Network.aspx?event=list&folder='+mulu,ul1);
}
xuanzhong.speak(null,null,null,null);
}
function xinjian(s)//新建文件夹
{
if(s)
{
ul1.innerHTML="正在建立文件夹,等待服务器回应";
makeRequest('<% Response.Write(class1.up); %>user-file.aspx?caozuo=xinjian&name='+escape(s)+'&mulu='+mulu,ul1);
}
}
function cm(wenjianjia,s)//重命名文件夹
{
if(s)
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -