码迷,mamicode.com
首页 >  
搜索关键字:document    ( 20024个结果
jQuery实现点击单选按钮切换选中状态效果
实现效果:第一次点击单选按钮时选中该按钮,再次点击时取消选中该单选按钮。关键就是要将单选按钮原来的值保存起来,第二次点击时。如果原来选中则取消,否则选中。看代码吧,是用jQuery实现的,功能虽小。知识点不少啊。。。。。Js代码$(document).ready(function(){varold=...
分类:Web程序   时间:2014-07-03 06:41:52    阅读次数:213
提取easyui 的loading框
$.extend({loading:function(){$("").css({display:"block",width:"100%",height:$(document.body).height()}).appendTo("body");$("").html("正在提交数据,请稍候。。。").a...
分类:其他好文   时间:2014-07-03 00:32:48    阅读次数:522
判断浏览器是否为IE
if (!+[ 1, ]) { //是IE浏览器} else { if (document.documentMode == 10) { //单独判断IE10 } else //非IE浏览器 }}
分类:其他好文   时间:2014-07-02 22:08:16    阅读次数:117
HTML中Select的使用具体解释
附:一些Select的技巧1.动态创建selectfunction createSelect(){var mySelect = document.createElement("select");mySelect.id = "mySelect";document.body.appendChild(my...
分类:Web程序   时间:2014-07-02 22:04:57    阅读次数:235
日常遇到的问题
日常遇到的错误针对ie6 所以要用代码包起来在ie7下 会报错 例如和$(document).ready(function(e) { var ulwidth = $("div.gundong ul li").length * 180; $("div.gundong ul").width(ulwi.....
分类:其他好文   时间:2014-07-02 21:38:50    阅读次数:187
history
function next(){//前进window.history.forward();}function previous(){//后退window.history.back();}function jump(){//指定前进或后退页面数var num = document.getElement...
分类:其他好文   时间:2014-07-02 10:18:47    阅读次数:215
open打开窗口并且获得打开窗口的窗口对象
//主窗体//F:/2.html页面function show(){//获得主窗体对象中的id为txt的控件value,并且为其赋值window.opener.document.getElementById("txt").value= document.getElementById("text")....
分类:其他好文   时间:2014-07-02 10:00:06    阅读次数:160
解决jqueryeasyUI dialog 弹出窗口超出浏览器,导致不能关闭的bug
使用panel的onMove事件解决了panel,dialog以及window组件在被拖动时,会超出浏览器边界而无法拖回的情况。 当窗口被拖出浏览器有边界时,$(document).width();会增大,增大的部分就是窗口超过浏览器窗口的部分,所以right > browserWidth条件永远无法满足。...
分类:Web程序   时间:2014-07-02 08:15:42    阅读次数:204
jquery 操作iframe、frameset
============================================iframe<iframename="a"src="a.aspx"width="300px"height="200px"></iframe> <iframename="b"src="b.aspx"width="300px"height="200px"></iframe>------------1,主框架操作a$(window.frames["a"].document..
分类:Web程序   时间:2014-07-01 09:35:11    阅读次数:249
Lucene整理--索引的建立
创建索引的过程如下: (1)、建立索引器IndexWriter,这相当于一本书的框架 (2)、建立文档对象Document,这相当于一篇文章 (3)、建立信息字段对象Field,这相当于一篇文章中的不同信息(标题、正文等)。 (4)、将Field添加到Document里面。 (5)、将Document添加到IndexWriter里面。 (6)、关闭索引器IndexWriter。...
分类:其他好文   时间:2014-07-01 06:30:34    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!