?? editor_insertflash.asp
字號:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true
'強制瀏覽器重新訪問服務器下載頁面,而不是從緩存讀取頁面
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
%>
<HTML>
<HEAD>
<TITLE>插入FLASH文件</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="editor_dialog.css">
<script language="JavaScript">
function OK(){
var str1="";
var strurl=document.form1.url.value;
if (strurl==""||strurl=="http://")
{
alert("請先輸入FLASH文件地址,或者上傳FLASH文件!");
document.form1.url.focus();
return false;
}
else
{
str1="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width="+document.form1.width.value+" height="+document.form1.height.value+"><param name=movie value="+document.form1.url.value+"><param name=quality value=high><embed src="+document.form1.url.value+" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width="+document.form1.width.value+" height="+document.form1.height.value+"></embed></object>"
window.returnValue = str1+"$$$"+document.form1.UpFileName.value;
window.close();
}
}
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
</script>
</head>
<BODY bgColor=menu topmargin=15 leftmargin=15 >
<form name="form1" method="post" action="">
<table width=100% border="0" cellpadding="0" cellspacing="2">
<tr><td>
<FIELDSET align=left>
<LEGEND align=left>FLASH動畫參數</LEGEND>
<TABLE border="0" cellpadding="0" cellspacing="3" >
<TR><TD height="17" >地址:<INPUT name="url" id=url value="http://" size=40>
<%if trim(session("AdminName"))<>"" then%>
<input type="button" name="Submit" value="..." title="從已上傳文件中選擇" onClick="javascript:window.open('editor_SelectUpFile.asp?DialogType=flash', 'selupfile', 'width=800, height=600, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=yes');">
<%end if%>
</td></TR>
<TR><TD >寬度:<INPUT name="width" id=width ONKEYPRESS="event.returnValue=IsDigit();" value=500 size=7 maxlength="4">
高度:<INPUT name="height" id=height ONKEYPRESS="event.returnValue=IsDigit();" value=300 size=7 maxlength="4"></TD></TR>
</TABLE></fieldset></td><td width=80 align="center"><input name="cmdOK" type="button" id="cmdOK" value=" 確定 " onClick="OK();">
<br> <br><input name="cmdCancel" type=button id="cmdCancel" onclick="window.close();" value=' 取消 '></td></tr>
<tr>
<td>
<FIELDSET align=left>
<LEGEND align=left>上傳本地FLASH文件</LEGEND>
<iframe class="TBGen" style="top:2px" ID="UploadFiles" src="upload_dialog.asp?DialogType=flash" frameborder=0 scrolling=no width="350" height="25"></iframe>
</fieldset>
</td>
<td width=80 align="center" valign="top"><input name="UpFileName" type="hidden" id="UpFileName" value="None"></td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -