摘要: $(function() {$("div#friend_pic1").hover(function() {$("div#fname_1").delay(2000).slideUp();});$("div#friend_pic1").mouseout(function() {$("div#fname_1").slideDown();});});like: http://jsfiddle.net/XnnvD/1/ 阅读全文
posted @ 2012-03-07 23:44 Lux.Y 阅读(182) 评论(0) 推荐(0)
摘要: I had an array with something like the following: Array ( [0] =>null, [1] => test, [2] => fun ). But I don’t want [0], the empty value in the array.After searching the web for a good solution, I saw that people were using anywhere from 4 to 10+ lines of code to remove null values from array 阅读全文
posted @ 2012-03-07 22:04 Lux.Y 阅读(241) 评论(0) 推荐(0)
摘要: From: http://www.masteringapi.com/tutorials/how-to-post-a-message-on-the-user-wall-using-facebook-graph-api/33/This is a quick post to demonstrate how to post a status message on the user wall using the Facebook Graph API. First of all, you need the publish_stream extended permission to perform this 阅读全文
posted @ 2012-03-07 20:04 Lux.Y 阅读(462) 评论(0) 推荐(0)
摘要: // put this line in the first of the template<?php echo pack("CCC",0xef,0xbb,0xbf); ?> 阅读全文
posted @ 2012-03-07 01:16 Lux.Y 阅读(320) 评论(0) 推荐(0)
摘要: global $timezoneTable; $timezoneTable = array( "-12" => "(GMT -12:00) Eniwetok, Kwajalein", "-11" => "(GMT -11:00) Midway Island, Samoa", "-10" => "(GMT -10:00) Hawaii", "-9" => "(GMT -9:00) Alaska", "-8 阅读全文
posted @ 2012-03-06 22:34 Lux.Y 阅读(313) 评论(0) 推荐(0)
摘要: From: http://www.karlrixon.co.uk/writing/calculating-age-from-date-of-birth-in-php/I imagine it’s a fairly common task to calculate an age in years from a date of birth. However most of the solutions I’ve seen either seem to be unnecessarily complicated or else fail to take in into account leap year 阅读全文
posted @ 2012-03-06 00:45 Lux.Y 阅读(182) 评论(0) 推荐(0)
摘要: Here we go !The sort in admin generator is for a single field only, but in some complex list, it can be usefull to sort by multiple criterias. This is the main goal of this snippet. Those functions therefore override the ones of your auto-generated class.(1)And to display what are the ongoing sort c 阅读全文
posted @ 2012-03-01 19:11 Lux.Y 阅读(263) 评论(0) 推荐(0)
摘要: div显示滚动条的css代码<div > 这里是你要显示的内容 </div>效果如下:显示滚动条的代码div显示上下滚动条的css代码<div > 这里是你要显示的内容 </div>div只显示上下滚动条OVERFLOW-Y:scroll;这段是关键修改div滚动条颜色的css代码<div > 这里是你要显示的内容 </div>修改滚动条颜色的代码SCROLLBAR-FACE-COLOR(立体滚动条凸出部分的颜色)SCROLLBAR-HIGHLIGHT-COLOR(滚动条空白部分的颜色)SCROLLBAR-SHADOW-C 阅读全文
posted @ 2012-03-01 18:16 Lux.Y 阅读(542) 评论(0) 推荐(0)
摘要: From:http://www.designchemical.com/blog/index.php/jquery/jquery-simple-horizontal-accordion/After our tutorial last month showing how tocreate a vertical accordion menu using jQuerywe have had a couple of requests asking how to make a horizontal accordion.So we have decided to provide the following 阅读全文
posted @ 2012-02-29 21:37 Lux.Y 阅读(691) 评论(0) 推荐(0)
摘要: From:http://trac.symfony-project.org/wiki/ConvertingPropelProjectToDoctrineI encourage everyone to add / edit this page to make it more useful to others. In this page I have used and linked to other sources. By no means do I claim ownership/credit or anything else about this page, it's simply a 阅读全文
posted @ 2012-02-29 01:36 Lux.Y 阅读(835) 评论(0) 推荐(0)
摘要: In Symfony 1.4, we dont have Javascript Helper anymore, instead, we have a JavascriptBase helper. 阅读全文
posted @ 2012-02-24 18:57 Lux.Y 阅读(152) 评论(0) 推荐(0)
摘要: 这是一个在从Symfony中, 当从Propel转换到Doctrine时,会出现在错误在propel中, 可以使用 parent::getName()class Image extends BaseImage{ public function getName() { return parent::getName(); } ...在doctrine中,若想实现同样的效果, 要改为$this->_get('name');public function getName(){ return $this->_get('name');} 阅读全文
posted @ 2012-02-24 18:14 Lux.Y 阅读(2797) 评论(1) 推荐(0)
摘要: 要做到两个div在一行,就得利用float或设置总宽度之和等于小大div<style type="text/css教程"><!--.onediv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#ff0000}.twodiv{width:90px; height:50px;float:left;margin:0 0 0 5px; border:1px #000 solid; background:#99cc00}-->< 阅读全文
posted @ 2012-02-22 18:39 Lux.Y 阅读(2657) 评论(0) 推荐(0)
摘要: 当今互联网已经成为每一个人的信息知识来源。假如你想学习任何事情,可以很容易在互联网上轻松找到相关的信息,即使它是很简单的事情。在互联网上有成千上万的教程和指南可以用来学习与工作相关的技术和内容。 Web开发人员同样也经常通过互联网获取关于HTML和编码的相关知识。为了帮助这些开发人员,以下是我们收集的一些优秀电子书供大家学习。1.HTML5 Quick Learning Guide如果您想学习HTML5,这本电子书将帮助您学习所有HTML5的基本标签元素。2.Head First HTML with CSS and XHTML有了这本电子书,你可以使用HTML和CSS技术轻松地创建基于标准的网 阅读全文
posted @ 2012-02-22 01:50 Lux.Y 阅读(284) 评论(0) 推荐(0)
摘要: 网站上线前的测试和验证是非常重要的一个环节,验证的意思是检查网站的页面和其他数据是否符合标准规范,设计规范的网站在各种浏览器上表现会一致而且良好。 为了帮助你执行这些测试和验证,今天我们列表了 5 个在线的工具。 Pingdom Tools Pingdom Tools 可以帮你分析网站的速度以及一些无法访问的元素 Feed Validation Service 这是一个用来检查 RSS 和 Atom 数据语法的工具 Functional Accessibility Evaluator 从名字可以看出,该工具主要对单个页面的功能访问进行测试。 Browsershots ... 阅读全文
posted @ 2012-02-22 01:41 Lux.Y 阅读(238) 评论(0) 推荐(0)