码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
css study
html{filter:expression(document.execCommand("BackgroundImageCache",false,true))_background-image:url(about:blank);_background-attachment:fixed}body,di...
分类:Web程序   时间:2014-05-14 02:10:02    阅读次数:281
[转]js清除所有cookies
来源:http://blog.csdn.net/zzl1120/article/details/6592332var cookies = document.cookie.split(";"); for (var i = 0; i -1 ? cookie.substr(0, eqPos) : ...
分类:Web程序   时间:2014-05-13 21:20:33    阅读次数:320
javascript中this的详细使用
document.write("**************一.指代当前对象**********************"); function print(str){ document.write(str+""); }; /* javascript里面的this可谓是所有语言里最让人费解的了,学习国java或者php的人 在学习javascript的时候会觉得非常莫名其妙,因为...
分类:编程语言   时间:2014-05-13 05:15:47    阅读次数:387
解决鼠标左键单击冲突的问题(防止冒泡)
本人在一个页面实现了两种右键菜单,当鼠标左键单击空白处时,右键菜单并不隐藏。于是,Google之,最后找到一种方法,将鼠标左键单击事件改为:$(document).click( function () { }改为$(document).on('click touchstart', function () { }问题解决。...
分类:其他好文   时间:2014-05-12 23:13:10    阅读次数:328
菜鸟调错(四)——Spring与DWR集成,配置文件报错
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd', because 1) could not find the document;  2)...
分类:编程语言   时间:2014-05-12 22:55:47    阅读次数:409
如何将脚本放在页面里?
用JS脚本书写文字的方法,下面是一个简单的例子: ==============================================  脚本代码:   document.write("这是红色的字")    ==============================================  效果: 这是红色的字  =======================...
分类:其他好文   时间:2014-05-12 22:47:31    阅读次数:414
jQuery键盘事件 ctrl+Enter回车键提交表单
分享下jquery键盘事件的一些例子,个人感觉还不错,有空时多多研究。键盘事件处理所有用户在键盘敲击的情况,不管在文本输入区域内部还是外部。键盘事件在不同的浏览器中作用的范围是不一样的,通常这种键盘事件可以作用于 Form元素,a标签元素,window ,document这样的元素上。在所有可以获得...
分类:Web程序   时间:2014-05-12 20:10:48    阅读次数:516
IE下iframe中使用滤镜document.selection.createRange().text获取不到值得解决办法
通常的写法是select方法后跟一个blur方法,但是这里我们不能使用blur方法,应该将blur改为window.parent.document.body.focus();
分类:其他好文   时间:2014-05-12 19:23:37    阅读次数:995
JQuery日记 5.11 Sizzle选择器(五)
setDocument = Sizzle.setDocument = function( node ) { var hasCompare, //node为Element时返回node所属document //node为Document时返回node //node为空时返回window.document doc = node ? node.ownerDocument || node...
分类:Web程序   时间:2014-05-11 22:41:15    阅读次数:459
jquery ajax 在submit按钮的click处理中应注意的地方
html文件: ................ js文件: $(document).ready(function() {     $("#personsub").live('click',function()     {         if($("#oldpassword").val()=="")         {             a...
分类:Web程序   时间:2014-05-11 22:12:29    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!