?? myworld2.asp
字號(hào):
// add the URL parameters to the MM_keepURL string
for (var items=new Enumerator(Request.QueryString); !items.atEnd(); items.moveNext()) {
var nextItem = "&" + items.item().toLowerCase() + "=";
if (MM_removeList.indexOf(nextItem) == -1) {
MM_keepURL += "&" + items.item() + "=" + Server.URLencode(Request.QueryString(items.item()));
}
}
// add the Form variables to the MM_keepForm string
for (var items=new Enumerator(Request.Form); !items.atEnd(); items.moveNext()) {
var nextItem = "&" + items.item().toLowerCase() + "=";
if (MM_removeList.indexOf(nextItem) == -1) {
MM_keepForm += "&" + items.item() + "=" + Server.URLencode(Request.Form(items.item()));
}
}
// create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL + MM_keepForm;
if (MM_keepBoth.length > 0) MM_keepBoth = MM_keepBoth.substring(1);
if (MM_keepURL.length > 0) MM_keepURL = MM_keepURL.substring(1);
if (MM_keepForm.length > 0) MM_keepForm = MM_keepForm.substring(1);
%>
<%
// *** Move To Record: set the strings for the first, last, next, and previous links
var MM_moveFirst="",MM_moveLast="",MM_moveNext="",MM_movePrev="";
var MM_keepMove = MM_keepBoth; // keep both Form and URL parameters for moves
var MM_moveParam = "index";
// if the page has a repeated region, remove 'offset' from the maintained parameters
if (MM_size > 1) {
MM_moveParam = "offset";
if (MM_keepMove.length > 0) {
params = MM_keepMove.split("&");
MM_keepMove = "";
for (var i=0; i < params.length; i++) {
var nextItem = params[i].substring(0,params[i].indexOf("="));
if (nextItem.toLowerCase() != MM_moveParam) {
MM_keepMove += "&" + params[i];
}
}
if (MM_keepMove.length > 0) MM_keepMove = MM_keepMove.substring(1);
}
}
// set the strings for the move to links
if (MM_keepMove.length > 0) MM_keepMove = Server.HTMLEncode(MM_keepMove) + "&";
var urlStr = Request.ServerVariables("URL") + "?" + MM_keepMove + MM_moveParam + "=";
MM_moveFirst = urlStr + "0";
MM_moveLast = urlStr + "-1";
MM_moveNext = urlStr + (MM_offset + MM_size);
MM_movePrev = urlStr + Math.max(MM_offset - MM_size,0);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!-- TemplateBeginEditable name="doctitle" -->
<title>用戶留言頁面</title>
<!-- TemplateEndEditable --><script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style type="text/css">
<!--
body {
background-image: url();
}
.style2 {font-size: 12px}
.style3 {font-size: 14px}
.style4 {color: #6BBC14}
.style5 {color: #8BCC4E}
-->
</style>
<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
</head>
<body>
<table width="919" height="860" align="left" cellspacing="0" bordercolor="#6BBC14">
<tr>
<th width="242" rowspan="3" align="center" valign="top" bgcolor="#FFFFFF" scope="row"><img src="board-left.gif" width="242" height="825">
<div id="Layer3" style="position:absolute; width:177px; height:165px; z-index:3; left: 49px; top: 598px;">
<div align="left" class="style3">
<p>合作站點(diǎn)</p>
<p><a href="http://www.sina.com.cn/"><img src="sina_logo2.gif" width="128" height="41" border="0"></a></p>
<p><a href="http://www.sohu.com/"><img src="sohu.gif" width="160" height="61" border="0"></a></p>
</div>
</div>
<div id="Layer2" style="position:absolute; width:200px; height:115px; z-index:2; left: 35px; top: 193px;"><img src="boardl1.gif" width="174" height="244"> </div> </th>
<td width="618" height="168" align="left" valign="top"><div align=<MM:BeginLock type="mmdate" format="Ch2" orig="<!-- #BeginDate format:Ch2 -->2006年1月3日 <!-- #EndDate -->"><img src="board.gif" width="618" height="168"> </div></td>
<td width="51" height="168" align="left" valign="top"><div align="right"><img src="board-right.gif" width="51" height="168" hspace="0" vspace="0" align="baseline"> </div> <div align="center"></div></td>
</tr>
<tr>
<td width="618" height="33" align="right"><div align="left">
<span class="style5 style2">我是一個(gè)平凡的人 在自己的世界行走 我就是我 別人怎么說與我何干呢</span>
<div id="Layer4" style="position:absolute; width:170px; height:104px; z-index:4; left: 56px; top: 78px;">
<table width="200" border="0">
<tr>
<td colspan="2"><div align="left"><span class="style4">歡迎光臨本站點(diǎn)</span></div></td>
</tr>
<tr>
<td width="14"> </td>
<td width="140"><div align="left"><span class="style4">今天是</span></div></td>
</tr>
<tr>
<td> </td>
<td><div align="left">
<!-- #BeginDate format:Ch2 -->2006年1月3日 <!-- #EndDate -->
</div></td>
</tr>
</table>
</div>
<div id="Layer5" style="position:absolute; width:147px; height:221px; z-index:5; left: 60px; top: 204px;">
<table width="200" height="109" border="0">
<tr>
<td height="17"><div align="left"><a href="index.asp"><img src="boardl3.gif" width="141" height="51" border="0"></a></div></td>
</tr>
<tr>
<td height="17"><div align="left"><a href="reg.asp"><img src="boardl5.gif" width="141" height="51" border="0"></a></div></td>
</tr>
<tr>
<td height="17"><div align="left"><img src="boardl6.gif" width="141" height="51"></div></td>
</tr>
<tr>
<td height="46"><div align="left"><a href="default.asp"><img src="boardl4.gif" width="141" height="51" border="0"></a></div></td>
</tr>
</table>
</div>
<div align="center"></div>
</div>
</td>
<td width="51" rowspan="2" align="left" valign="top"><img src="board-right2.gif" width="51" height="622"></td>
</tr>
<tr>
<td height="649" align="right" valign="top"><div align="left">
<div id="Layer1" style="position:absolute; width:181px; height:115px; z-index:6; left: 46px; top: 462px;">
</div>
<div id="Layer6" style="position:absolute; width:466px; height:608px; z-index:7; background-color: #C8EF85; layer-background-color: #C8EF85; border: 1px none #000000; left: 268px; top: 234px;">
<div id="Layer7" style="position:absolute; width:139px; height:116px; z-index:1; left: 462px; top: -3px;">
<table width="200">
<tr>
<td><a href="myworld.asp"><img src="cc2.jpg" width="128" height="34" border="0"></a></td>
</tr>
<tr>
<td><a href="myworld4.asp"><img src="cc1.jpg" width="128" height="34" border="0"></a></td>
</tr>
<tr>
<td><img src="cc4.jpg" width="128" height="34"></td>
</tr>
<tr>
<td><img src="cc3.jpg" width="128" height="34"></td>
</tr>
</table>
</div>
<% while ((Repeat1__numRows-- != 0) && (!Recordset1.EOF)) { %>
<br>
<table width="400" height="80" border="1" bordercolor="#72BC37">
<tr>
<td height="24" colspan="2">主題:<%=(Recordset1.Fields.Item("title").Value)%></td>
</tr>
<tr>
<td colspan="2">留言:</td>
</tr>
<tr>
<td width="31"> </td>
<td width="353"><%=(Recordset1.Fields.Item("message").Value)%></td>
</tr>
</table>
<hr>
<br>
<%
Repeat1__index++;
Recordset1.MoveNext();
}
%>
<table width="154" border="1" bordercolor="#63B42A">
<tr>
<td width="67"><A HREF="<%=MM_movePrev%>">上一頁</A> </td>
<td width="71"><A HREF="<%=MM_moveNext%>">下一頁</A></td>
</tr>
</table>
<p> </p>
<div id="Layer8" style="position:absolute; width:464px; height:140px; z-index:8; left: 2px; top: 443px;">
<form name="form1" method="POST" action="<%=MM_editAction%>">
<table width="461" border="1" bordercolor="#6BBC14">
<tr>
<td>主題: </td>
<td><input name="textfield" type="text" size="50"></td>
</tr>
<tr>
<td colspan="2">留言:</td>
</tr>
<tr>
<td width="35" height="88"> </td>
<td width="227"><textarea name="textarea" cols="50" rows="5" wrap="PHYSICAL"></textarea></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重寫"></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
</form>
</div>
</div>
</div></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close();
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -