vote_showcode.asp
来自「这是我根据动网新闻核心自行设计的校园新闻系统」· ASP 代码 · 共 76 行
ASP
76 行
<!-- #include file="../inc/const.asp" -->
<%
pagename="votecode"
pageadmin=1
dim addr0,addr1,addr
addr0=request.servervariables("server_name")
addr1=request.servervariables("url")
addr1=replace(addr1,"admin/vote_showcode.asp","show/")
addr="http://"&addr0&addr1
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="../Inc/styles.css" type="text/css">
</head>
<form method="POST" action="Vote_Save.asp?action=add">
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" id="table1">
<tr>
<td width="15" height="18">
</td>
<td class="heading1" height="18">页面调用投票调查代码</td>
</tr>
<tr>
<td height="16" width="15"></td>
<td class="body" height="16">把下面文本区的代码复制到你要显示投票的地方就能实现在页面上调用投票调查了.</td>
</tr>
<tr>
<td height="16" width="15"></td>
<td class="body" height="16"></td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="bevel1" id="table2">
<tr>
<td> <span lang="zh-cn">页面调用代码</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="34">
<table border="1" width="98%" id="table3" cellspacing="0" cellpadding="0" style="border-collapse: collapse" class="bevel2" height="112">
<tr>
<td width="136" align="center" class="body" height="112">
最新一个投票调查<p>调用代码:</td>
<td class="body" height="112">
<textarea rows="5" name="votedetail" cols="50"><script src="<%=addr%>showvote.asp"></script></textarea></td>
</tr>
<tr>
<td width="136" align="center" class="body" height="170">
调用指定的投票:</td>
<td class="body" height="170">
<textarea rows="5" name="votedetail0" cols="50"><script src="<%=addr%>showvote.asp?voteid=1&windowwidth=600&windowheight=200"></script></textarea><p style="margin-left: 5px">
其中<font color="#0000FF">voteid</font>是指定的投票id(id可以在列表那里查看到,<font color="#0000FF">windowwidth</font>为打开窗口的宽度,<font color="#0000FF">windowheight</font>为打开窗口的高度.<br>
三个参数都是<font color="#0000FF">可选项</font>,如果没有赋值的话,<font color="#0000FF">voteid</font>默认为<font color="#0000FF">最新</font>的一个投票,<font color="#0000FF">windowwidth</font>为<font color="#0000FF">config.asp</font>文件里设置的.<font color="#0000FF">windowheight</font>默认也是<font color="#0000FF">config.asp</font>文件里面设置的.</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="17" width="15"></td>
<td class="body" height="17">
</td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?