论坛系统EasyJForum 是一个基于 Java 技术的免费社区论坛软件系统

源代码在线查看: topic.js

软件大小: 3550 K
上传用户: alsczhang
关键词: EasyJForum Java 论坛
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
					[EasyJForum] (C)2007 Hongshee Soft.
					$file: topic.js $
					$Date: 2008/1/31 $
				*/
				
				function replyTopic() 
				{
					if (isClosed)
					{
						alert('此主题已经关闭,不能继续回帖  ');
						return;
					}	
					$('frmpost').action = replyUrl + "&act=reply";
					$('frmpost').subject.value = "";
					$('frmpost').content.value = "";
					$('frmpost').submit();
				}
				
				function viewPage(pageno)
				{
					$('frmsort').action = topicUrl.replace(/(.+?-)\d+(\.html.*)/, '$1' + pageno + '$2');
					$('frmsort').submit();
				}
				
				function doReply(seqno, nickname) 
				{
					if (isClosed)
					{
						alert('此主题已经关闭,不能继续回帖  ');
						return;
					}	
					$('frmpost').action = replyUrl + "&act=reply";
					$('frmpost').subject.value = "Re: 回复 " + seqno + "# " + nickname + " 的帖子";
					$('frmpost').content.value = "";
					$('frmpost').submit();
				}
				function doQuote(seqno, nickname, createtime) 
				{
					if (isClosed)
					{
						alert('此主题已经关闭,不能继续回帖  ');
						return;
					}	
					var content = $('content_' + seqno).innerHTML;
					if (content.length > 5000)
						content = '引用文字太长,省略...';
					$('frmpost').action = replyUrl + "&act=reply";
					$('frmpost').subject.value = "";
					$('frmpost').content.value = "引用:" + content 
										  	   + "--- 原帖序号: " + seqno + "#,  由 " + nickname 
											   + " 于 " + createtime + "  发表";
					$('frmpost').submit();
				}
				
				function doReport(replyId)
				{
					$('frmpost').action = reportUrl + "&rid=" + replyId;
					$('frmpost').subject.value = "";
					$('frmpost').content.value = "";
					$('frmpost').submit();
				}			

相关资源