上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

2011年11月17日

html常用转义符

摘要: HTML常用符号:显示一个空格 &nbsp; &#160;< 小于 &lt; &#60;> 大于 &gt; &#62;& &符号 &amp; &#38;" 双引号 &quot; &#34;其他常用的字符实体(Character Entities)显示结果 说明 Entity Name Entity Number? 版权 &copy; &#169;? 注册商标 &reg; &#174;× 乘号 &times; &#215; 阅读全文

posted @ 2011-11-17 17:40 BarneyZhang 阅读(1655) 评论(0) 推荐(0) 编辑

2011年11月9日

【转载】jquery操作cookie

摘要: jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options... 阅读全文

posted @ 2011-11-09 14:22 BarneyZhang 阅读(392) 评论(0) 推荐(0) 编辑

【转载】window.parent和window.opener区别

摘要: 下面一段代码是关于window.parent和window.opener区别来讲的,我们如果要用到iframe的值传到另一框架就要用到window.opener.document.getElementById(name).value = uvalue;这种形式哦。window.parent能获取一个框架的父窗口或父框架。顶层窗口的parent引用的是它本身。可以用这一点特性来判断这个窗口是否是顶层窗口。如:Codefunction IsTopWindow( win ){ if( win.parent == win ) return true; else return false;}window 阅读全文

posted @ 2011-11-09 12:05 BarneyZhang 阅读(507) 评论(0) 推荐(0) 编辑

2011年11月8日

【原创】c#讲数据库数据转换为json格式(使用extjs,easyui中的datagrid)

摘要: 今天群中有一朋友问我,“怎么把数据库数据转为extjs可用的json数据?”现在就把我自己写的一个方法公布下,希望可用帮到需要的朋友。 ///<summary> /// 返回easyui/extjs中datagrid使用的json格式 ///</summary> ///<param name="dt">datatable数据</param> ///<param name="count">总的条数</param> ///<returns></returns> p 阅读全文

posted @ 2011-11-08 10:51 BarneyZhang 阅读(1461) 评论(0) 推荐(0) 编辑

2011年11月4日

【整合】百度地图自定义标注点

摘要: <html><head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>修改地图配置</title> <script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script> <script type="text/jav 阅读全文

posted @ 2011-11-04 15:14 BarneyZhang 阅读(4495) 评论(0) 推荐(0) 编辑

2011年11月1日

获取googlemap经纬度

摘要: 方法一:js<html> <head> <link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&quo 阅读全文

posted @ 2011-11-01 15:20 BarneyZhang 阅读(673) 评论(0) 推荐(0) 编辑

2011年10月26日

【转载】SQL Server 时间 函数

摘要: 定义和用法DATEDIFF() 函数返回两个日期之间的天数。语法DATEDIFF(datepart,startdate,enddate)startdate和enddate参数是合法的日期表达式。datepart参数可以是下列的值:datepart缩写年yy, yyyy季度qq, q月mm, m年中的日dy, y日dd, d周wk, ww星期dw, w小时hh分钟mi, n秒ss, s毫秒ms微妙mcs纳秒ns实例例子 1使用如下 SELECT 语句:SELECT DATEDIFF(day,'2008-12-29','2008-12-30') AS DiffDat 阅读全文

posted @ 2011-10-26 18:02 BarneyZhang 阅读(205) 评论(0) 推荐(0) 编辑

2011年10月25日

【整合】ajax无刷新上传文件(支持多文件)

摘要: 支持目前主流浏览器ie,firefox,chrome(已测试过)需要引用jquery <link href="../ajaxload/styles.css" rel="stylesheet" type="text/css" /> <script src="../ajaxload/js/ajaxupload.3.5.js" type="text/javascript"></script>插件可以到http://webdeveloperplus.com/jquer 阅读全文

posted @ 2011-10-25 18:22 BarneyZhang 阅读(716) 评论(0) 推荐(0) 编辑

2011年10月19日

【原创】jquery实现2个listbox数据传递

摘要: 点击左侧listbox,将点击项添加到右侧listbox。点击右侧listbox,则移除点击项。listbox可以有后台数据库输出。 <li style="height: 250px; margin: 5px 0px">权限列表<br /> <select size="4" name="lb_list" multiple="multiple" id="lb_list" style="height:200px;width:150px;"> & 阅读全文

posted @ 2011-10-19 18:44 BarneyZhang 阅读(1981) 评论(0) 推荐(0) 编辑

2011年10月14日

【原创】模仿微博拉动滚动条加载数据

摘要: <html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>滚动条距离底部</title> <script src="easyui1.2.4/jquery-1.6.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function 阅读全文

posted @ 2011-10-14 18:16 BarneyZhang 阅读(665) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页

导航