随笔分类 - Jquery
摘要:(原文来自博客园 wuchao.cnblogs.com)写一个简单的基于jquery的对话框css: 1 #dialog 2 { 3 border:solid 1px #CCC; 4 width:300px; 5 height:150px; 6 background-color:#e5e5e5; 7 position:fixed; 8 } 9 .title10 {11 width:100%...
阅读全文
摘要:热腾腾的代码: 1 参考: http://blog.csdn.net/netpet/article/details/5220265
阅读全文
摘要:js中可以document.getElementById("id").options.length = 1;设置jquery中的设置方法:$("#id option[index!='0']").remove();还有写关于这些的知识:http://hi.baidu.com/zhangyong0604/item/c715c4cb4d01f31150505831
阅读全文
摘要:JQuery获取浏览器窗口宽高,文档宽高2010-01-20 08:59js网页可见区域宽: document.body.clientWidth网页可见区域高: document.body.clientHeight网页可见区域宽: document.body.offsetWidth (包括边线的宽)网页可见区域高: document.body.offsetHeight (包括边线的高)网页正文全文宽: document.body.scrollWidth网页正文全文高: document.body.scrollHeight网页被卷去的高: document.body.scrollTop网页被卷去
阅读全文
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title> <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="public/jqPlot/excanvas.js"></script><![endif]--&g
阅读全文
摘要:常常用到iframe内嵌另一个页面,而这个页面里显示图片,当点击这个内嵌页面中的图片,让他在父级页面显示colorbox的效果1.首先iframe内页面额代码js: function colorBox() { var url = document.getElementById("bigPic").src; window.parent.showBigPic(url); }html:<img id="bigPic" src="<%=BigPic %>" ondblclick="colorBox()"
阅读全文
摘要:1.官网:http://www.jacklmoore.com/colorbox2.使用方法推荐:http://blog.csdn.net/houpengfei111/article/details/80011873.自己简单使用:1.yinyong<script src="http://www.cnblogs.com/public/JsEasyUi/js/jquery-1.4.4.min.js" type="text/javascript"></script> <link href="http://www.cnbl
阅读全文
摘要:1.jquerymobile的引用 略2.引用后,页面跳转后,自己的js无法执行,需刷新。解决:在上个页面链接跳转出加:data-ajax="false"3.data-prefetch="false"的使用
阅读全文
摘要:<script language="javascript" type="text/javascript"> functionTestAjax(){ $.ajax({ url: "http://www.www.net/", //ajax请求的路径 dataType: "json", data: "id=150"+"&r=" + Math.random(), //请求的参数 type: "post", success: function (
阅读全文
摘要:<!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> <title>广告</title> <script src="../js/jquery-1.4.4.min.js"
阅读全文
摘要:document.body.innerHTML = 'xxxx'; $("body").html('XXXX'); //这个是赋值$("body").html(); //这个是获取
阅读全文
摘要:jquery.autocomplete参考地址 http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ http://docs.jquery.com/Plugins/Autocompletehttp://www.open-open.com/ajax/ajax20080314223855.htmhttp://www.36ria.com/719例子:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server&qu
阅读全文
摘要:$(selector).animate(styles,speed,easing,callback)
阅读全文
摘要:4. 日期范围限制静态限制注意:日期格式必须与 realDateFmt 和 realTimeFmt 一致你可以给通过配置minDate(最小日期),maxDate(最大日期)为静态日期值,来限定日期的范围示例4-1-1 限制日期的范围是 2006-09-10到2008-12-20<input id="d411" class="Wdate" type="text" onfocus="WdatePicker({skin:'whyGreen',minDate: '2006-09-10', ma
阅读全文

浙公网安备 33010602011771号