📄 admin_js.asp
字号:
<!--#include file="admin_head.asp"-->
<br><br>
<script>
function GenerateJs()
{
var s;
s=window.location.href;
s=s.substring(0,s.lastIndexOf("/")+1);
s+="js.asp?topType=";
s+=document.all.topType.value;
s+="&classNO=";
s+=document.all.classNO.value;
s+="&num=";
s+=document.all.topNum.value;
s+="&maxlen=";
s+=document.all.maxLength.value;
s+="&showdate=";
s+=document.all.showDate.checked ? "1" : "0";
s+="&showhits=";
s+=document.all.showHits.checked ? "1" : "0";
s+="&showClass=";
s+=document.all.showClass.checked ? "1" : "0";
document.all.jstext.value="<script src=\""+s+"\"><\/script>";
}
function CopyJs()
{
document.all.jstext.focus();
document.all.jstext.select();
document.execCommand("copy");
}
</script>
<table width="95%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolorlight="#ECEEE4" bordercolordark="#CCCABC">
<form name="form1" method="post" action="">
<tr>
<td colspan="2" align="center" height="30" background="image/tablebg.gif"><b>首 页 调 用 脚 本</b> </td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center">调用类型:
</td>
<td>
<select id="topType">
<option value="new">最新添加</option>
<option value="hot">热门新闻</option>
<option value="weekhot">本周热门</option>
<option value="dayhot">今日热门</option>
</select>
</td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center">调用分类:
</td>
<td>
<select name="classNO" id="classNO">
<option value="">全部栏目</option>
<%=Qcdn.ClassOptionlist()%>
</select>
</td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center">调用数量:
</td>
<td><input type="text" id="topNum" value=10 size=3 maxlength=3></td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center">标题长度:
</td>
<td><input type="text" id="maxLength" value=15 size=3 maxlength=3></td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center">显示内容:
</td>
<td>
<input type="checkbox" id="showClass" >显示类名
<input type="checkbox" id="showDate" >显示日期
<input type="checkbox" id="showHits" >显示点击数
</td>
</tr>
<tr>
<td width="15%" height="25" valign="middle" align="center" colspan="2">
<input type="button" value="生成脚本" onclick="GenerateJs();">
<input type="button" value="拷贝脚本" onclick="CopyJs();">
</td>
</tr>
<tr>
<td height="25" valign="middle" align="center" colspan="2">
<br><textarea id="jstext" cols=90 rows=6></textarea>
<br><br>
注:把生成的脚本粘贴到html文件内即可以显示指定的内容
</td>
</tr>
</form>
</table>
<!--#include file="admin_copy.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -