A. 求 html中的留言本的源代碼

這是我最近做的一個留言板,裡面加入了javaScript腳本,不知道算不算超出你要求。完成了一些驗證碼生成和驗證的操作。如果不合適,你修改修改,還不行就問我。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script type="text/javascript">
function sryzm(){
document.getElementById("yzhengma").value = ""
}

function yanzhengma(){
var num = parseInt(Math.random() * 10000) + 1

document.getElementById("xyzhengma").value = num
}

function tijiao(){
if (document.getElementById("yzhengma").value == "") {
alert("請先輸入驗證碼")
}
else
if (document.getElementById("yzhengma").value == document.getElementById("xyzhengma").value) {
alert("提交成功")

sryzm();
document.getElementById("xyzhengma").value = "點擊獲取驗證碼"
}
else {
alert("驗證碼錯誤,請重新輸入")
yanzhengma();
}
}
</script>
</head>
<body text=yellow background="mainpage.png">
<table bgcolor="000020">
<tr>
<th>
留言板
</th>
</tr>
<tr>
<td width="80">
王海英:
</td>
<td width="600">
飄過,踩踩空間!請保持隊形
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月3日11:51
</td>
</tr>
<tr>
<td width="80">
李強:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月15日19:51
</td>
</tr>
<tr>
<td width="80">
周冉:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月17日23:51
</td>
</tr>
<tr>
<td width="80">
張小英:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月19日21:51
</td>
</tr>
<tr>
<td width="80">
王凱:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月19日9:51
</td>
</tr>
<tr>
<td width="80">
劉晨:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年9月30日16:51
</td>
</tr>
<tr>
<td width="80">
張三:
</td>
<td width="600">
飄過,踩踩空間!
</td>
<td width="80">
發表於
</td>
<td width="150">
2010年10月1日13:51
</td>
</tr>
</table>
<label>
給我留言
<br/>
</label>
<textarea name="name" cols="90" rows="10"></textarea>
<input type="text" size="10" value="輸入驗證碼" id="yzhengma" onclick="sryzm()"/>
<input type="text" size="10" value="點擊獲取驗證碼" id="xyzhengma" onclick="yanzhengma()"/>
<input type="button" value="提交" onclick="tijiao()"/>
</body>
</html>

B. BLOG留言板代碼 HTML

教你一個用reapter實現的,下面是reapter的click事件里的代碼:
public void BindRepeater()
{
SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=MyMvp;Integrated Security=True");
SqlDataAdapter da = new SqlDataAdapter("Select * from message", conn);
DataTable dt = new DataTable();
da.Fill(dt);
Repeater1.DataSource = dt;
Repeater1.DataBind();
}
//留言按鈕:
protected void Button1_Click(object sender, EventArgs e)
{
if (Session["username"] == null)
{ Response.Redirect("Login.aspx"); }
else
{
SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=MyMvp;Integrated Security=True");
string msgTime = DateTime.Now.ToString();
string titles = this.TextBox1.Text.ToString();
SqlCommand cmd = new SqlCommand("Insert into message(title,username,msgTime) values('" + titles + "','" + Session["username"].ToString() + "','" + msgTime + "')", conn);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
BindRepeater();
}

C. 如何在留言板中插入HTML代碼效果

描述的有點亂,其實你可以用HTML編輯器來代替輸入框。輸入框是不能添加HTML標簽的。就算是添加也只能是HTML代碼,然後輸出的時候表現出來。
提交之後生成表格就是先做一個表格,然後表格裡面的內容用動態的調用。

D. 求靜態HTML留言板程序!

這個是及其簡單的聊天
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>簡單聊天</title>
<style>
* {
font-size:12px;
margin:0;
padding:0;
}
fieldset {
padding:10px;
margin:10px;
width:270px;
color:#333;
border:#06c dashed 1px;
}
legend {
color:#06c;
font-weight:800;
background:#fff;
text-align:center
}
ul {
list-style-type: none;
margin:8px 0 4px 0;
}
li {
margin-top:4px;
}
</style>

<script type="text/javascript">
function Trim(text)//去左右空格

{
return text.replace(/^\s+|\s+$/g,"");
}

function sendTxt()
{
if (Trim(document.getElementById("txtSendContent").value)=="")
{
alert("輸入的內容為空!");
document.getElementById("txtSendContent").focus();
return false;
}

document.getElementById("ulContent").innerHTML+="<font color='red'>me say</font>\r\n:<li>"+getPic(document.getElementById("txtSendContent").value)+"</li>\r\n";
}

function getPic(text)
{
text=text.replace(/:\)/gim,"<img src='images/QQ/smile.gif' border='0' width='24' height='24'>");
text=text.replace(/:\(/gim,"<img src='images/QQ/cry.gif' border='0' width='24' height='24'>");
text=text.replace(/:-\(/gim,"<img src='images/QQ/cry.gif' border='0' width='24' height='24'>");
text=text.replace(/:-\)/gim,"<img src='images/QQ/smile.gif' border='0' width='24' height='24'>");
text=text.replace(/:)/gim,"<img src='images/QQ/smile.gif' border='0' width='24' height='24'>");

//var pattern=new RegExp("\[img]","gim");
text=text.replace(/\[img]([^\[]*)([^\[]*)\[\/img]/gim,"<img src='images/QQ/$2' border='0' width='19' height='19'>");
text=text.replace("\r\n","<br>");
return text;
}

function choosePic()
{
var returnValue=window.showModalDialog('emot.htm',null,'dialogHeight:240px;dialogWidth:300px');
document.getElementById("txtSendContent").value+=returnValue;
}

function test()
{
var ss = "Is is the cost of of gasoline going up up?.\n";
var re = /\b([a-z]+) \1\b/gim; //創建正則表達式樣式.
var rv = ss.replace(re,"$1"); //用一個單詞替代兩個單詞.
alert(rv);
}
</script>
</head>

<body style="text-align:center">
<fieldset style="width:326px">
<legend>消息顯示區</legend>

<ul id="ulContent" style="text-align:left">
</ul>
</fieldset>

<br>

<fieldset>
<legend>消息發送區</legend>

<form name="form1" method="post" action="">
<label>
<textarea name="txtSendContent" id="txtSendContent" cols="40" rows="10"></textarea>
</label>
<label>
<input type="button" name="button" id="button" value="發送" onClick="return sendTxt();">
<input type="button" name="button" id="button" value="test" onClick="return test();">
</label>
<img src="images/QQ/smile.gif" alt="選擇表情符" title="選擇表情符" style="cursor:hand" width="24" height="24" onClick="return choosePic();">
</form>
</fieldset>

</body>
</html>

E. 求 靜態網頁的 留言板 html代碼 謝謝

靜態網頁不可做留言板
留言板需資料庫和動態語言才可做
你可以用html語言做網站,然後申請一個留言板,把它框架到你的頁面中去

F. 求留言板HTML代碼

html是無法與資料庫交互的。你至少得用一門伺服器端語言,如:C#,JAVA,PHP等

G. html網頁留言代碼

不要資料庫怎麼給你留言啊,留言的內容存在那裡啊,給你個簡單的留言吧,
http://www.makewing.com/lanren/aspcode/1p_guestbook.rar
你下載看看,要在asp環境下測試

H. HTML留言簿代碼 如圖

如果只是html的靜態頁面 代碼如下
<table border=1>
<caption>留言薄</caption>
<tr>
<td>姓名:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>電話:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>Email地址:</td>
<td><input type='text' /></td>
</tr>
<tr>
<td>留言:</td>
<td><textarea rows="10" cols="30" ></textarea></td>
</tr>
<tr><td colspan="2" align='center'><input type='button' value='提交' /> <input type='button' value='清除' /></td></tr>
</table>

I. 留言板代碼 html的

你是說發到郵箱的吧。你可以用表單做。表單的ACTION屬性為MAILTO:[email protected] 既可以。

J. html網頁留言板代碼怎麼用

前台用form表單,把值傳到後台處理文件中處理就行