网易实况手游官网留言区(网易实况手游论坛)
body {
font-family: Arial, sans-serif;
margin: 25px;
}
h1 {
text-align: center;
color: #333;
}
h2 {
color: #333;
}
.comment-section {
margin-top: 30px;
}
form {
margin-top: 20px;
}
label {
font-weight: bold;
}
input[type="text"],
textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
margin-bottom: 10px;
border-radius: 5px;
border: 1px solid #ccc;
}
input[type="submit"] {
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
.comment {
border: 1px solid #ccc;
padding: 10px;
margin-bottom: 10px;
}
.comment-author {
font-weight: bold;
color: #333;
margin-bottom: 5px;
}
.comment-date {
font-size: 12px;
color: #999;
}
.comment-message {
margin-top: 5px;
color: #333;
}
网易实况手游官网留言区
留言区
function formatDate(date) {
var monthNames = [
"一月", "二月", "三月",
"四月", "五月", "六月", "七月",
"八月", "九月", "十月",
"十一月", "十二月"
];
var day = date.getDate();
var monthIndex = date.getMonth();
var year = date.getFullYear();
return day + + monthNames[monthIndex] + + year;
}
function createCommentElement(comment) {
var commentDiv = document.createElement(div);
commentDiv.className = "comment";
var author = document.createElement(div);
author.className = "comment-author";
author.appendChild(document.createTextNode(comment.author));
var date = document.createElement(div);
date.className = "comment-date";
date.appendChild(document.createTextNode(formatDate(new Date())));
var message = document.createElement(div);
message.className = "comment-message";
message.appendChild(document.createTextNode(comment.message));
commentDiv.appendChild(author);
commentDiv.appendChild(date);
commentDiv.appendChild(message);
return commentDiv;
}
function addComment() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var message = document.getElementById("message").value;
var comment = {
author: name,
email: email,
message: message
};
var commentElement = createCommentElement(comment);
document.getElementById("comment-list").appendChild(commentElement);
// Reset input fields
document.getElementById("name").value = "";
document.getElementById("email").value = "";
document.getElementById("message").value = "";
}
document.getElementById("comment-list").innerHTML = "
"
" +
"
" +
"
玩家评论
游戏推荐
东方奇缘问道重生bt变态版下载 v1.1.0
帝御山河游戏官方正式版 v1.3.004
热血魔尊游戏官方网站 v4.3.0
神命仙侣手游官方网站 v4.3.0
落剑长歌手游官网下载 v4.3.0
镇天剑传手游官方正式版 v4.3.0
倾城古剑游戏官方网站最新版 v4.3.0
弑神暗刃游戏官方网站 v4.3.0
剑徒之路手游官方网站 v4.3.0
热门文章
火影忍者OL6月底有哪些新服 6月20日新服开启预告[多图]
梦幻模拟战公主联盟精选卡池降临 幽游白书限时活动开启[多图]
拉结尔6月27日更新新玩法一览 世界地图地狱模式登场[多图]
猫和老鼠手游疯狂奶酪赛强势来袭 疯狂奶酪赛玩法规则奖励一览[多图]
闹闹天宫6月20日停机更新 6月20日版本活动一览[多图]