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


select下拉框美化

用法:<script>dropdown({‘0′:’test1′,’1′:’test2′,’2′:’test3′},’dropdown_name’,’2′,function(){});</script>

参数1:数据,参数2:表单name,参数3:current值,参数4:callback function.

查看demo


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