<script type="text/javascript">//<![CDATA[if(getCookie('firefoxIframe')){document.write('<p id="addAd"><a href="cookie.html">点击这里删除这个iframe</a></p>');document.write('<iframe height="120" width="300" marginheight="0" marginwidth="...
http://www.jb51.net//article/14466.htm
Beautify PHP,很好用的php格式化工具http://www.bierkandt.org/beautify/http://pear.php.net/package/PHP_Beautifier/download最近组内来新人,他们代码不太规范的时候看得实在不舒服这个工具实在很好用,再乱的代码瞬间就格式化好了丢到linux下还可以快速批量处理@.@好了,以下是本帖主题:Beautify PHP格式化符号时,遗漏了^=和&=判断,在beautify_php.class.inc第426行,增加这两个符号 ...
http://www.jb51.net//article/14256.htm
[code]<script type="text/javascript"> function SetCwinHeight(){ var bobo=document.getElementById("bobo"); //iframe id if (document.getElementById){ if (bobo && !window.opera){ &nbs...
http://www.jb51.net//article/14142.htm
这样的语句,很显然,造成这个原因是因为setcookie造成的,查了一下网上,有如下的解释: cookie本身在使用上有一些限制,例如: 1.呼叫setcookie的敘述必須放在<html>标签之前 2.呼叫setcookie之前,不可使用echo 3.直到網頁被重新載入...
http://www.jb51.net//article/14108.htm
本文主要来讲述一下 iframe 的用法与注意事项: 好多同志对 iframe 是如何控制的,并不是十分了解,基本上还处于一个模糊的认识状态.注意两个事项,ifr 是一个以存在的 iframe 的 ID 和 NAME 值: document.getElementById(“ifr”); window.frames[“i...
http://www.jb51.net//article/14043.htm
先看例子:[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"> <head> <meta http-equiv="Content-Type"&nbs...
http://www.jb51.net//article/14035.htm
function array_diff($array_1, $array_2) { $diff = array(); foreach ($array_1 as $k => $v1) { $flag = false; &n...
http://www.jb51.net//article/13907.htm
[code]<?php /* PHP code */ header("Content-type: text/javascript"); if (!haveCookie('cookieName')) { // ... do something ?> /* Javascript code */ if ('undefined' == t...
http://www.jb51.net//article/13899.htm
先看例子:[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"> <head> <meta http-equiv=...
http://www.jb51.net//article/13724.htm
[html]<SCRIPT>a=0if(a<1)alert(a),alert(1-a)//VSif(a==0){alert(a);alert(1-a)}</SCRIPT>[/html][html]<SCRIPT>a=0a?0:(alert(a),alert(1-a))</SCRIPT>[/html]还可以这样写 [html]<SCRIPT> a=0 a==0 && (alert(a),alert(1-a)) </SCRIPT>&n...
http://www.jb51.net//article/13599.htm
在Blog盛行的今天,一些Web应用需要解析大量的RSSFeed.如何提高效率是个非常重要的问题.在MagpieRSS的Features 中列举了这样的一条:HTTPConditionalGETsSavebandwidthandspeedupdownloadtimeswithintelligentuseofLast-ModifiedandETag..这里的Etag引起了我的注意.什么是Etag?通过阅读RFC2616,得到了对Etag的一点印象:TheETagresponse-headerfieldprovidesthecurrentvalueoftheentitytagforthereque...
http://www.jb51.net//article/13365.htm
