GA匿名IP

_anonymizeIp()
Tells Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting.

When using this function to anonymize tracking, you must use the push function and properly associate the function with the tracker object, as illustrated below.
(continue reading…)


web问题整合

more…
(continue reading…)


ie6 position:fixed




    
    ie6 position fixed
    



test


























test

test

TS PHP_SCRIPT

TYPOSCRIPT

temp.phpScript = PHP_SCRIPT
temp.phpScript {
    file = fileadmin/scripts/php_script.inc.php
    myVerySpecialOwnParameter = bla
    myParamArray {
        a = 1
        b = ja
    }
}
page.30.70.10 < temp.phpScript

php_script.inc.php
PHP

' );
?>

Magento Static Block

Magento中的static block是通过后台来创建和修改的,static block可以作为一个静态的区块在单个页面或多个页面上调用。管理员可以通过后台方便的修改static block中的内容。如果你需要在页面上显示一小块静态的区域内容,而又不需要重新建立一个CMS页面比如about us,term的时候,static block能很好的解决这个问题。

在Magento默 认安装后,static block是如何显示的呢?例如电子产品分类页,用一个static block代替默认的产品列表页面。用static block的好处是管理员能够方便的在后台去修改static block中的内容而不需要去修改任何模板代码。另外一个如果使用static block的例子可以在Magento演示站点的首页可以看的到。比如左侧的’Buy Canon Rebel’和右侧’Back to School’促销区块在默认并没有使用 static block,但是像这样的商城促销信息我们经常可以用static block来做。 (continue reading…)


TYPO3: RTE embed / iframe tag

TYPO3: RTE embed / iframe tag

According to Google Analytics a lot of people are currently looking for a way to use embed tags within the (tt_news) RTE. By default the TYPO3 RTE will remove these embed tags, but it’s fairly easy to change this. In this tutorial I’ll show you how to insert an iframe, within the TYPO3 RTE.
(continue reading…)


IP保护

http://www.maxmind.com/download/geoip/api/php/


Jquery 离开页面时提醒

//绑定beforeunload事件
$(window).bind(‘beforeunload’,function(){
return ‘您输入的内容尚未保存,确定离开此页面吗?’;
});

//解除绑定,一般放在提交触发事件中
$(window).unbind(‘beforeunload’);


Using php 5.4

We have php 5.2 as the default version of php on our shared hosting servers (as many scripts are not compatible with php version 5.4) , if you require php 5.4, or would like to test how your site / scripts runs with the new version of php, simply add the following line to a .htaccess file (in the folder where the scripts files are ) :

AddHandler application/x-httpd-php54 .php

This will then cause all scripts in that folder and folders below to parse using php 5.4

(Please note that ZendGuard and Zend Encoder and IonCube are currently NOT supported on php version 5.4 so if your script is an encoded using Zend Encoder you should use php 5.2 , if the script is encoded using IonCube or ZendGuard, then php version 5.3 can be used ) .


MySQL中UNION和UNION ALL的使用

在数据库中,UNION和UNION ALL关键字都是将两个结果集合并为一个,但这两者从使用和效率上来说都有所不同。
(continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress