爱上海

My Diary

My Diary

Saturday, July 05, 2014 Cloudy

It was exciting day! In the morning, my parents decided to go shopping. At about 9’o clock, they went out. But I didn’t go with them because I had to study for a test. For lunch, I cooked something delicious. In the afternoon, I rode bicycles to a book shop. 

I enjoyed reading there. Everything was expensive and I didn’t have enough money. So I didn’t buy any books. After that, I was hungry and I went home. My parents also arrived at home and they bought quite a few food. Everyone was so delicious that I eat many. All in all, I felt like warm and everything was wonderful! 

爱上海

"; var footstr=" "; // 获取打印内容 var newstr=document.all.item(printpage).innerHTML; var oldstr=document.body.innerHTML; // 打印预览和选择打印区域 document.body.innerHTML=headstr+newstr+footstr; window.print(); // 恢复原来的页面内容 document.body.innerHTML=oldstr; } //顶 function checkTop(flag,url){ jQuery.ajax({ url:url, success:function(data){ if(data == 1){//可以顶 if(flag == 1){//顶 if(jQuery("#showlab").length>0){ var preNum = parseInt(jQuery("#showlab").html()); jQuery("#showlab").html(preNum+1); } } else if(flag == 2){ if(jQuery("#steponlab").length>0){ var preNum = parseInt(jQuery("#steponlab").html()); jQuery("#steponlab").html(preNum+1); } } } else if(data == 0){//顶过了 alert('你已经投过票了,请不要重复投票'); } } }); } function setTop(productId, auditLevel) { /** * 1 取出cookie_id的值 * 2 判断key = productId的这个cookie是否存在 * 3 比较两个值是否相等 */ if (auditLevel != 1 && auditLevel != 20) { return; } var productIdValue = getCookie2008_1(productId); var cookieIdValue = getCookie2008_1("cookie_id"); if (cookieIdValue == null) { alert("\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301cookie\u529f\u80fd,\u8bf7\u786e\u8ba4!"); return; } var url = "/jsp_cn/jquery/end/update_message.jsp?pid=" + productId + "&flag=top_new&date=" + new Date().getTime(); if (productIdValue == null || productIdValue == "") { //没有顶过 setCookie2008_1(productId, cookieIdValue, 60 * 24 * 365); checkTop(1,url); //jQuery("#a5").load(url); } else { if (productIdValue != cookieIdValue) { //该用户没有顶过 setCookie2008_1(productId, cookieIdValue, 60 * 24 * 365); checkTop(1,url); } else { alert("\u4f60\u5df2\u7ecf\u6295\u8fc7\u7968\u4e86\uff0c\u8bf7\u4e0d\u8981\u91cd\u590d\u6295\u7968"); } } shareEvent(productId, 14); } //踩 function setStepon(productId, auditLevel) { if (auditLevel != 1 && auditLevel != 20) { return; } var productIdValue = getCookie2008_1(productId); var cookieIdValue = getCookie2008_1("cookie_id"); if (cookieIdValue == null) { alert("\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301cookie\u529f\u80fd,\u8bf7\u786e\u8ba4!"); return; } var url = "/jsp_cn/jquery/end/update_message.jsp?pid=" + productId + "&flag=stepon_new&date=" + new Date().getTime(); if (productIdValue == null) { //没有顶过 setCookie2008_1(productId, cookieIdValue, 60 * 24 * 365); checkTop(2,url); //jQuery("#a5").load(url); } else { if (productIdValue != cookieIdValue) { //该用户没有顶过 setCookie2008_1(productId, cookieIdValue, 60 * 24 * 365); checkTop(2,url); //jQuery("#a5").load(url); } else { alert("\u4f60\u5df2\u7ecf\u6295\u8fc7\u7968\u4e86\uff0c\u8bf7\u4e0d\u8981\u91cd\u590d\u6295\u7968"); } } } function shareEvent(id,type){ var url = "/app/my/docin/share?id=" + id + "&type=" + type; jQuery("#a5").load(url); } //广告代码 docin_adload('62','view_adv_1'); docin_adload('63','view_adv_2'); //docin_adload('64','view_adv_3'); //docin_adload('65','view_adv_4'); docin_adload('66','view_adv_5'); docin_adload('146','view_adv_6'); docin_adload('68','view_adv_7'); //docin_adload('69','view_adv_8'); //docin_adload('70','adv_title_left');