12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <html>
- <head>
- <%-- <script src="${pageContext.request.contextPath}/static/web/js/jquery-2.1.4.js"></script>--%>
- </head>
- <script type="text/javascript">
- $(function () {
- var myDate = new Date;
- var year = myDate.getFullYear(); //获取当前年
- var mon = myDate.getMonth() + 1; //获取当前月
- var date = myDate.getDate(); //获取当前日
- // var h = myDate.getHours();//获取当前小时数(0-23)
- // var m = myDate.getMinutes();//获取当前分钟数(0-59)
- // var s = myDate.getSeconds();//获取当前秒
- var week = myDate.getDay();
- var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
- //console.log(year, mon, date, weeks[week])
- $("#time").html(year + "年" + mon + "月" + date + "日" + " " + weeks[week]);
- })
- //收藏本站代码
- jQuery.fn.addFavorite = function (l, h) {
- return this.click(function () {
- var t = jQuery(this);
- if (jQuery.browser.msie) {
- window.external.addFavorite(h, l);
- } else if (jQuery.browser.mozilla || jQuery.browser.opera) {
- t.attr("rel", "sidebar");
- t.attr("title", l);
- t.attr("href", h);
- } else {
- alert("请使用Ctrl+D将本页加入收藏夹!");
- }
- });
- };
- $(function () {
- $('#fav').addFavorite('收藏本站', location.href);
- });
- </script>
- <body>
- <div class="header">
- <div class="c">
- <div class="header_l l"><span id="time"></span> </div>
- <div class="header_r r">
- <div class="pprz"><a href="javascript:;" id="fav">收藏本站</a></div>
- </div>
- </div>
- </div>
- <div class="head">
- <div class="c">
- <div class="head_l l"><img src="${ctxStaticWeb}/images/rc_index_03.png" width="430" height="74"></div>
- <div class="head_r r"><a href="${ctx}/talent_web" <c:if test="${param.news_type==null}"> class="current"</c:if>>首
- 页</a><a href="${ctxF}/more?news_type=1" <c:if
- test="${param.news_type=='1'}"> class="current" </c:if>>政策法规</a><a href="${ctxF}/more?news_type=2" <c:if
- test="${param.news_type=='2'}"> class="current" </c:if>>通知公告</a><a href="${ctxF}/more?news_type=3" <c:if
- test="${param.news_type=='3'}"> class="current" </c:if>>人才计划专栏</a><a href="${ctxF}/more?news_type=5"
- <c:if test="${param.news_type=='5'}"> class="current" </c:if>>服务指南</a><a href="${ctxF}/invite/init"
- target="_blank">调查问卷</a></div>
- </div>
- </div>
- <div class="head_line"> </div>
- <div class="clear"></div>
- </body>
- </html>
|