📄 editor_insertflash.asp
字号:
<!--#include file="editor_ChkPurview.asp"-->
<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">
//=================================================
//过程名:OK()
//作 用:提交信息
//=================================================
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();
}
}
//=================================================
//过程名:IsDigit()
//作 用:输入为数字
//=================================================
function IsDigit()
{
return ((event.keyCode >= 48) && (event.keyCode <= 57));
}
//=================================================
//过程名:imgwidth
//作 用:在线显示Flash宽度
//参 数:element --- 返回表单值
//=================================================
function swfModify(){
if(document.form1.url.value=="http://"){
document.form1.url.value = "logo3.swf"
}
objFiles.innerHTML = "<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>"
}
function SelectFile(){
var arr=showModalDialog('<%=InstallDir & AdminDir%>/Admin_SelectFile.asp?DialogType=Flash&ChannelID=<%=ChannelID%>', '', 'dialogWidth:820px; dialogHeight:600px; help: no; scroll: yes; status: no');
if(arr!=null){
var ss=arr.split('|');
document.form1.url.value=ss[0];
document.form1.UpFileName.value=ss[0].replace("<%=FilesPath%>", "");
swfModify();
}
}
</script>
</head>
<body bgColor=#D4D0C8 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=5></td>
</tr>
<tr>
<td width=350 align='center' id='objFiles'>
<IMG SRC='<%=InstallDir & AdminDir%>/images/filetype_flash.gif' id=img align='center' width='300' height='200' BORDER='0' ALT=''>
</td>
</tr>
<tr>
<td align='center' height='5'></td>
</tr>
<tr>
<td height="17" >地址:
<Input name="url" id=url value="http://" onChange="javascript:swfModify()" size=45>
<%if IsUpload=True And AdminName <> "" then %>
<Input type="button" name="Submit" value="..." title="从已上传文件中选择" onClick="SelectFile()">
<%End if%>
</td>
</tr>
<tr>
<td>宽度:
<Input name="width" id=width ONKEYPRESS="event.returnValue=IsDigit();" onChange="javascript:swfModify()" value=300 size=7 maxlength="4"> 高度:
<Input name="height" id=height ONKEYPRESS="event.returnValue=IsDigit();" onChange="javascript:swfModify()" value=200 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>
<%if IsUpload=True then %>
<tr>
<td>
<FIELDSET align=left>
<LEGEND align=left>上传本地FLASH文件</LEGEND>
<%
Response.write "<iframe class=""TBGen"" style=""top:2px"" id=""UploadFiles"" src=""upload.asp?DialogType=flash"
Response.write "&ChannelID=" & ChannelID
If ModuleType=3 Then
Response.write "&PhotoUpfileType=1"
End If
Response.write """ frameborder=0 scrolling=no width=""350"" height=""25""></iframe>"
Response.write "</fieldset></td>"
Response.write "</tr>"
End if
%>
<Input name="UpFileName" type="hidden" id="UpFileName" value="None">
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -