作家
登录

Ajax在线提交留言并实时显示的js代码[修正版]

作者: 来源:www.28hudong.com 2013-03-30 01:12:40 阅读 我要评论

学习Ajax提交的朋友,不妨参考一下吧,从中你会明白一些技巧吧。 因代码本身的问题,脚本之家已经修正,欢迎大家测试。 Ajax留言本 * { padding: 0; margin: 0; } li { list-style: none; } body { background: #f9f9f9; font-size: 14px; } #explain { height: 60px; border-bottom: 1px solid #999999; background: #eee; font-size: 14px; color: #666; text-align: center; line-height: 60px; } #explain a { color: #990000; font-weight: bold; text-decoration: none; border-bottom: 1px dotted #990000; } #explain a:hover { border-bottom: 2px solid #990000; } #explain strong { color: #990000; } #box { width: 450px; padding: 10px; border: 1px solid #ccc; background: #f4f4f4; margin: 10px auto; } #fill_in { margin-bottom: 10px; } #fill_in li { padding: 5px 0; } #fill_in .text { width: 380px; height: 30px; padding: 0 10px; border: 1px solid #ccc; line-height: 30px; font-size: 14px; font-family: arial; } #fill_in textarea { width: 380px; height: 100px; line-height: 20px; padding: 5px 10px; border: 1px solid #ccc; font-size: 14px; font-family: arial; overflow: auto; vertical-align: top; } #fill_in .btn { border: none; width: 100px; height: 30px; border: 1px solid #ccc; background: #fff; color: #666; font-size: 14px; position: relative; left: 42px; } #message_text { display: none; } #message_text h2 { font-size: 14px; padding: 6px 0 4px 10px; background: #ddd; border-bottom: 1px solid #ccc; } #message_text li { background: #f9f9f9; border-bottom: 1px solid #ccc; color: #666; overflow: hidden; } #message_text h3 { padding: 10px; font-size: 14px; line-height: 24px; } #message_text p { padding: 0 10px 10px; text-indent: 28px; line-height: 20px; } 不妨多提交几次留言试试看…… 姓名: 内容: 显示留言 [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

  推荐阅读

  jquery实现文本框鼠标右击无效以及不能输入的代码

具体的程序代码如下: 复制代码 代码如下: <asp:TextBox ID="NodeText" runat="server"></asp:TextBox> <script src="JS/jquery-1.4.2.js" type="text/javascript"></script> <script type="text/javascr>>>详细阅读


本文标题:Ajax在线提交留言并实时显示的js代码[修正版]

地址:http://www.17bianji.com/kaifa2/JS/25483.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)