1,事件对象 e || window.event //ie 2, 取鼠标点击坐标 带有滚动条的 var top = document.documentElement.scrollTop || document.body.scrollTop;//chorme var x = top + e.clien...
分类:
Web程序 时间:
2014-07-16 17:05:32
阅读次数:
279
// JavaScript Documentalert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗...
分类:
Web程序 时间:
2014-07-16 15:45:12
阅读次数:
189
C++11添加了一项名为lambda表达式的新功能.通过这项功能能编写内嵌的匿名函数,而不必编写独立函数或函数对象,使得代码更加理解.
lambda表达式包含以下部分.
[capture_block](parameters) mutable exception_specification->return_type {body}
现在分析各个部分的内容:
(capture_block)捕捉块...
分类:
编程语言 时间:
2014-07-16 11:30:48
阅读次数:
210
html {min-height: 100%;}body {background: #F2F2F2;color: #323232;text-align: center;font-family: "微软雅黑", Arial, Helvetica, sans-serif;font-size: 14px;...
分类:
其他好文 时间:
2014-07-15 23:36:17
阅读次数:
265
ASP写法:写法1:<%="HelloWorld!"%>写法2:<%Response.Write("HelloWorld!")%>ASP声明变量:使用dim如下:<html><body><%dimnamename="xiaohong"Response.write("yournameis:"+name&"<br/>")%></body></html>ASP声明数组..
分类:
Web程序 时间:
2014-07-15 11:31:32
阅读次数:
406
iframe标签上加了一个 allowtransparency="true"iframe页面需要书写一行body的css 就OK了
分类:
其他好文 时间:
2014-07-15 00:43:44
阅读次数:
308
pairs
Returns three values: the next function, the table t, and nil, so that the
construction
for k,v in pairs(t) do body end
will iterate over all key–value pairs of table t.
See functi...
分类:
其他好文 时间:
2014-07-14 18:39:58
阅读次数:
317
附:一些Select的技巧1.动态创建selectfunction createSelect(){var mySelect = document.createElement("select");mySelect.id = "mySelect";document.body.appendChild(my...
分类:
Web程序 时间:
2014-07-14 17:58:23
阅读次数:
307
IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentEleme...
分类:
Web程序 时间:
2014-07-14 16:04:02
阅读次数:
267
加入滚动栏的遮罩,滚动栏图片须要自己调整路径function loading() { var divloading = ""; //$("loadingdiv").css({ "z-index": "-10", "opacity": "0.5" }); $("body").prepend(di...
分类:
其他好文 时间:
2014-07-13 19:32:43
阅读次数:
230