2012年5月15日

中英文双语导航菜单且带有二级菜单

摘要: <script>startList = function() {if (document.all&&document.getElementById) {navRoot = document.getElementById("nav");for (i=0; i<navRoot.childNodes.length; i++) {node = navRoot.childNodes[i];if (node.nodeName=="LI") {node.onmouseover=function() {this.className+=& 阅读全文

posted @ 2012-05-15 14:09 J--Si 阅读(234) 评论(0) 推荐(0) 编辑

2012年5月14日

为啥这样写无法过滤掉字段里面的html字符呢?

摘要: AAA.aspx.cs public string strvalue(string value, int length) { if (value.Length > length) { value = value.Substring(0, length); value = value + "..."; return NoHTML(value); } else { return NoHTML(value); } } public static string NoHTML(string Htmlstring) { //删除脚本 Htmlstring = Regex.... 阅读全文

posted @ 2012-05-14 14:45 J--Si 阅读(138) 评论(0) 推荐(0) 编辑

导航