function name_area(ccc){ if(ccc.checked){ document.getElementById("name_area").style.display='none'; writeCookie('nameshow',1,720) }else{ document.getElementById("name_area").style.display=''; writeCookie('nameshow',0,720) } } function readCookie(name){ var cookieValue = ""; var search = name + "="; if(document.cookie.length > 0){ offset = document.cookie.indexOf(search); if (offset != -1){ offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)) } } return cookieValue; } function writeCookie(name, value, hours){ var expire = ""; var domain = "; path=/; domain=.hangzhou.com.cn"; if(hours != null){ expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire + domain; } function comcheck(frm){ if(frm.content.value==''){ alert("请输入评论类容!"); frm.content.focus(); return false; } if(frm.niming.checked===false && frm.name.value==''){ alert("请输入昵称,或者勾选匿名发表!"); frm.name.focus(); return false; }else{ writeCookie('namecom',frm.name.value,720); } return true; } function byteLength (sStr) { aMatch = sStr.match(/[^\x00-\x80]/g); return (sStr.length + (! aMatch ? 0 : aMatch.length)); } function getStrbylen(str, len) { var num = 0; var strlen = 0; var newstr = ""; var laststrlen = 1; var obj_value_arr = str.split(""); for(var i = 0; i < obj_value_arr.length; i ++) { if(i < len && num + byteLength(obj_value_arr[i]) <= len) { num += byteLength(obj_value_arr[i]); strlen = i + 1; } } if(str.length > strlen) { if(byteLength(str.charAt(strlen-1)) == 1){ laststrlen = 2; } newstr = str.substr(0, strlen-laststrlen) + '…'; } else { newstr = str; } return newstr; } function textCounter(obj, maxlimit) { var len = strLen(obj.value); if(len > maxlimit) { obj.value = getStrbylen(obj.value, maxlimit); alert("最多"+maxlimit+"个字节"); } } function strLen(str) { var charset = document.charset; var len = 0; for(var i = 0; i < str.length; i++) { len += str.charCodeAt(i) < 0 || str.charCodeAt(i) > 255 ? (charset == "utf-8" ? 3 : 2) : 1; } return len; } document.write(''); document.write(''); document.write('
'); document.write('
'); document.write('
'); document.write(''); document.write('

网友提问选登

'); document.write('

所有发帖(已有5位网友发帖)

'); document.write('
'); document.write('
'); document.write('
'); document.write('

杭州小子 2010-08-13 10:45:32

'); document.write('
西溪路上古荡老和山脚兔儿井,以后还有一个螃蟹井,都是很好的矿泉水井水,关于这两口井还有传说故事,尤其是兔儿井一直是古荡镇村的村民的饮用水。现在都有自来水了,但是现在好多人去那里洗衣服应该管管。因为兔儿井是和虎跑泉一样的泉脉,水质几乎是一样的。这样的优质饮用水源应该保护起来。希望有关部门应该管管。
'); document.write('
'); document.write('
'); document.write('

杭州新人 2010-07-20 13:36:10

'); document.write('
我晓得时候住在甘水巷,一直用那里的井水,夏天很凉,不知道现在怎么样了,大力支持政府保护古井
'); document.write('
'); document.write('
'); document.write('

葡萄 2010-07-20 13:32:26

'); document.write('
曲院风荷里的中美友谊井,水很好,很凉,常年不断的,我去晨练的时候老用来洗脸
'); document.write('
'); document.write('
'); document.write('

郭氏 2010-07-20 13:30:40

'); document.write('
郭婆井旁边有个垃圾桶,看上去很不协调,有关部门能不能做个有特色店的垃圾桶,符合周边环境。。或者撤掉算了
'); document.write('
'); document.write('
'); document.write('

住在凤凰山下 2010-07-20 13:28:43

'); document.write('
凤凰山脚路上的三口古井,洗衣服的人很多,肥皂水到处都是,希望周围的居民文明用水,保护好古井
'); document.write('
'); document.write('
'); document.write('
'); document.write('
'); document.write('
选登 5 条 显示 1 - 51
'); document.write('
'); document.write('

'); document.write('所有发帖(已有5位网友发帖)'); document.write('

'); document.write('
'); document.write('
'); document.write(''); document.write('
'); document.write('
'); document.write('
'); var nameshow = readCookie('nameshow'); if(nameshow==1){ document.getElementById("name_area").style.display='none'; document.comfrm.niming.checked=true; }else{ if(document.getElementById("name_area")){ document.getElementById("name_area").style.display=''; } } var namecom = readCookie('namecom'); if(namecom){ document.comfrm.name.value=namecom; //document.comfrm.name.readOnly=true; //document.getElementById("niming_area").style.display='none'; } function getpage(page){ var news_id=963; // $("#comment_list").load("https://web.hangzhou.com.cn/comment/ajax/index.php?action=getpage&news_id="+news_id+"&page="+page+"&i="+Math.random(),function(){$(this).fadeIn();}); // parent.document.getElementById("hzcomment").src="https://web.hangzhou.com.cn/comment/index.php?news_id=963&page="+page; //alert(parent.document.getElementById("hzcomment").src) $.getJSON("https://web.hangzhou.com.cn/comment/ajax/index.php?action=getpage&news_id="+news_id+"&page="+page+"&jsoncallback=?",{bian:"是"}, function(json){ //alert(json.pagelist) $("#comment_list").html(json.infolist); $("#page_area").html(json.pagelist); }) }