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

网页评论框代码(网页评论框代码是什么)

admin 发布:2022-12-19 18:20 120


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

本文目录一览:

ASP页面中加入评论(急急急)

input type='button' class="postsubmit" id="CommentSubmit" value='提交' onClick="SendComment(%=Request("id")%)" /

提交也请将参数带进去。。。

script type="text/javascript"

//![CDATA[

GetComment(%=Request("id")%,1);

//]]

/script

百度空间评论部分的css

#in_send div.tit{margin:10px 0 10px 0;color:#666666;font-size:14px;font-weight:bold} /*内部发表评论区域*/ #in_send{ } /*发表评论区域背景*/ #in_send input{ } /*内部发表评论及留言区域的输入区,包括单选框,文本框和按钮*/ #in_send div.tit{ } /*发表评论标题*/ #in_send table{color:#888888; font-size:12px; } /*发表评论内容*/ #in_send td.f14{color:#888888; font-size:12px; } /*提示语*/ input.#spBlogCmtor{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*姓名输入框*/ input.#spBlogCmtURL{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*网址输入框*/ #spBlogCmtText{ } /*评论输入框*/#spBlogCmtText {border: 1px solid #888888; background:#FFFFFF url(

" target="_blank"

) right bottom no-repeat ;background-position:100% 70%!important; border-style:solid;border-width:1px;border-color:#888888;padding:5px; margin:0px; filter:alpha(opacity=70);color:#000000;font-size:14px; background-attachment: fixed;} #spBlogCmtURL {border: 1px solid #888888;} #spBlogCmtor {border: 1px solid #888888;}/*留言板内部页面*/ #spBCmtAuthor{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*留言姓名输入框*/ #spBCmtURL{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*留言网址输入框*/ #spBCmtText{color:#888888; font-size:12px;border:1px solid #888888; } /*留言输入框*/ #vercode input{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF;color:#00B1DD;font-size:14px; } /*验证码输入框*/ #in_send td.f14 input{color:#888888; font-size:12px;border:1px solid #888888; } /*添加留言按钮*//*留言板内部页面*/ input.#spBCmtAuthor{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*留言姓名输入框*/ input.#spBCmtURL{color:#888888; font-size:12px;border:1px solid #888888;background:#FFFFFF; } /*留言网址输入框*/ #spBCmtText{color:#888888; font-size:12px;border:1px solid #888888; } /*留言输入框*/ #vercode input{display:none} /*验证码输入框*/ #in_send td.f14 input{color:#888888; font-size:12px;border:1px solid #888888; } /*留言按钮*/m_comment_post table,#in_send table{width: !important;} /* 首页添加留言区域 */.EditorContainer{/*留言板调用载体 此处加入背景图*/ color:#888888!important ;font-size:12px;border:solid 1px #888888!important; background:#FFFFFF url(

" target="_blank"

) right bottom no-repeat ; background-position:100% 70%!important; }.EditorContainer iframe{/* 留言板调用文字输入区 */ color:#888888!important;font-size:15px;-moz-opacity:0.5;filter:alpha(Opacity=40);background:#888888 left top no-repeat }

百度空间首页留言板代码

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

#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}

.NET做评论框添加表情的代码???悬赏100财富值

你好!很高兴为你解答!

【1】、如果把控件也添加进去,添加表情的代码得会提示【潜在危险】,可以使用代号进行替换,评论成功后,再把代号替换成表情显示出来;

【2】、前台代码如下:

body

    form action="" method="post" name="Message" runat="server"

    div style="width: 380px; margin: 0 auto;"

        div class="team_r" style="width: 380px;"

            p

                img src="images/01.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-_-] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/02.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[@o@] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/03.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-|-] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/04.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[o_o] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/05.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[ToT] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/06.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[*_*] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/07.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-x-] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/08.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-_-zz] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/09.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[t_t] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/10.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-_-!] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/11.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:,] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/12.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:P] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/13.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:D] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/14.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:)] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/15.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:(] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/16.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:O] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/17.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:#] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/18.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:Z] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/19.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:0=] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/20.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[/:P] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/21.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:$] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/22.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[-.-] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/23.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[/-_-] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/24.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[:{] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/25.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[zz] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

                img src="images/26.gif" width="20" height="20" onclick="document.forms[0].gb_word.value+='[|-_-|] ';document.forms[0].gb_word.focus()"

                    style="cursor: hand"

            /p

        /div

        div class="team_l"

            textarea name="gb_word" cols="48" rows="10" mce_editable="true" id="gb_word" runat="server"/textareabr /

            asp:Button ID="btnOk" runat="server" Text="确  定" OnClick="btnOk_Click" /

            input type="reset" name="Submit2" value="重  置" /

            br /

            br /

            br /

            span style="font: 16pt; color: Red"b评论后内容:/b/spanbr /

            asp:Label ID="LblDisplay" runat="server"/asp:Label

        /div

    /div

    /form

/body

【3】、后台代码:

 protected void btnOk_Click(object sender, System.EventArgs e)

    {

        //显示

        LblDisplay.Text = PictureSwap(gb_word.Value);

    }

    public string PictureSwap(string str)

    {

        string[] a = new string[] { "[-_-]", "[@o@]", "[-|-]", "[o_o]", "[ToT]", "[*_*]", "[-x-]", "[-_-zz]", "[t_t]", "[-_-!]", "[:,]", "[:P]", "[:D]", "[:)]", "[:(]", "[:O]", "[:#]", "[:Z]", "[:0=]", "[/:P]", "[:$]", "[-.-]", "[/-_-]", "[:{]", "[zz]", "[|-_-|]", "[-_-||]", "[:.]", "[:-Q]", "[9_9]", "[:,.]", "[:?]", "[:-|]", "[:K]", "[:G]", "[:L]", "[:c]", "[:q]", "[:Y]", "[/gs]", "[/sg]", "[/hp]", "[/ok]", "[/rain]", "[/yin]" };

        for (int i = 1; i = 26; i++)

        {

            str = str.Replace(a[i - 1], "img src='images/" + i + ".gif' width='20' height='20'/");

        }

        return str;

    }

【4】、实现效果:

希望对你有所帮助,还望采纳,谢谢!!!

关于网页评论框代码和网页评论框代码是什么的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

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

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


取消回复欢迎 发表评论:

分享到

温馨提示

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

联系我们反馈

立即下载