<h4>Leave a Reply</h4>
<form name="cFrm" id="cFrm" action="http://www.blogger.com/login-comment.do" method="post">
<input type="hidden" name="blogID" value="<$BlogID$>"/>
<input type="hidden" name="postID" value="<$BlogItemNumber$>"/>
<input type="hidden" name="isPopup" value="false"/>
<input type="hidden" name="iden" value="Other"/>
<p><input type="text" name="anonName" id="author" value="" size="22" tabindex="1" />
<label for="author"><small><strong>Name</strong> (required)</small></label></p>
<p><input type="text" name="anonURL" id="url" value="" size="22" tabindex="2" />
<label for="url"><small><strong>Website</strong></small></label></p>
<p><img class="out" src=" http://www.blogger.com/img/gl.bold.gif" width="18" height="18" onMouseOver="this.className='over';sh('bold')" onMouseOut="this.className='out';sh('bold')" onClick='insertTags("<b>","</b>","")' /> <img class="out" src=" http://www.blogger.com/img/gl.italic.gif" width="18" height="18" onMouseOver="this.className='over';sh('italic')" onMouseOut=" this.className='out';sh('italic')" onClick='insertTags("<i>","</i>","")' /> <img class="out" src=" http://www.blogger.com/img/gl.link.gif" width="18" height="18" onMouseOver="this.className='over';sh('link')" onMouseOut="this.className='out';sh('link')" onClick='var lien = prompt("URL :"," http://");if(lien!=""&&lien!=null&&lien!="http://"){insertTags("<a href=\"" + lien +"\">","</a>","")} else {}' /> <span id="bold" class="hide">Convert to <b>bold</b></span><span id="italic" class="hide">Convert to <i>italic</i></span><span id="link" class="hide">Convert to <a href="#">link</a></span>
<br />
<textarea name="postBody" id="comment" cols="100%" rows="6" tabindex="3"></textarea></p>
<script type="text/javascript">
//<![CDATA[
document.write('<p><input type="checkbox" name="remember" id="remember" style="width:auto"> <label for="remember">Remember me<\/label><\/p>');
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
var bgPosted = false;
var cFrm = document.getElementById('cFrm');
cFrm.target = 'bgpost';
cFrm.onsubmit = function(){return cFrmPost()};
if (document.cookie != '') {
cFrm.anonName.value = document.cookie.replace(/^.*anonName=?([^;]*);?.*$/, '$1');
cFrm.anonURL.value = document.cookie.replace (/^.*anonURL=?([^;]*);?.*$/, '$1');
}
cFrm.postBody.value = '';
function cFrmPost() {
with (cFrm) {
anonName.value = anonName.value.replace(/^\s+|\s+$/g, '');
anonURL.value = anonURL.value.replace (/^\s+|\s+$/g, '');
postBody.value = postBody.value.replace(/^\s+|\s+$/g, '');
if (anonName.value == '') {
alert('Please enter your name');
anonName.focus();
return false;
}
if (postBody.value == '') {
alert('Please enter a comment');
postBody.focus();
return false;
}
anonURL.value = anonURL.value.replace(/^http:\/\//g, '');
}
bgPosted = true;
document.cFrm.post.disabled=true;document.cFrm.post.value="Please wait...";
return true;
}
function bgpostLoad() {
if (bgPosted == true) {
if ( cFrm.remember.checked) {
var expires = new Date();
expires.setFullYear(expires.getFullYear()+1);
document.cookie = "anonName=" + unescape(cFrm.anonName.value) + "; path=/" + "; expires=" + expires.toGMTString();
document.cookie = "anonURL=" + unescape(cFrm.anonURL.value) + "; path=/" + "; expires=" + expires.toGMTString();
document.cookie = "fromName=" + unescape( cSend.fromName.value) + "; path=/" + "; expires=" + expires.toGMTString();
document.cookie = "fromEmail=" + unescape(cSend.fromEmail.value) + "; path=/" + "; expires=" + expires.toGMTString();
}
window.location.reload();
}
}
document.write('<iframe style="position:absolute;left:-9999px;top:0" name="bgpost" onload="bgpostLoad()"><\/iframe>');
//]]>
</script>
<p style="text-align:right">
<input type="button" value=" Preview " onclick="javascript:PreviewpostBody()" tabindex="4" /> <input style="font-weight:bold" type="submit" name="post" value=" Post " id="FinalPublish" tabindex="5" /><br class="clear" />
</p>
</form>
总觉得已经得到的太过罗嗦了点,自己瞎搞了下。
在评论后加入下面的这些!
自己去看看效果吧,,哈哈/
嘿嘿,我真聪明!
评论