📄 image.asp
字号:
<%
function MakedownName()
dim fname
fname = now()
fname = replace(fname,"-","")
fname = replace(fname," ","")
fname = replace(fname,":","")
fname = replace(fname,"PM","")
fname = replace(fname,"AM","")
fname = replace(fname,"上午","")
fname = replace(fname,"下午","")
fname = int(fname) + int((100)*Rnd + 1)
MakedownName=fname & iext
end function
%>
<script language="JavaScript">
function ok()
{
var ft=document.all.image.value.toString()
if(ft.substr(1,4)!='http')
{
var iext=ft.substr(ft.lastIndexOf('.'),4)
document.all.filename.value=document.all.filename.value + iext
temp=document.all.filename.value
window.returnvalue='../../db/file/' + temp.substr(temp.lastIndexOf('\\')+1)
alert(window.returnvalue)
document.all.form1.submit()
}
else
{
window.returnvalue=document.all.image.value;
window.close()};
}
// return_value=showModalDialog("../public/image.asp","","dialogWidth:31;dialogHeight:14;dialogTop:250;dialogLeft:260;status:no;scrollbars:no;help:no");
</script>
<style>
table{font-size:12px}
body{font-size:12px}
div{font-size:12px}
</style>
<body bgcolor="buttonface" style="font-size:12px">
<form name="form1" method="post" action="upimage.asp" target="_black" enctype="multipart/form-data" >
<table width="479" border="0" cellspacing="0" cellpadding="0" height="192">
<tr>
<td width="98" height="44" align="right">图片来源:</td>
<td colspan="2" height="44">
<input type="file" name="image" style="width:250;height:22" >
</td>
<td width="114" height="44" align="center" valign="middle">
<input type="button" name="button" value="确定" style="width:80;height:25" onClick="ok()">
</td>
</tr>
<tr>
<td width="98" height="35" align="right">替换文字:</td>
<td colspan="2" height="35">
<input type="text" style="width:250;height:22" name="alt">
</td>
<td width="114" height="35" align="center" valign="middle">
<input type="button" name="Submit2" value="取消" style="width:80;height:25" onClick="window.close()">
</td>
</tr>
<tr>
<td colspan="4">
<div id="Layer1" style="position:absolute; width:131px; height:85px; z-index:1; left: 237px; top: 102px;border:1 solid gray">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="46%" align="right" height="57">水平:</td>
<td width="54%" height="57">
<input type="text" name="width" size="10" style="width:60">
</td>
</tr>
<tr>
<td width="46%" align="right">垂直:</td>
<td width="54%">
<input type="text" name="height" size="10" style="width:60">
</td>
</tr>
</table>
</div>
<input type="hidden" name="filename" value="<%=Server.mappath(Session("mailaddroot") & MakedownName())%>">
</td>
</tr>
</table>
<div id="Layer1" style="position:absolute; width:203px; height:85px; z-index:1; left: 23px; top: 102px;border:1 solid gray">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td width="42%" align="right" height="57">对齐:</td>
<td width="58%" height="57">
<select name="align" style="width:100">
</select>
</td>
</tr>
<tr>
<td width="42%" align="right">边框宽度:</td>
<td width="58%">
<input type="text" name="border" size="10" style="width:100">
</td>
</tr>
</table>
</div>
<div id="Layer2" style="position:absolute; width:41px; height:19px; z-index:2; left: 248px; top: 97px; background-color: buttonface; layer-background-color: buttonface; border: 1px none #000000">
<div align="center">尺寸</div>
</div>
<div id="Layer2" style="position:absolute; width:41px; height:19px; z-index:2; left: 31px; top: 97px; background-color: buttonface; layer-background-color: buttonface; border: 1px none #000000">
<div align="center">布局</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -