随笔分类 -  JQurey/JS

摘要:1 function pagestart() {//初始化页面,获取公司新闻 2 $("#pagediv").hide(); 3 $("#CurrentPage").val("0"); 4 var pagesize = $("#pagesize").val(); ... 阅读全文
posted @ 2014-06-25 14:06 BicycleBoy 阅读(428) 评论(0) 推荐(0)
摘要:页面 一般处理程序using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace Web... 阅读全文
posted @ 2014-06-04 20:15 BicycleBoy 阅读(870) 评论(0) 推荐(0)
摘要:获取子窗口中的标签:$("#id",document.frames('iframename').document);获取父窗口中的标签:$('#id', parent.document); 阅读全文
posted @ 2013-11-19 16:02 BicycleBoy 阅读(346) 评论(0) 推荐(0)
摘要:AeroWindow--JQuery插件 AeroWindow是个Win7样式的弹出窗口,jQuery插件,效果很酷!而且还像windows的窗口一样可最大,最小化,随意拖动。可以一个页面中创建多个弹出窗,被选中的弹出窗会加亮显示,在同一网页中可以有多个弹出窗口,也可以通过双击窗口实现最大化,跟windows像极了。如果想要做一个类似操作系统的页面,用这个插件是完全可以实现的。兼容多种主流浏览器。 最基础的调用方法:view sourceprint?$('#YourContainerDiv').AeroWindow((WindowTitle:'hello world&# 阅读全文
posted @ 2013-05-19 13:27 BicycleBoy 阅读(1437) 评论(0) 推荐(0)
摘要:JS 实现简单的页面局部打印function preview(oper){if (oper < 10){bdhtml=window.document.body.innerHTML;//获取当前页的html代码sprnstr="<!--startprint"+oper+"-->";//设置打印开始区域eprnstr="<!--endprint"+oper+"-->";//设置打印结束区域prnhtml=bdhtml.substring(bdhtml.indexOf(sprnstr)+18 阅读全文
posted @ 2013-05-19 13:12 BicycleBoy 阅读(199) 评论(0) 推荐(0)
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="../Scripts/Datepicker/WdatePicker.js" type="text/javascript&quo 阅读全文
posted @ 2013-05-19 12:55 BicycleBoy 阅读(395) 评论(0) 推荐(0)
摘要:<head runat="server"><title></title><script src="script/jquery-1.4.1.js" type="text/javascript"></script><script type="text/javascript">function getCookie(c_name) {if (document.cookie.length > 0) {c_start = document.cooki 阅读全文
posted @ 2013-05-19 12:36 BicycleBoy 阅读(123) 评论(0) 推荐(0)
摘要:$("a").mouseenter(function () {var setx = this.offsetLeft;var sety = this.offsetTop;//alert(setx + "," + sety);$("#showd").css({'top': sety + 20 + 'px','left': setx + 50 + 'px','position': 'absolute','background': 阅读全文
posted @ 2013-05-19 12:31 BicycleBoy 阅读(252) 评论(0) 推荐(0)
摘要:<script type="text/javascript">$(function () {var url_arr = GetURLRequest(window.location.href).split('|'); //获取当前页REQUEST集合,并存入数组。alert(url_arr);});function GetURLRequest(Url) {var u, g, StrBack = '', RETURNVALUE = "";if (arguments[arguments.length - 1] == 阅读全文
posted @ 2013-05-19 12:30 BicycleBoy 阅读(248) 评论(0) 推荐(0)
摘要:function Len(str) {var i, sum;sum = 0;for (i = 0; i = 0) && (str.charCodeAt(i) <= 255))//如果是中文一个字为两个字节sum = sum + 1;elsesum = sum + 2;}return sum;} 阅读全文
posted @ 2013-05-19 12:08 BicycleBoy 阅读(214) 评论(0) 推荐(0)