Archive for 八月, 2010

css hack

CSS hack由于不同的浏览器,比如Internet Explorer 6,Internet Explorer 7,Mozilla Firefox等,对CSS的解析认识不一样,因此会导致生成的页面效果不一样,得不到我们所需要的页面效果。 这个时候我们就需要针对不同的浏览器去写不同的CSS,让它能够同时兼容不同的浏览器,能在不同的浏览器中也能得到我们想要的页面效果。

s.

(continue reading…)


[JS] – 判断IE6和IE7

<script>
    var browser=navigator.appName;
    var b_version=navigator.appVersion;
    var version=b_version.split(";");
    var trim_Version=version[1].replace(/[ ]/g,"");
    if(browser=="Microsoft Internet Explorer"
       && trim_Version=="MSIE7.0"){
        alert("IE 7.0");
    }else if(browser=="Microsoft Internet Explorer"
              && trim_Version=="MSIE6.0"){
        alert("IE 6.0");
    }
</script>

How to remove typo3 temp js and css

config.removeDefaultJS = 1

plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE >
plugin.tt_news._CSS_DEFAULT_STYLE >
plugin.tx_indexedsearch._CSS_DEFAULT_STYLE >
# usw, usw, ...

select – multiple点击

//XCLASS
$TYPO3_CONF_VARS[TYPO3_MODE][‘XCLASS’][‘t3lib/class.t3lib_tceforms.php’]=t3lib_extMgm::extPath(‘ext_name’).’class.ux_t3lib_tceforms.php’;

(continue reading…)


typeNum and eID

typeNum

Pages are referenced by two main values. The “id” and “type”.

The “id” points to the uid of the page (or the alias). Thus the page is found. (continue reading…)


typo3后台插件TS配置

写入方法可以写setup或者options:

t3lib_extMgm::addPageTSConfig(‘mod.web_txwilimportcsvM1.maxsize = 50000000’) (continue reading…)


weather.com.cn获取全国天气数据

获得天气数据:
访问http://m.weather.com.cn/data/101020100.html,其中1010200100是城市的id(上海),返回JSON格式的天气数据,示例如下: (continue reading…)

tt_news动态title配置

page.headerData.10>
(continue reading…)


tt_news – single页面多语言切换配置

在language的ts里配置:

    addQueryString = 1  
    addQueryString.exclude = id, L, cHash  

(continue reading…)


403,404,500多语言errorPage

Background:

When people manage there website, and in this case deleting page then we need to make sure that all search engines also need to know that a page doesn’t exist anylonger. (continue reading…)


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