﻿function selectTag(showContent, selfObj) {
    // 操作标签
    var tag = document.getElementById("tags").getElementsByTagName("li");
    var taglength = tag.length;
    for (i = 0; i < taglength; i++) {
        tag[i].className = "";
    }
    selfObj.parentNode.className = "selectTag";
    // 操作内容
    for (i = 0; j = document.getElementById("tagContent" + i); i++) {
        j.style.display = "none";
    }
    document.getElementById(showContent).style.display = "block";


}
function selectTag_2(showContent, selfObj) {
    // 操作标签
    var tag = document.getElementById("tags_2").getElementsByTagName("li");
    var taglength = tag.length;
    for (i = 0; i < taglength; i++) {
        tag[i].className = "";
    }
    selfObj.parentNode.className = "selectTag";
    // 操作内容
    for (i = 0; j = document.getElementById("tagContent_2_" + i); i++) {
        j.style.display = "none";
    }
    document.getElementById(showContent).style.display = "block";
}




//$(document).ready(function() {

//    $.ajax({
//        url: "/ajax/comment/getCommentIndex.ashx?n=" + Math.random(),
//        type: "POST",
//        cache: false,
//        success: function(html) {
//            $("#Comments_list").html(html);
//        }
//    });

//    $("table#tbVisa tr:nth-child(even)").css("background-color", "#f0f0f0");
//});
