博客园站长
这是人类成长进步中记录的每一时刻
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 72 下一页
摘要: $("#aa").click(function () {var date = new Date();this.year = date.getFullYear();this.month = date.getMonth() + 1;this.date = date.getDate();this.day = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[date.getD 阅读全文
posted @ 2012-06-27 15:11 dm3344 阅读(42919) 评论(2) 推荐(3)
摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript">//获得本季度的开始月份 function getQuarterStartMonth() {var quarterStartMonth = "";var now = new Date();var nowMonth = now.getMonth();var nowYear = now.getFullYear(); //当前年if (nowMon 阅读全文
posted @ 2012-06-21 14:29 dm3344 阅读(726) 评论(0) 推荐(0)
摘要: Web.config:在 configuration 里面建<AppSettings><add key="变量名" value="值"/></AppSettings>后台获取:public static string a = ConfigurationManager.AppSettings["变量名"].ToString();或public static string a = ConfigurationManager.AppSettings[索引].ToString(); 阅读全文
posted @ 2012-06-19 10:39 dm3344 阅读(403) 评论(0) 推荐(0)
摘要: <html><head><style type="text/css">body{background:#000;color:#FFF}form{background:#F00}</style></head><body><script type="text/javascript" src="jquery.js"></script><form><input type="button" value=" 阅读全文
posted @ 2012-06-07 18:43 dm3344 阅读(181) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"><title></title><scrip 阅读全文
posted @ 2012-06-07 14:21 dm3344 阅读(533) 评论(0) 推荐(0)
摘要: -----------------------------1、jQuery屏蔽鼠标右键:$(document).ready(function(){$(document).bind("contextmenu",function(e)returnfalse;});});2、JS屏蔽鼠标右键:<script language="JavaScript">document.oncontextmenu=newFunction("event.returnValue=false;");document.onselectstart=newF 阅读全文
posted @ 2012-06-07 10:39 dm3344 阅读(8656) 评论(0) 推荐(0)
摘要: 下面介绍全页面刷新方法:有时候可能会用到window.location.reload()刷新当前页面.parent.location.reload()刷新父亲对象(用于框架)opener.location.reload()刷新父窗口对象(用于单开窗口)top.location.reload()刷新最顶端对象(用于多开窗口)如果是模式窗口,关闭并刷新父窗口:function saveClose(){ //刷新父窗口window.dialogArguments.location.href=window.dialogArguments.location.href; //关闭自身 __close(); 阅读全文
posted @ 2012-05-31 09:34 dm3344 阅读(296) 评论(0) 推荐(0)
摘要: var xml:XML = XML(你的xml数据)xml.students.student.stuName[0] //返回 张三xml.children().children().stuName[0] //返回 张三 阅读全文
posted @ 2012-05-30 09:58 dm3344 阅读(236) 评论(0) 推荐(0)
摘要: var windowOption = "width=1000,height=" + "500" + "+top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no"; window.open('http://www.baidu.com', 'newwindow', windowOption) 阅读全文
posted @ 2012-05-28 14:22 dm3344 阅读(316) 评论(0) 推荐(0)
摘要: js里面这样写:function getCookie() { var search = "RH.RHR" + "=" 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 = docum... 阅读全文
posted @ 2012-05-25 11:08 dm3344 阅读(285) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 72 下一页