var siteSetup = {sitePath: '/',ajaxPath: '/ajax.aspx',skinPath: '/Skin/OceanStar/'}; $(function () { $('a[class="fav"]').addFavorite(); $('a[class="home"]').setHomePage(); $('#change_search_model').click(function () { if($('.model_list').css('display') != 'block') { $('.model_list').slideDown(500); try { clearTimeout(timer); } catch (e) { } }else{ $('.model_list').mouseleave(); }; }) $('.model_list').mouseleave(function () { timer = setTimeout(function () { $('.model_list').slideUp(100); }, 500); }) $('.model_list a').click(function () { $('#change_search_model').text($(this).text()) $('.model_list').slideUp(100); try { clearTimeout(timer); } catch (e) { } }) $('.model_search_click').click(function () { var model = checkSearchModel(); doModelSearch(model[0],model[1]); }) $('#model_adv_search').click(function () { var model = checkSearchModel(); doModelSearch(model[0],2); }) var checkSearchModel = function(){ var model = $('#change_search_model').text(); switch (model) { case '文章': return[1, 1]; case '图片': return[2, 1]; case '软件': return[3, 1]; default: return[0, 2]; } } var doModelSearch = function (modelId, searchType) { var searchValue = $('.model_search').val(); if (searchType != 2 && (searchValue == null || searchValue == '')) { alert('请输入要搜索的关键词'); $('.model_search').focus(); return; } if(searchType == 2 && modelId == 0){ location.href = '/search.aspx?searchType=0&Keyword=' + searchValue; return; } switch (modelId) { case 1: location.href = '/search.aspx?searchtype=1&modelId=' + modelId + '&nodeId=1&fieldOption=title&Keyword=' + searchValue; break; case 2: location.href = '/search.aspx?searchType=1&modelId=' + modelId + '&nodeId=2&fieldOption=title&Keyword=' + searchValue; break; default: location.href = '/search.aspx?searchtype=1&modelId=' + modelId + '&nodeId=3&fieldOption=title&Keyword=' + searchValue; break; } } var checkUserLogin = function () { $.pe.ajax('checkUserLogin', { success: function (response) { var _response = $(response); if (_response.find('status').text() == 'ok') { var _loginedUserInfo = $('#loginedUserInfo'), _loginAnchor = $('#loginAnchor'); _loginedUserInfo.html($.pe.replaceUserInfoVariable(_loginedUserInfo.html(), _response)); $('#loginedUserInfo,#loginAnchor').bind({ 'mouseenter': function () { _loginedUserInfo.slideDown(500); try { clearTimeout(timer); } catch (e) { } }, 'mouseleave': function () { timer = setTimeout(function () { _loginedUserInfo.slideUp(500); }, 500); } }); _loginAnchor.html('尊敬的' + _response.find('username').text() + "您好!").fadeIn(); $('#loginStatusSign').hide(); $('#logout').click(function () { $.pe.ajax('logout', { success: function (response) { if ($(response).find('status').text() == 'ok') { $('#loginField input[name="username"]').val(''); $('#loginField input[name="userpass"]').val(''); $('#loginField input[name="validate"]').val(''); $('#loginField input[name="saveinfo"]').attr("checked", false); location.reload(); } } }); }) } else { $.pe.ajax('checkLoginValidate', { success: function (response) { if ($(response).find('status').text() == 'yes') { $('#validateSign').click(function () { $.pe.refreshValidateCode($('.validateSign')); }); $('#validateField').show(); } } }); $('#validateCode').focus(function(){$('#validateSign').click();$('#validateSign').show();}) $('#loginAnchor').text('会员登录').click(function () { $('#loginField').overlay({ api: true, expose: true }).load(); return false; }).fadeIn(); $('#login').click(function () { var username = $('#loginField input[name="username"]'); var userpass = $('#loginField input[name="userpass"]'); var saveinfo = $('#loginField input[name="saveinfo"]'); var validate = $('#loginField input[name="validate"]'); if (username.val() == '') { alert('请填写用户名!'); username.focus(); return; } if (userpass.val() == '') { alert('请填写密码!'); userpass.focus(); return; } if ($('#validateField').css("display") != 'none') { if (validate.val() == '') { alert("请填写验证码!"); validate.focus(); return; } } $.pe.ajax('userLogin', { params: { username: username.val(), password: userpass.val(), checkcode: validate.val(), expiration: saveinfo.attr("checked") ? 'Month' : 'None' }, success: function (response) { var _response = $(response) switch (_response.find('status').text()) { case "ok": location.reload(); break; case "err": alert(_response.find('body').text()); $.pe.refreshValidateCode($('.validateSign')); break; } } }) }) $('#loginStatusSign').hide(); $('#loginField').keypress(function (e) { if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) { $('#login').click(); return false; } return true; }) } } }) } checkUserLogin(); })

旅游登山注意事项

1、行前预先规划旅游路线,充分了解交通路况,进入山区应注意塌方落石与路肩塌陷。

  2、自行开车进山旅游,须事先做好车辆保养,并留意旅途沿线的加油站、修理厂、医院等位置。

  3、登山前应了解自己的健康状况,随时携带药物;有高山反应及身体不适者,勿免强上山。

  4、登山前特别要注意服装和鞋子,尽量要轻装上山,少带杂物,以减轻负荷;鞋子要选用球鞋、布鞋和旅游鞋等平底鞋,勿穿高跟鞋,以免造成登山不便和有碍安全;借助拐杖要注意选择长短、轻重合适与结实。

  5、行前应注意气象预报,适时增减衣服。遇雨时在山上不可用雨伞而要用雨披,这是为避雷电,并防止山上风大连人带伞给兜跑;雪天在山上走路更要注意防滑。

  6、要做到观景不走路,走路不观景;照相时要特别注意安全,要选择能保障安全的地点和角度,尤其更要注意岩石有无风化。

  7、注意自身旅游安全,勿擅自到未开放的旅游山区和危险山区游玩;尽量避免在无人管理的山地游玩;不在无救生人员管理的深潭、溪流水域游泳及戏水;注意并依照警告、禁止标志的规定进行旅游。

  8、上山要注意林区防火,观光沿途不能吸烟。

  9、爱护自然环境,不破坏景观资源;维护风景区环境整洁,不任意丢弃垃圾。

  10、注意保管好自己钱物,防止丢失及被窃,尤其是照相机等常用之物更要注意别丢落,特别是在换胶卷时勿将胶卷落下。(来源:中安旅游)


感动 同情 无聊 吃惊 搞笑 难过 高兴 路过
$(document).ready(function () { $('input[name="moodradio"]').click(function () { var value = this.value; $.pe.ajax('moodvote', { params: { position: value, generalId: 719, moodId: 1 }, success: function (response) { var status = $(response).find('status').text(); switch (status) { case "ok": $.pe.ajax('accessLabel', { labelName: '显示心情指数', params: { itemId: 719 }, success: function (s) { $('#moodVote').html($(s).find('body').text()); } }) break; case "isOnlyMember": alert("只有会员才能发表投票!"); break; default: alert("投票失败!"); break; } } }) }) })
【字体: 】【收藏】【打印文章】【查看评论 $(document).ready(function() { $.pe.ajax('admineditcheck',{params:{itemId:719},success:function(s) { if ($(s).find('status').text() == 'OK') { var managedir = "/Common/GetContentEdit.aspx?itemId=719"; $("#content_AdminEdit").html("【进入后台编辑】") } }}); }); function GetContentSigninStatus(id) { $.pe.ajax({ params: { itemId: id }, accessType: 'GetContentSigninStatus', success: function(s) { var data = $(s); var status = data.find('status').text(); $('#content_SigninAjaxStatus').css({ display: 'none' }); switch (status) { case "NoSignin": break; case "NoLogin": break; case "AutoSignin": var time = data.find("time").text(); AutoSigninContent(id, time); break; case "NormalSignin": $("#content_signin").html("【点击签收】"); break; case "SigninOutTime": $("#content_signin").html("【已过签收截止时间】"); break; case "Signined": $("#content_signin").html("【已签收】"); break; } } }) } function AutoSigninContent(id, time) { var secs = time; var wait = secs * 1000; $("#content_signin").html("【自动签收[" + secs + "]秒】"); for (i = 1; i <= secs; i++) { window.setTimeout("UpdateAutoSigninTime(" + i + "," + secs + ")", i * 1000); } window.setTimeout("SigninContent('" + id + "')", wait); } function UpdateAutoSigninTime(number, wait) { printnr = wait - number; $("#content_signin").html("【自动签收[" + printnr + "]秒】"); } function SigninContent(id) { $.pe.ajax({ params: { itemId: id }, accessType: 'SigninContent', success: function(s) { var status = $(s).find('status').text(); switch (status) { case "Signined": $("#content_signin").html("【已签收】"); break; case "NotSignined": $("#content_signin").html("【签收失败】"); break; case "SigninOutTime": $("#content_signin").html("【已过签收截止时间】"); break; } } }); } GetContentSigninStatus('719');

相关图文

相关文章

    没有相关内容
//初始化评论 function commentInit() { $.pe.ajax('accessLabel',{labelName:'内容评论标签',currentPage:1,params:{itemId:719,nodeId:146},success:function(response){ $('#commentform').html($(response).find('body').text()); changepage(1, '评论列表', 'JS_基本风格'); setCurrentUserInfo(); }}) } //添加评论 function addComment() { if ($('#commentTitle').val == '') { alert("请输入标题!"); $('#commentTitle').focus(); return; } if ($('#commentIsAnonymous').val() == 'false') { if ($('#commentUsername').val() == '') { alert("请输入用户名!"); $('#commentUsername').focus(); return; } if ($('#commentEmail').val() == '') { alert('请输入Email地址!'); $('#commentEmail').focus(); return; } var regEmail = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if ($('#commentEmail').val().match(regEmail) == null) { alert('请输入正确的Email格式!'); $('#commentEmail').focus(); return; } } if ($('#commentContnet').val == '') { alert("请输入评论内容!"); $('#commentContnet').focus(); return false; } var commentValidCode = ""; var checkValidCode = false; if (document.getElementById('commentValidCode') != null) { if ($('#commentValidCode').val() == '') { alert("请输入验证码!"); $('#commentValidCode').focus(); return; } commentValidCode = $('#commentValidCode').val(); checkValidCode = true; } $.pe.ajax('addcomment',{params:{ username:$("#commentUsername").val(), commenttitle:$("#commentTitle").val(), content:$("#commentContnet").val(), email:$("#commentEmail").val(), gid:719, nid:146, private:$("#commentIsPrivate").val(), position:$("#commentViewpoint").val(), score:$("#commentRanking").val(), TxtValidCode:commentValidCode, isguest:$('#commentIsAnonymous').val() }, success:function(response){ var data = $(response); var status = data.find('status').text(); switch (status) { case "ok": changepage(1, '评论列表', 'JS_基本风格'); alert("发表评论成功!"); window.location.href = '#commentTarget'; $("#commentContnet").val(''); break; case "check": alert("发表评论成功,请等待管理员审核。"); break; case "err": alert("发表评论失败!"); break; case "nopurview": alert("此栏目已禁止发表评论!"); break; case "noTourists": alert("此栏目已禁止游客发表评论!"); break; case "checkCodeError": $("#commentValidCode").val(''); refreshValidCode($("#commentValidCodeImg")[0]); alert("您输入的验证码和系统产生的不一致,请重新输入!"); break; default: alert("发表评论失败!"); break; } if (checkValidCode) { refreshValidCode($("#commentValidCodeImg")[0]); $("#commentValidCode").val(''); checkValidCode = false; } }}) } function addPkZone(commentid, position, content) { $.pe.ajax('addpkzone',{params:{ commentid:commentid, position:position, content:content }, success:function(response){ switch ($(response).find('status').text()) { case "ok": changepage(1, '评论列表', 'JS_基本风格'); break; default: alert("辩论失败!"); break; } }} ) } //更新列表 function changepage(pagenum, sourcename, spanname) { $.pe.ajax('accessLabel',{labelName:sourcename,currentPage:pagenum,params:{ itemId:719, page:'true', pagesize:10, currentpage:pagenum }, success:function(response){ $('#pe100_'+sourcename).html($(response).find('body').text()); $('#commentCount').html($(response).find("total").text()); updatepage(spanname, sourcename, response); }} ) } //更新分页 function updatepage(spanname, sourcename, xml) { $.pe.ajax('accessPage',{labelName:spanname,pageName:sourcename,recordCount:$(xml).find('total').text(),currentPage:$(xml).find('currentpage').text(),pageSize:$(xml).find('pagesize').text(),success:function(s){ if ($('#pe100_page_' + sourcename) != null) { $('#pe100_page_' + sourcename).html($(s).find('body').text()); } }}) } //设置默用户信息 function setCurrentUserInfo() { try { $.pe.ajax('checkUserLogin',{success:function(response){ if($(response).find('status').text() == 'ok'){ if ($('#commentUsername') != null) { $('#commentUsername').val($(response).find("username").text()); $('#commentEmail').val($(response).find("email").text()); $('#commentUsername').disabled = true; $('#commentEmail').disabled = true; } } }}) } catch (e) { } } //刷新验证码 function refreshValidCode(obj) { obj.src = obj.src + '?code=' + randomNumber(10); } function randomNumber(n) { var rnd = ''; for (var i = 0; i < n; i++) rnd += Math.floor(Math.random() * 10); return rnd; } //设置匿名 function setAnonymous(obj) { if (obj.checked) { $('#commentUsernameBlock').hide(); $('#commentEmailBlock').hide(); $('#commentIsAnonymous').val('true'); } else { $('#commentUsernameBlock').show(); $('#commentEmailBlock').show(); $('#commentIsAnonymous').val('false'); } } //设置私有 function setPrivate(obj) { if (obj.checked) { $('#commentIsPrivate').val(1); } else { $('#commentIsPrivate').val(0); } } //设置观点 function setViewpoint(value) { for (i = -1; i < 2; i++) { if (i == value) { $('#commentViewpointTab' + i)[0].className = "current"; } else { $('#commentViewpointTab' + i)[0].className = ""; } } $('#commentViewpoint').val(value); } //设置按钮 function changeBtnStyle(obj, className) { obj.className = className; } //设置评分 function changeRanking(index, isfixed) { var colStars = $("#commentRankingBlock input"); var k = isfixed ? parseInt($("#commentRanking").val()) : index; for (var i = 0; i < colStars.length; i++) { colStars[i].src = (i < k ? "/Images/fstar.gif" : "/Images/estar.gif"); } } function rankingClick(index) { $("#commentRanking").val(index); } function rankingMouseOver(index) { changeRanking(index, false); } function rankingMouseOut() { changeRanking(0, true); } //初始化评论 commentInit(); $('#articleContnet img').imageResize(); //双击鼠标滚动屏幕的代码 var currentpos, timer; function initialize() { timer = setInterval("scrollwindow ()", 30); } function sc() { clearInterval(timer); } function scrollwindow() { currentpos = document.body.scrollTop; window.scroll(0, ++currentpos); if (currentpos != document.body.scrollTop) sc(); } document.onmousedown = sc document.ondblclick = initialize //更改字体大小 var status0 = ''; var curfontsize = 10; var curlineheight = 18; function fontZoomA() { if (curfontsize > 8) { document.getElementById('fontzoom').style.fontSize = (--curfontsize) + 'pt'; document.getElementById('fontzoom').style.lineHeight = (--curlineheight) + 'pt'; } } function fontZoomB() { if (curfontsize < 64) { document.getElementById('fontzoom').style.fontSize = (++curfontsize) + 'pt'; document.getElementById('fontzoom').style.lineHeight = (++curlineheight) + 'pt'; } } document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n 原文链接地址:"+location.href; clipboardData.setData("text", text); } }, 100 ) }