分类导航

最新文章

按月份

  1. HTTP状态码

    常见的 200 – OK,服务器成功返回网页 – Standard response for successful HTTP requests. 301 – Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。 – This and all futur ...

    http://codante.org/http-header-status-code
  2. 按键对应的编码(javascript Char/key codes)

    Key Pressed Javascript Key Code backspace 8 tab 9 enter 13 shift 16 ctrl 17 alt 18 pause/break 19 caps lock 20 escape 27 page up 33 page down 34 end 35 home 36 left arrow 37 up arrow 38 right arrow ...

    http://codante.org/javascrip-key-codes
  3. 全世界最短的IE判断方法

    var isIE = !-[1,]; 仅仅需要6bytes即可进行判断,利用了IE与标准浏览器在处理数组的toString方法时的差异来完成的。 对于标准游览器,如果数组里面最后一个字符为逗号,js的引擎会自动剔除它。

    http://codante.org/ie-to-determine-the-shortest-way-around-the-world
  4. 兼容各浏览器的半透明背景且不透明文字的CSS写法

    当CSS有了rgba属性,可以很方便的实现背景透明,但问题主要出在IE上… 再怎么骂也没用了,它也不会按标准走的,IE家族只能使用其特有的filter属性。 FireFox rgba是CSS3中的属性,支持W3标准的浏览器都可以现 ...

    http://codante.org/css-compatible-with-all-browsers-translucent-background-opaque-text
  5. FireFox中的outerHTML

    此方法是直接将outerHTML添加为HTMLElement的动态方法,可供直接调用。 if (document.body.__defineGetter__) { if (HTMLElement) { var element = HTMLElement.prototype; if (element.__defineGetter__) { eleme ...

    http://codante.org/outerhtml-in-firefox
  6. Javascript在IE和Firefox下的兼容性问题整理

    Javascript的IE和Firefox兼容性问题集合 表单 document.formName.item(“itemName”) IE:可以使用document.formName.item(“itemName”)或document.formName.elements["elementName"] Firefo ...

    http://codante.org/javascript-in-the-ie-and-firefox-compatibility-finishing
  7. CSS3圆角属性在各浏览器中的实现

    圆角属性border-radius在CSS3中出现了,目前为止IE仍然没有支持它… 这里就不浪费口水了。 根据浏览器所用引擎的不同,圆角的使用方式也略有不同。 火狐 firefox目前还不能直接支持border-radius,所以只能使 ...

    http://codante.org/css3-rounded-attributes-of-the-implementation-of-the-browser
  8. CSS Expression(动态属性)用法总结

    CSS Expression 动态 css属性,ie 私有,从5.0开始引入(IE8 不支持),参考 MSDN。一般只用在IE6的hack。 优点 css属性动态生成,所以基本 js 能做的它都能做。选择器用的是 css的,比 js 方便得多。 缺点 expres ...

    http://codante.org/css-expression-usage-summary
  9. JavaScript开发工具,全面&实用!

    不管你是JavaScript新手还是经验丰富的开发者,你所使用的工具直接影响你的工作效率。开放源代码运动使得拥有得力的工具不再意味着付一大笔钱;实际上你什么都不用付出。本文中将介绍各种对JavaScript开发者真正有 ...

    http://codante.org/javascript-development-tools-comprehensive-and-practical
  10. REMOTE_ADDR,HTTP_CLIENT_IP,HTTP_X_FORWARDED_FOR

    /** * 获得用户的真实IP地址 * * @access public * @return string */ function real_ip() { static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset($_SERVER)) { if (isset($_SERVER['HTT ...

    http://codante.org/remote_addr-http_client_ip-http_x_forwarded_for
  11. 让一个层在页面中居中

    <style type="text/css"> <!–   div {   position:absolute;   top:50%;   left:50%;   margin:-100px 0 0 -100px;   width:200px;   height:200px;   border:1px solid ...

    http://codante.org/a-layer-centered-in-the-page
  12. Javascript从url中获取参数

    有时我们需要在客户端获取链接参数,一个常见的方法是将链接当做字符串,按照链接的格式分解,然后获取对应的参数值。

    http://codante.org/javascript-get-parameters-from-url
  13. Flash中的wmode参数详解

    在做web开发中可能会遇到flash遮挡页面中元素的情况,无论怎么设置flash容器和层的深度(z-index)也无济于事,现有的解决方案是在插入flash的embed或object标签中加入”wmode”属性并设置为wmode=”transparen ...

    http://codante.org/flash-wmode-parameter-in-the-detailed
  14. 判断javascript加载完成的方法

    function include_js(file) { var _doc = document.getElementsByTagName(‘head’)[0]; var js = document.createElement(‘script’); js.setAttribute(‘type’, ‘text/ja ...

    http://codante.org/determine-the-method-of-javascript-loaded
  15. 判断 iframe 是否加载完成的完美方法

    var iframe = document.createElement(“iframe”); iframe.src = “http://www.planabc.net”; if (iframe.attachEvent){ iframe.attachEvent(“onload”, function(){ alert(R ...

    http://codante.org/determine-the-method-of-iframe-loaded
  16. 很多正则表达式

    收集了很多常用的正则表达式,拿出来分享下~

    http://codante.org/a-lot-of-regular-expressions
  17. PHP中不太常用的方法

    在php中,有一些方法经常被人们所遗忘,在一些特定的需求下,他们还是非常有用的。

    http://codante.org/less-commonly-used-in-php
  18. PHP中header的使用范例

    本文对于php中header的使用做出了比较详细的解释。

    http://codante.org/php-header-example
  19. PHP获取当前类名、方法名

    __CLASS__ 获取当前类名 __FUNCTION__ 当前函数名(confirm) __METHOD__ 当前方法名 (bankcard::confirm)

    http://codante.org/php-class-function-names
  20. CSS中的各种缩写

    使用缩写可以帮助减少你CSS文件的大小,更加容易阅读。

    http://codante.org/css-shorthand