上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
  2011年6月14日
摘要: 服务器端:$s='window.location.href="index.php?cmd=user.go_login"';echo '<div style="display: none"><iframe style="display:none" onload=javascript:'.$s.'></iframe></div>';参考1:http://www.impng.com/web-dev/execscript-loaded-by-aja 阅读全文
posted @ 2011-06-14 10:32 佐伊凡 阅读(9322) 评论(0) 推荐(0) 编辑
  2011年6月13日
摘要: function getEventTargetId(event){ event=event||window.event; var target=event.target||event.srcElement; return target.id;}参考:http://topic.csdn.net/u/20090101/11/ad3d4b0f-a320-453b-a49f-41ef277de082.html 阅读全文
posted @ 2011-06-13 10:49 佐伊凡 阅读(217) 评论(0) 推荐(0) 编辑
  2011年6月9日
摘要: from:http://koda.iteye.com/blog/471713参考:http://dev.mysql.com/doc/refman/5.1/en/commit.htmlPHP对MYSQL数据库进行事务处理及表锁定这不是什么新鲜的话题,重温一下又何妨。 MYSQL的事务处理主要有两种方法: 1、用begin,rollback,commit来实现 begin 开始一个事务 rollback 事务回滚 commit 事务确认 2、直接用set来改变mysql的自动提交模式 MYSQL默认是自动提交的,也就是你提交一个QUERY,它就直接执行!我们可以通过 set autocommit= 阅读全文
posted @ 2011-06-09 10:22 佐伊凡 阅读(1756) 评论(0) 推荐(0) 编辑
  2011年6月8日
摘要: 转载自:http://blog.csdn.net/xinhaozheng/archive/2010/09/03/5862109.aspx有一段时间没用jquery了,今天又碰到这个问题。当时是知道有livejquery可以解决。但是我并不喜欢为了这个而另外加载一个。我当时的处理方法是在添加的时候手工绑定事件处理函数。不过新版的jquery已经添加了这个功能。我们已经不需要为此烦恼了。参考:http://api.jquery.com/live/以前我们定义事件,比如为元素定义单击事件是这样写的:$('input').click(function () {//处理代码});或$(& 阅读全文
posted @ 2011-06-08 13:53 佐伊凡 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 弹出的DIV浏览器窗口中居中from :http://hi.baidu.com/qzw3288/blog/item/d20f54d1ff63d985a0ec9cf0.html<!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"><hea 阅读全文
posted @ 2011-06-08 09:32 佐伊凡 阅读(354) 评论(0) 推荐(0) 编辑
  2011年6月2日
摘要: 解决办法:父级元素加上position:relative;并设置z-index.父级元素的z-index优先,其中包含的元素的z-index是相对于父级元素的index.<div style="position:relative;z-index=2"><p style="position:absolute;z-index=99"> ...(要在上层显示的内容)</p><div><div style="position:relative;z-index=1">...<di 阅读全文
posted @ 2011-06-02 17:21 佐伊凡 阅读(7838) 评论(1) 推荐(1) 编辑
摘要: lightbox(jquery) http://leandrovieira.com/projects/jquery/lightbox/lightbox2 (use Prototype)http://www.lokeshdhakar.com/projects/lightbox2/jcarousel :http://sorgalla.com/jcarousel/其他参考:http://www.wufangbo.com/51-jquery-plugn-introduction-and-application-exampleshttp://www.dynamicwp.net/articles-and- 阅读全文
posted @ 2011-06-02 11:01 佐伊凡 阅读(186) 评论(0) 推荐(0) 编辑
  2011年5月30日
摘要: $('#'+street)[0].className="current"; //一定要加[0], 或者使用下面的形式$('#'+street).addClass("current");参考:$('a[id*="street"]').click(function() {$('input[name="current_street"]').val(this.id);$('a[id*="street"]').removeCl 阅读全文
posted @ 2011-05-30 11:15 佐伊凡 阅读(6930) 评论(0) 推荐(0) 编辑
  2011年5月27日
摘要: smarty常用运算符eq相等,ne、neq不相等,gt大于,lt小于gte、ge大于等于lte、le 小于等于not非, mod求模is [not] div by是否能被某数整除,is [not] even是否为偶数$a is [not] even by $b即($a / $b) % 2 == 0is [not] odd是否为奇$a is not odd by $b即($a / $b) % 2 != 0 阅读全文
posted @ 2011-05-27 17:01 佐伊凡 阅读(1116) 评论(0) 推荐(0) 编辑
  2011年5月25日
摘要: http://www.alistapart.com/articles/sprites/ 阅读全文
posted @ 2011-05-25 17:00 佐伊凡 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页