Naale Money Maker Community

标题: 中英文网页切换代码 [打印本页]

作者: admin    时间: 2007-10-14 17:20
标题: 中英文网页切换代码
使用如下代码实现中英文网页切换。

<script>
<!--
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('zh-cn') > -1) document.location.href = 'http://www.williamlong.info/';
else if (language.indexOf('en') > -1) document.location.href = 'http://naale.biz';
else
document.location.href = 'http://naale.biz';
//-->
</script>




欢迎光临 Naale Money Maker Community (http://naale.biz/) Powered by Discuz! X2.5