当前位置:首页 > 代码 > 正文

网站在线留言代码(网站留言源码)

admin 发布:2022-12-19 04:44 113


今天给各位分享网站在线留言代码的知识,其中也会对网站留言源码进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!

本文目录一览:

百度空间首页留言板代码

/******留言板******/

#mod_board.mod{} /*留言板模块*/

#mod_board table.modth{} /*以下6项如果不设定则继承通用模块的样式*/

#mod_board td.modtl{}

#mod_board div.modhead{}

#mod_board span.modtit{}

#mod_board td.modtc{}

#mod_board td.modtr{}

/*其它代码与最新评论区完全相同,可以用#mod_board罩着修改,但一定要放到评论区代码的后面才能生效*/

/******留言板内部页面******/

#spBCmtAuthor{} /*留言姓名输入框*/

#spBCmtURL{} /*留言网址输入框*/

#spBCmtText{} /*留言输入框*/

#vercode input{} /*验证码输入框*/

#in_send td.f14 input{} /*添加留言按钮*/

#in_msg {} /*留言区*/

#in_msg div.tit{} /*留言区标题*/

#in_msg a{} /*留言区链接*/

#in_msg a:hover{} /*悬停效果*/

#in_msg td.index{} /*留言序号*/

#in_msg div.user{} /*留言用户*/

#in_msg div.user a img{} /*用户头像*/

#in_msg div.user a:hover img{} /*悬停效果*/

#in_msg td.cnt{} /*留言时间*/

#in_msg div.desc{} /*留言内容*/

#in_msg div.line{} /*分界线*/

p.s. CSS初学者可以略过下面的内容,建议CSSer参考一下。

由于留言板内部页面与评论区域的代码交叉嵌套,因此在设计模板时应注意语句的先后顺序,下面给出评论区与留言区的建议语句排序:

/******内部发表评论区域******/

#in_send{} /*发表评论区域背景*/

#in_send input{} /*内部发表评论及留言区域的输入区,包括单选框、文本框和按钮*/

#in_send div.tit{} /*发表评论标题*/

#in_send table{} /*发表评论内容*/

#in_send td.f14{} /*提示语*/

input.#spBlogCmtor{} /*姓名输入框*/

input.#spBlogCmtURL{} /*网址输入框*/

#spBlogCmtText{} /*评论输入框*/

/******留言板内部页面******/

input.#spBCmtAuthor{} /*留言姓名输入框*/

input.#spBCmtURL{} /*留言网址输入框*/

#spBCmtText{} /*留言输入框*/

#vercode input{} /*验证码输入框*/

#in_send td.f14 input{} /*留言按钮*/

#in_msg{} /*留言区*/

#in_msg div.tit{} /*留言区标题*/

#in_msg a{} /*留言区链接*/

#in_msg a:hover{} /*悬停效果*/

#in_msg table.item{} /*留言列表*/

#in_msg td.index{} /*留言序号*/

#in_msg div.user{} /*留言用户*/

#in_msg div.user a img{} /*用户头像*/

#in_msg div.user a:hover img{} /*悬停效果*/

#in_msg td.cnt{} /*留言时间*/

#in_msg div.desc{} /*留言内容*/

#in_msg div.line{} /*分界线*/

其中部分代码与之前给出的代码略有出入(例如input.#spBCmtAuthor{}),这是因为相关的html代码为:

...

td class="f14"姓 名:/td

tdinput type="text" name="spBCmtAuthor" id="spBCmtAuthor" style="width:220px" onKeyDown="cont(this,50);" onKeyUp="cont(this,50);" maxlength="49"/td

...

因此,input.#spBCmtAuthor{}的写法比#spBCmtAuthor{}更为精确。 另外,#in_send input{} 可用来控制留言板“姓名”单选框的样式。但一定要把它提到最前,否则,会干扰姓名、网址等输入框的样式

默认的留言板代码如下:

#in_msg{width:710px}

#in_msg div.tit{margin-bottom:12px;color:#333333;font-size:14px;font-weight:bold}

#in_msg .item td.index{width:40px;font-weight:bold}

#in_msg .item div.user{width:150px;color:#333333;}

#in_msg .item div.user a{color:#3399CC;font-size:12px}

#in_msg .item div.user a:visited{color:#3399CC}

#in_msg .item div.user img{margin-bottom:5px}

#in_msg .item td.cnt a{color:#3399CC;font-size:12px}

#in_msg .item td.cnt a:visited{color:#3399CC}

#in_msg span.date{color:#666666;font-size:12px}

#in_msg div.desc{margin-top:5px;color:#333333;font-size:12px}

#in_msg div.line{margin-top:17px;line-height:17px;border-top:1px solid #D2E9F4}

网页留言板代码

link href="../../css/user.css" rel="stylesheet" type="text/css"

script language="JavaScript" src="../../js/common.js"/script

script language="JavaScript" src="../../js/ubbcode.js"/script

script language="JavaScript"

function formCheck()

{

if (document.theform.nickname.value == "")

{

alert("请填写名字。");

document.theform.nickname.focus();

return false;

}

if (document.theform.content.value == "")

{

alert("请填写留言内容。");

document.theform.content.focus();

return false;

}

theform.Submit.disabled=true;

return true;

}

function showimage()

{

document.images.faceimg.src=face_image[parseInt(document.theform.face.options[document.theform.face.selectedIndex].value)];

}

body background=""

center

IFRAME marginHeight=0 marginWidth=0 noResize scrolling=no frameBorder=0 src=";bgcolor=ffffff" width=468 height=60

/IFRAME

/center

p /p

form name="theform" onsubmit="return formCheck();" method="post" action="get_post.asp"

TABLE width=550 border=0 align="center" cellPadding=0 cellSpacing=0

table width="550" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#ebebeb"

tr

td class="pt9"

p*名字:

input name="nickname" type="text" size="15" maxlength="12" class="inputbox1"

br

Email:

input name="email" type="text" size="15" maxlength="45" class="inputbox1"

主页地址:

input name="hp_url" type="text" value="http://" size="22" maxlength="125" class="inputbox1"

/p

/td

tr

td width="409" class="pt9" !--因为图片连接的原因,本文件只适合include在script/dirname下的文件 --

img onClick=bold() src="../../images/icon_editor_bold.gif" width="23" height="22" alt="粗体" border="0"img onClick=italicize() src="../../images/icon_editor_italicize.gif" width="23" height="22" alt="斜体" border="0"img onClick=underline() src="../../images/icon_editor_underline.gif" width="23" height="22" alt="下划线" border="0"

 

img onClick=center() src="../../images/icon_editor_center.gif" width="23" height="22" alt="居中" border="0"img onClick=hyperlink() src="../../images/icon_editor_url.gif" width="23" height="22" alt="超级连接" border="0"img onClick=email() src="../../images/icon_editor_email.gif" width="23" height="22" alt="Email连接" border="0"img onClick=image() src="../../images/icon_editor_image.gif" width="23" height="22" alt="图片" border="0"img onClick=flash() src="../../images/icon_swf.gif" width="23" height="22" alt="Flash图片" border="0"img onClick=showcode() src="../../images/icon_editor_code.gif" width="23" height="22" alt="编号" border="0"img onClick=quote() src="../../images/icon_editor_quote.gif" width="23" height="22" alt="引用" border="0"img onClick=list() src="../../images/icon_editor_list.gif" width="23" height="22" alt="目录" border="0"

 

br

tr

td

table width="100%" border="0" cellpadding="0" cellspacing="0" class="pt9"

tr

td width="40" valign="top"*留言:/td

tdtextarea name="content" cols="50" rows="6" id="content"/textarea/td

/tr

/table

p align="center"

input name="replyer" type="hidden" value=""

input name="reply_content_id" type="hidden" value=""

input name="userid" type="hidden" value="79444"

input type="submit" name="Submit" value="确认留言" class="button1"

input type="reset" name="Reset" value="取消重写" class="button1"

/p/td

/tr

/table

p /p

/form

table width="550" border="0" align="center" cellpadding="2" cellspacing="1"

tr

td width="88" valign="top"

img src=""

/td

td width="417"TABLE width="100%" border=0 cellPadding=0 cellSpacing=0 class="pt9"

TBODY

TR

TD width=43 colSpan=2 height=29 rowSpan=2IMG height=29

src="../../images/1_r2_c2.gif" width=43 border=0/TD

TD background=../../images/1_r2_c4.gif height=10/TD

TD width=37 colSpan=2 height=29 rowSpan=2IMG height=29

src="../../images/1_r2_c6.gif" width=37 border=0/TD

/TR

TR

TD height=19 TABLE cellSpacing=0 cellPadding=0 width="100%" border=0

TBODY

TR

TD class="pt9" font class="filtertxt"dsfsd/font /TD

TD width="168" align=right class="pt9" /TD

/TR

/TBODY

/TABLE/TD

/TR

TR

TD width=10 background=../../images/1_r4_c2.gif/TD

TD width=27/TD

TD width="100%" height=50 img src="../../images/blank.gif" width="5" height="5"

br fdsfsdbdfssdfsdf/b br img src="../../images/blank.gif" width="5" height="5" /TD

TD width=22/TD

TD width=15 background=../../images/1_r4_c2.gif/TD

/TR

TR

TD background=../../images/1_r4_c2.gif/TD

TD/TD

TD height=1hr width="100%" size="1" noshade/TD

TD/TD

TD background=../../images/1_r4_c2.gif/TD

/TR

TR

TD width=43 colSpan=2 height=26 rowSpan=2 IMG height=26 src="../../images/1_r6_c2.gif" width=43 border=0/TD

TD align=right height=17

img src="../../images/no_home.gif" align="absmiddle" img src="../../images/no_email.gif" align="absmiddle"   FONT color=#336600[2006-7-17 21:24:00]/FONT /TD

TD width=43 colSpan=2 height=26 rowSpan=2IMG height=26

src="../../images/1_r6_c6.gif" width=37 border=0/TD

/TR

TR

TD background=../../images/1_r2_c4.gif

height=9/TD

/TR

/TBODY

/TABLE/td

/tr

/table

BR

form

table width="516" border="0" cellspacing="0" cellpadding="0" align="center"

tr

td

table width=100% border=0 cellspacing=1 cellpadding=2 class=pt9trtd height=13img src=../../images/turnpage2_1.gif align=absmiddle border=0 img src=../../images/turnpage2_2.gif align=absmiddle border=0 b1/b | img src=../../images/turnpage2_3.gif align=absmiddle border=0 img src=../../images/turnpage2_4.gif align=absmiddle border=0/tdtd class=pt9 width=140 align=right共font color=red1/font页第input type=text name=JumpPage maxlength=3 size=3页input type=button value=转页 onClick="location.href='/script/user/list.asp?userid=79444page=' + this.form.JumpPage.value;"/td/tr/table

/td

/tr

/table

/form

网站在线留言怎么做。能不能把留言直接发到我的邮箱里?

网站在线留言当然可以直接发到你的邮箱里的,你从网络下载一些邮件系统.修改一下就可以了.

方法如下:

把如下代码加入body区域中:

script language = "Javascript"

function mailer() {

email = document.use.runit.value

document.mailone.mail1.value = email

document.mailtwo.mail2.value = email

}

/script

center

form name = "use"

lgt;textarea name = "runit" class="pt9" cols= "35" rows = "5"rgt;你只要改变发送邮件的主题和相应的E-mail地址即可。 lgt;/textareargt;

/form

form name = "mailone" method=post action="mailto:vicw@163.com?subject=邮件主题" enctype = "text/plain" onClick="mailer()"

input type = "hidden" name = "mail1"

input type = "submit" value = "发到mail1" name="submit2" class="pt9"

/form

form name = "mailtwo" method=post action="mailto:javascript2000@china.com?subject=邮件主题" enctype = "text/plain" onClick="mailer()"

input type = "hidden" name = "mail2"

input type = "submit" value = "发到mail2" name="submit" class="pt9"

/form/center

把里边的邮件地址换成你自己的邮箱地址都可以了,希望能够帮到你

万网M1型静态空间如何用在线留言代码?内详

留言本特点

1、真正属于HTML格式网页的、新一代嵌入式留言本,只要在你网页插入一段代码就可拥有一个留言本,浏览、添加留言都在用户网站内完成,无任何外界链接,就象完全是自己的留言本一样。

2、支持公开留言和悄悄话留言。

3、有多种留言本式样任你选择。式样一 二 三 四 五 六 七

4、具有强大的管理功能。用户登录后,可任意回复、删除留言,还可以同时对多个留言进行批回复、批删除;可查看留言者的IP地址及IP来源;可查看留言本最近访问时间,并统计访问总次数;可以随意对留言进行重新排序,可以设定新留言插入的位置...去注册

5、具有审核留言功能,用于拦截某些无聊留言、广告留言。自由设置是否开启此功能

6、留言本默认是最多保留20条留言,只要你在你的网站首页加入我们网站的文字连接,可以保留更多的留言。 获取链接代码

用户快速登录

为了方便用户登录查看、管理留言,用户可将下面网址:

用户名p=密码

1、直接输入浏器地址栏 2、加入收藏夹 3、作为链接URL

如有下列情况之一,将删除用户资料

1、用户注册资料不真实的。

2、留言本(免费类)连续20天没有人访问的,一律视为自动放弃留言本,系统会自动删除其资料。

如有什么问题、建议、发现本站有错误,欢迎写入站长信箱或留言。站长会尽快回复。

网站在线留言代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于网站留言源码、网站在线留言代码的信息别忘了在本站进行查找喔。

版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;

本文地址:http://ahzz.com.cn/post/2583.html


取消回复欢迎 发表评论:

分享到

温馨提示

下载成功了么?或者链接失效了?

联系我们反馈

立即下载