function whatday() { var _today = new date(); var _day; if (_today.getday() == 0) _day = " 星期日"; if (_today.getday() == 1) _day = " 星期一"; if (_today.getday() == 2) _day = " 星期二"; if (_today.getday() == 3) _day = " 星期三"; if (_today.getday() == 4) _day = " 星期四"; if (_today.getday() == 5) _day = " 星期五"; if (_today.getday() == 6) _day = " 星期六"; $("#whatday").html(_day); } // function initpics(speed) { if ($(".rolling1_box").length == 0) return; if ($(".rolling1_con_a .con1").length < 9) return; $(".rolling1_con_b").html($(".rolling1_con_a").html()); function _marquee() { if ($(".rolling1_con_b").outerwidth() - $(".rolling1_box").scrollleft() <= 0) $(".rolling1_box").scrollleft($(".rolling1_box").scrollleft() - $(".rolling1_con_a").outerwidth()); else $(".rolling1_box").scrollleft($(".rolling1_box").scrollleft() + (jquery.browser.msie ? 6 : 2)); } var interval1 = setinterval(_marquee, speed); $(".rolling1_box").hover(function() { clearinterval(interval1); }, function() { interval1 = setinterval(_marquee, speed); }); } var _par001 = jquery.browser.msie ? 120 : 50; // $(function() { // if ($("#listpagescount").length == 1) { var _listpagescount = $("#listpagescount").val(); var _page = ""; for (var i = 1; i <= _listpagescount; i++) { _page += "" + i.tostring() + ""; } $(".listpages").html(_page + "
"); listpages(); } // whatday(); // $(".foot .bottommenu .con1").html($(".nav .con1 ul").html()); $(".foot .bottommenu .con1 a").unwrap().before("-"); $(".foot .bottommenu .con1").html(trim($(".foot .bottommenu .con1").html()).substring(1)); // initpics(_par001); // $(".nav .con1 li a").each(function() { if ($i(locahref(), $(this).attr("href"))) { $(this).parent().addclass("on"); } }); // $("a[titlestrong='true']").css({"font-weight":"bold"}); $("a[titlecolor]").each(function(){ if($(this).attr("titlecolor")!="") $(this).css({"color":$(this).attr("titlecolor")}); }); // }); function listpages() { if ($(".listpages").length == 0) return; var currentpage = curpage; if (currentpage == "") currentpage = "1"; var pagecode = "", pagecode_part = ""; var arrlen = $(".listpages a").length; $(".listpages a").each(function(index) { var p_min = 0, p_max = arrlen + 1; if (arrlen > 8) { p_min = parseint(currentpage) - 5; p_max = parseint(currentpage) + 4; var _subtracting1 = 5 - parseint(currentpage); if (_subtracting1 < 0) _subtracting1 = 0; p_max = p_max + _subtracting1; var _subtracting2 = parseint(currentpage) + 4 - arrlen; if (_subtracting2 < 0) _subtracting2 = 0; p_min = p_min - _subtracting2; } if (index < p_min || index >= p_max) return true; pagecode_part += "" + $(this).html() + ""; }); var prevhref = $(".listpages a").eq(parseint(currentpage) - 1).prev().attr("href"); if (prevhref == null) prevhref = $(".listpages a").eq(parseint(currentpage) - 1).attr("href"); var nexthref = $(".listpages a").eq(parseint(currentpage) - 1).next().attr("href"); if (nexthref == null) nexthref = $(".listpages a").first().attr("href"); pagecode = "最前页上一页" + pagecode_part + "下一页最后页"; pagecode = pagecode = "最前页上一页" + pagecode_part + "下一页最后页"; $(".listpages").html("" + pagecode + " |