Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
为什么deepin首页要弄个转跳?
deepin Talks
1600
views ·
4
replies ·
To
floor
Go
Bluek404
deepin
2014-04-12 02:41
Author
Deepin
redirecting to index, please wait...
正在跳转至首页,请稍等...
*type="tex*">
var lang;
if ((pos = document.cookie.indexOf('LD_LANG=')) > 0){
lang = document.cookie.substr(pos + 8, 5);
if (lang == '%23en')
window.location.href = 'index.en.html';
else
window.location.href = 'index.cn.html';
}
else if ((lang = navigator.language || navigator.browserLanguage).indexOf("zh") === 0){
document.cookie = 'LD_LANG=%23cn;path=/;domain=.linuxdeepin.com;';
window.location.href = 'http://www.linuxdeepin.com/index.cn.html';
}
else{
document.cookie = 'LD_LANG=%23en;path=/;domain=.linuxdeepin.com;';
window.location.href = 'http://www.linuxdeepin.com/index.en.html';
}
Copy the Code
而且还弄两个index页面,直接用一个不更大气点么?
Reply
Like 0
Favorite
View the author
All Replies
kiscore
deepin
2014-04-12 04:16
#1
我chrome缩略图就是“正在跳转”,丑的一笔。
Reply
Like 0
View the author
BingoLove
deepin
2014-04-12 06:53
#2
根据中英文切换
Reply
Like 0
View the author
Bluek404
deepin
2014-04-12 07:02
#3
根据中英文切换
这个知道
但是完全没必要专门弄一个网页啊
而且中英页面也可以只弄一个文件的
Reply
Like 0
View the author
fredy4212
deepin
2014-04-12 07:57
#4
可能技術需要在加強些啊!大部分網頁與言切換是不用跳轉的
Reply
Like 0
View the author
Please
sign
in first
New Thread
Rankings
7 days
30 days
90 days
1
buyike
97 posts
2
阿尼樱奈奈
78 posts
3
chmod700
71 posts
4
度深蓝
57 posts
5
该昵称涉嫌违规
55 posts
6
Merlin
48 posts
Popular Events
More