Archive for 五月, 2012

webapp全屏

最近在开发一个iPhone上使用的网站,通过Safari浏览的话有个难看的导航条,通过Google后找到了能够全屏访问网站的方法,但唯一的缺憾是用户需要在Safari手动将网站添加到主屏幕后才能够实现网站全屏。具体方式是在里面添加如下内容:


WordPress自定义页面模板显示某分类日志

新建一个文件,在头部写上


( 表示这个是自定义模板,模板名字是“aliboke”)
然后把主题里自带的index.php文件内容全部复制到上段代码下边。在

上边加上一段代码:

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…)



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’);


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