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('所有发帖(已有24位网友发帖)
'); document.write('杭州网网友 2013-03-04 20:01:35
'); document.write('Alan 2012-04-14 09:52:33
'); document.write('杭州网网友 2012-02-22 15:44:26
'); document.write('龙 2012-01-19 14:21:33
'); document.write('路过 2012-01-18 15:25:24
'); document.write('玉树 2012-01-18 08:52:21
'); document.write('pan 2012-01-17 09:56:43
'); document.write('路过 2012-01-17 09:18:36
'); document.write('杭州网网友 2012-01-16 19:03:37
'); document.write('tian 2012-01-16 16:29:44
'); document.write('ning 2012-01-16 16:27:42
'); document.write('jamehan 2012-01-16 15:04:57
'); document.write('本来公园利用率就低,现在附近根本没有办法停车,都是乱停的。下班回家根本没有车位,是不是可以考虑
老百姓 2012-01-16 15:02:12
'); document.write('风信子 2012-01-16 10:55:35
'); document.write('小米 2012-01-16 10:41:53
'); document.write('但是对于医院之类的公共服务场所还是支持大力建设停车设施的。
10086 2012-01-15 16:42:48
'); document.write('杭州网网友 2012-01-15 16:28:01
'); document.write('小洋洋 2012-01-15 14:51:27
'); document.write('杭州网网友 2012-01-13 23:11:50
'); document.write('百姓 2012-01-13 22:08:38
'); document.write(''); document.write('所有发帖(已有24位网友发帖)'); document.write('
'); document.write(''); document.write('
'); document.write(''); document.write('