var currentClass = "", lasstClass = "", currentLanguage = "汉语", currentInfoType = "图文";
function jump(type, value) { switch (type) {
case "class":
lasstClass = currentClass;
currentClass = value;
//if(document.getElementById(lasstClass)) {document.getElementById(lasstClass).style.color="#F60";}
document.picList.location.href = "listShow/picList.asp?table_Name=" + value + "&language=" + currentLanguage;
document.audList.location.href = "listShow/audList.asp?table_Name=" + value + "&language=" + currentLanguage;
document.medList.location.href = "listShow/medList.asp?table_Name=" + value + "&language=" + currentLanguage;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "lan":
currentLanguage = value;
if (currentLanguage == "汉语") {
document.getElementById("hanyu").className = 'lang_selected';
document.getElementById("zangyu").className = 'lang_unselected';
document.getElementById("hotPic").style.background = "url(CSS/images/tiao_pic.png)";
document.getElementById("hotMed").style.background = "url(CSS/images/tiao_med.png)";
document.getElementById("hotAud").style.background = "url(CSS/images/tiao_aud.png)";
document.getElementById("han").style.display = "block";
document.getElementById("zang").style.display = "none";
document.getElementById("searchByPin").style.display = "block";
document.getElementById("searchByZW").style.display = "none";
document.getElementById("barPic").innerHTML="图文";
document.getElementById("barMed").innerHTML="视频";
document.getElementById("barAud").innerHTML="音频";
}
else {
document.getElementById("hanyu").className = 'lang_unselected';
document.getElementById("zangyu").className = 'lang_selected';
document.getElementById("hotPic").style.background = "url(CSS/images/tiao_pic_zw.png)";
document.getElementById("hotMed").style.background = "url(CSS/images/tiao_med_zw.png)";
document.getElementById("hotAud").style.background = "url(CSS/images/tiao_aud_zw.png)";
document.getElementById("zang").style.display = "block";
document.getElementById("han").style.display = "none";
document.getElementById("searchByPin").style.display = "none";
document.getElementById("searchByZW").style.display ="block";
document.getElementById("barPic").innerHTML="<font style='font-family:ZW;font-size:22px;'>ས་ག།</font>";
document.getElementById("barMed").innerHTML="<font style='font-family:ZW;font-size:22px;'>བན་འན།</font>";
document.getElementById("barAud").innerHTML="<font style='font-family:ZW;font-size:22px;'>་ས།</font>";
}
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage;
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage;
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "pin":
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage + "&pin=" + value;
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage + "&pin=" + value;
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage + "&pin=" + value;
break;
case "infoType":
currentInfoType = value;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "search":
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
break;
} }
function jump(type, value) { switch (type) {
case "class":
lasstClass = currentClass;
currentClass = value;
//if(document.getElementById(lasstClass)) {document.getElementById(lasstClass).style.color="#F60";}
document.picList.location.href = "listShow/picList.asp?table_Name=" + value + "&language=" + currentLanguage;
document.audList.location.href = "listShow/audList.asp?table_Name=" + value + "&language=" + currentLanguage;
document.medList.location.href = "listShow/medList.asp?table_Name=" + value + "&language=" + currentLanguage;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "lan":
currentLanguage = value;
if (currentLanguage == "汉语") {
document.getElementById("hanyu").className = 'lang_selected';
document.getElementById("zangyu").className = 'lang_unselected';
document.getElementById("hotPic").style.background = "url(CSS/images/tiao_pic.png)";
document.getElementById("hotMed").style.background = "url(CSS/images/tiao_med.png)";
document.getElementById("hotAud").style.background = "url(CSS/images/tiao_aud.png)";
document.getElementById("han").style.display = "block";
document.getElementById("zang").style.display = "none";
document.getElementById("searchByPin").style.display = "block";
document.getElementById("searchByZW").style.display = "none";
document.getElementById("barPic").innerHTML="图文";
document.getElementById("barMed").innerHTML="视频";
document.getElementById("barAud").innerHTML="音频";
}
else {
document.getElementById("hanyu").className = 'lang_unselected';
document.getElementById("zangyu").className = 'lang_selected';
document.getElementById("hotPic").style.background = "url(CSS/images/tiao_pic_zw.png)";
document.getElementById("hotMed").style.background = "url(CSS/images/tiao_med_zw.png)";
document.getElementById("hotAud").style.background = "url(CSS/images/tiao_aud_zw.png)";
document.getElementById("zang").style.display = "block";
document.getElementById("han").style.display = "none";
document.getElementById("searchByPin").style.display = "none";
document.getElementById("searchByZW").style.display ="block";
document.getElementById("barPic").innerHTML="<font style='font-family:ZW;font-size:22px;'>ས་ག།</font>";
document.getElementById("barMed").innerHTML="<font style='font-family:ZW;font-size:22px;'>བན་འན།</font>";
document.getElementById("barAud").innerHTML="<font style='font-family:ZW;font-size:22px;'>་ས།</font>";
}
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage;
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage;
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "pin":
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage + "&pin=" + value;
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage + "&pin=" + value;
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage + "&pin=" + value;
break;
case "infoType":
currentInfoType = value;
if (currentClass == "") {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=全部";
}
else {
document.introduce.location.href = "introShow.asp?language=" + currentLanguage + "&infoType=" + currentInfoType + "&table_Name=" + currentClass;
}
break;
case "search":
document.picList.location.href = "listShow/picList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
document.audList.location.href = "listShow/audList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
document.medList.location.href = "listShow/medList.asp?language=" + currentLanguage + "&search=" + document.getElementById("searchBy").value.toString();
break;
} }
解决方案 »
- 高人请进~ 看看一个Bt问题
- 怎么js实现excel导出?求帮助!在线等啊!
- 我是新手,求几个关于JaveScript代码的写法,最好有注释,谢谢了
- 点一个按钮结束不了setInterval??
- js问题求解
- 一道外资公司的面试题
- 为了不让表格中的内容换行,用了这个属性table-layout:fixed ,但是单元格的宽度自动做了调整,怎么来控制宽度??
- 请问谁有XMLSelTree的源代码,我急用,可以的话发到我邮箱 [email protected] 暂给100分
- 帮忙来拿这100 分吧
- 怎样实现这样的功能??保存
- 关于在标签里打开新页面问题!?
- 如何用animate和queue实现轨迹动画
但是火狐上点击没效果。
所以也不知道怎么测试是哪不兼容。
会的大神们 帮忙弄下。