⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soft_forum_57798.htm

📁 驱动开发的一些资料
💻 HTM
字号:
var softid = document.getElementById("softid").value;
var name = document.getElementById("name").value;

function CommentDisplay(focus) {
	if(document.getElementById("postcomment").style.display == 'none' || focus == 1) {
		document.getElementById("postcomment").style.display = 'block';
		document.getElementById("postbutton").innerHTML = '<input type="button" value="取消评论" onclick="CommentDisplay()" />';
	} else {
		document.getElementById("postcomment").style.display = 'none';
		document.getElementById("postbutton").innerHTML = '<input type="button" value="点此发表评论" onclick="CommentDisplay()" />';
	}
}

function CommentCheck() {
	if(document.getElementById("username").value == '') {
		alert('请填写“笔名”!');
		return false;
	}
	if(document.getElementById("content").value == '') {
		alert('请填写“评论内容”!');
		return false;
	}
	var preurl = window.location.href;
	document.getElementById("preurl").value = preurl;
	document.getElementById("soft_id").value = softid;
	return true;
}

document.write('	<style type="text/css">');
document.write('	.a {color:#0033CC;text-decoration:none;} a:hover{color:#0000FF;text-decoration:underline;} body,td,th {	font-size: 12px; } ');
document.write('	</style>');
document.write('	<table width="100%" border="0" cellpadding="0" cellspacing="1" style="background:#CCCCCC;">');
document.write('	  <tr style="background:#E8E8E8">');
document.write('	    <td width="17%" height="25" align="center">楼层/回复</td>');
document.write('	    <td width="59%" align="center"><strong>评论内容</strong>  共<font color="red">0</font>条 <a href="http://pl.newhua.com/?id='+softid+'&amp;name='+name+'" target="_blank">查看完整内容</a></td>');
document.write('	    <td width="14%" align="center"><strong>评论人</strong></td>');
document.write('	    <td width="9%" align="center"><strong>日期</strong></td>');
document.write('	  </tr>');
document.write('	  <tr style="background:#FFFFFF">');
document.write('	    <td align="center" valign="middle">1 楼 </td>');
document.write('		<td style="padding:2px 5px;"><a href="#comment" onclick="CommentDisplay(1)">华军软件园欢迎您,请留下对此软件的宝贵建议,谢 ...</a></td>');
document.write('		<td align="center">系统</td>');
document.write('		<td align="center"></td>');
document.write('	  </tr>');
document.write('	  <tr style="background:#FFFFFF">');
document.write('	    <td align="left" colspan="4">&nbsp;&nbsp;&nbsp;&nbsp;<span id="postbutton"><input type="button" value="点此发表评论" onclick="CommentDisplay(0)" /></span></td>');
document.write('	  </tr>');
document.write('	  <tr id="postcomment" style="background:#FFFFFF;display:none;">');
document.write('	    <td colspan="4">');
document.write('	      <table border="0" width="100%">');
document.write('		    <form method="post" action="http://pl.newhua.com/post.php" onsubmit="return CommentCheck();">');
document.write('			<input type="hidden" name="soft_id" id="soft_id" />');
document.write('			<input type="hidden" name="preurl" id="preurl" />');
document.write('		    <tr>');
document.write('		      <td width="17%" align="right">联系方式:</td><td><input type="text" name="contact" />&nbsp;&nbsp;(此信息有助于我们与您联系,将不对外公开。)</td>');
document.write('		    </tr>');
document.write('		    <tr>');
document.write('		      <td width="17%" align="right">笔名 <font color="red">*</font>:</td><td><input type="text" name="username" id="username" /></td>');
document.write('		    </tr>');
document.write('		    <tr>');
document.write('		      <td width="17%" align="right">评论内容 <font color="red">*</font>:</td><td><textarea rows="5" cols="59" name="content" id="content"></textarea></td>');
document.write('		    </tr>');
document.write('		    <tr>');
document.write('		      <td width="17%" align="right">表情:</td>');
document.write('		  <td>');
document.write('<input type="radio" name="smilie" value="0.gif" /><img src="../new/soft_forum/smilies/0.gif" alt="" />');document.write('<input type="radio" name="smilie" value="1.gif" /><img src="../new/soft_forum/smilies/1.gif" alt="" />');document.write('<input type="radio" name="smilie" value="10.gif" /><img src="../new/soft_forum/smilies/10.gif" alt="" />');document.write('<input type="radio" name="smilie" value="11.gif" /><img src="../new/soft_forum/smilies/11.gif" alt="" />');document.write('<input type="radio" name="smilie" value="12.gif" /><img src="../new/soft_forum/smilies/12.gif" alt="" />');document.write('<input type="radio" name="smilie" value="13.gif" /><img src="../new/soft_forum/smilies/13.gif" alt="" />');document.write('<input type="radio" name="smilie" value="14.gif" /><img src="../new/soft_forum/smilies/14.gif" alt="" />');document.write('<input type="radio" name="smilie" value="15.gif" /><img src="../new/soft_forum/smilies/15.gif" alt="" />');document.write('<input type="radio" name="smilie" value="16.gif" /><img src="../new/soft_forum/smilies/16.gif" alt="" />');document.write('<input type="radio" name="smilie" value="17.gif" /><img src="../new/soft_forum/smilies/17.gif" alt="" />');document.write('<br />');document.write('<input type="radio" name="smilie" value="18.gif" /><img src="../new/soft_forum/smilies/18.gif" alt="" />');document.write('<input type="radio" name="smilie" value="19.gif" /><img src="../new/soft_forum/smilies/19.gif" alt="" />');document.write('<input type="radio" name="smilie" value="2.gif" /><img src="../new/soft_forum/smilies/2.gif" alt="" />');document.write('<input type="radio" name="smilie" value="3.gif" /><img src="../new/soft_forum/smilies/3.gif" alt="" />');document.write('<input type="radio" name="smilie" value="4.gif" /><img src="../new/soft_forum/smilies/4.gif" alt="" />');document.write('<input type="radio" name="smilie" value="5.gif" /><img src="../new/soft_forum/smilies/5.gif" alt="" />');document.write('<input type="radio" name="smilie" value="6.gif" /><img src="../new/soft_forum/smilies/6.gif" alt="" />');document.write('<input type="radio" name="smilie" value="7.gif" /><img src="../new/soft_forum/smilies/7.gif" alt="" />');document.write('<input type="radio" name="smilie" value="8.gif" /><img src="../new/soft_forum/smilies/8.gif" alt="" />');document.write('<input type="radio" name="smilie" value="9.gif" /><img src="../new/soft_forum/smilies/9.gif" alt="" />');document.write('			  </td>');
document.write('		    </tr>');
document.write('		    <tr>');
document.write('		      <td align="left" height="25" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="发表我的评论" />&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">注:所有评论通过审核后才会被公开。</font></td>');
document.write('		    </tr>');
document.write('			</form>');
document.write('		  </table>');
document.write('	    </td>');
document.write('	  </tr>');
document.write('	</table>');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -