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(); })

搞笑!十件趣味户外装备

由于国内旅行其基本设施及服务与国际旅行相差许多,为使艰苦的长途旅游生活保持一定的“奢侈”与“享受”,以下11件另类装备可作参考:


  1、头巾:徒步于丛林中,蜘蛛网是常有的,让它缠在头发上,一日难受,头巾不挡视线,拍照不碰取景框,还可省却擦汗。一块小布,还可作毛巾,或领巾,必要时御寒。

  2、手杖:伸缩式,必要时,赶野狗,做独脚架,开路打草。

  3、飞碟:可当作长途车上的水果托盘,切菜/书写的垫板,碗碟,小脸盆/盛水器,水陆二用娱乐用品,多功能又放入包内不占体积。可惜似乎不易买到了。

  4、弹弓:城市里使不上,野外练练,徒步时增加乐趣,打打野果之类,属环保武器。

  5、私人名片:没有吓人的头衔,炫耀的公司,电话,地址,E-mail。免却反复书写,君子之交,淡如水。

  6、大塑料餐布:晴天铺在草坪上,懒散,雨天连人带包盖住,雨披可不带,防水衣防不住的雨天,要么睡觉,要么游泳,要么,长途车赶路。

  7、大方布,一来可作浴巾,峡谷瀑布游完泳,众目睽睽下,换裤子就如此了,二来帮MM披肩上防晒,旅馆床单脏,就拿它当床单了。泰国的筒裙最合适了,还可做裙子。出门在外,偶而穿上,逛夜市,怕什么,想拍就拍吧,我是傣家的。

  8、洗漱包,用处不说了,井井有条而已。

  9、密封袋,每次出门,带10个,湿的衣裤,买的零嘴,皆可装入。塑料袋的不密封常会误事。

  10、扑克牌,打打牌,算算命是一,关键时刻,可作路标,54张,100米一张,可写5400米。牌上还可给后来人留言,当然,如何放得醒目。也是一学问。

  以上物品,无论重量及体积都适宜背包族,不妨一试。


感动 同情 无聊 吃惊 搞笑 难过 高兴 路过
$(document).ready(function () { $('input[name="moodradio"]').click(function () { var value = this.value; $.pe.ajax('moodvote', { params: { position: value, generalId: 728, moodId: 1 }, success: function (response) { var status = $(response).find('status').text(); switch (status) { case "ok": $.pe.ajax('accessLabel', { labelName: '显示心情指数', params: { itemId: 728 }, 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:728},success:function(s) { if ($(s).find('status').text() == 'OK') { var managedir = "/Common/GetContentEdit.aspx?itemId=728"; $("#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('728');

相关图文

相关文章

    没有相关内容
//初始化评论 function commentInit() { $.pe.ajax('accessLabel',{labelName:'内容评论标签',currentPage:1,params:{itemId:728,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:728, 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:728, 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 ) }