回复 4楼xiyou的帖子请问如何从中文站点切换成英文站点呀?我点击绿色方框里的“English”,但是页面还是在中文版。我想知道请问怎样把英文版的链接加进来呀?不知道能不能把英文版的链接加到下列程序中呢?
程序:
<span class="top-r"><a style="background:none transparent scroll repeat 0% 0%;" href="/">English</a></span>
<script type="text/javascript">
function AddFavorite(sURL, sTitle)
{
try
{
if( typeof(sURL) =="undefined" || sURL.length==0) { sURL=window.location; }
if( typeof(sTitle) =="undefined" || sTitle.length==0) { sTitle=document.title; }
window.external.addFavorite(sURL, sTitle);
}
catch (e)
{
try
{
window.sidebar.addPanel(sTitle, sURL, "");
}
catch (ee)
{
alert("The browser you are using does not support this function, press \"Ctrl + d\" to manually add to Favorites!");
}
}
}
function setHome(objid,urls) {
var a = objid, b = urls, c = "unknown";
try {
if( typeof(b) =="undefined" || b.length==0) { b=location.href; }
a.style.behavior = "url(#default#homepage)";
var d = a.isHomePage(b);
d = (d = d || a.isHomePage(b + "/")) || a.isHomePage(b + "/#");
d = "" + d;
if (d != "true"){
a.setHomePage(b);
}else{
alert("您已经设为首页了!");
}
} catch (e) {
alert("Your browser does not support automatic to set the home page, use the browser menu to manually set!");
}
};
</script>