document.getElementById(...)为空或不是对象 行:24
//滑动菜单效果functiontabit(tabName,btnId,tabNumber,url,tar){for(i=0;i<tabNumber;i++){//doc...
//滑动菜单效果
function tabit(tabName,btnId,tabNumber,url,tar){
for(i=0;i<tabNumber;i++){
//document.getElementById(tabName+"_div"+i).style.display = "none";
if (document.getElementById(tabName+"_btn"+i)) {
document.getElementById(tabName+"_btn"+i).style.background = "url(images/search_06_02.gif)";
document.getElementById(tabName+"_btnleft"+i).style.background = "url(images/search_06_01.gif)";
document.getElementById(tabName+"_btnright"+i).style.background = "url(images/search_06_03.gif)";
}
}
//document.getElementById(tabName+"_div"+btnId).style.display = "block";
document.getElementById(tabName+"_btn"+btnId).style.background = "url(images/search_05_02.gif)";
document.getElementById(tabName+"_btnleft"+btnId).style.background = "url(images/search_05_01.gif)";
document.getElementById(tabName+"_btnright"+btnId).style.background = "url(images/search_05_03.gif)";
//tar.src=url;
if (tar=="")
{
window.location.href=url;
}
else
{
//tar.src=url;
document.getElementById(tar).src=url;
}
}
function chgAction(val)
{
var i=0
while(eval("document.all.menuiia"+i))
{
eval("document.all.menuiia"+i).style.display="none";
eval("document.all.menuiib"+i).style.display="";
i++;
}
eval("document.all.menuiia"+val).style.display="";
eval("document.all.menuiib"+val).style.display="none";
}
function fytp_add(){
fytpn.style.display="block";
fytpn1.style.display="block";
fytpy.style.display="none";
}
function fytpy_add(){
fytpn.style.display="none";
fytpn1.style.display="none";
fytpy.style.display="block";
}
function fysp_add(){
fyspn.style.display="block";
fyspn1.style.display="block";
fyspy.style.display="none";
}
function fyspy_add(){
fyspn.style.display="none";
fyspn1.style.display="none";
fyspy.style.display="block";
} 展开
function tabit(tabName,btnId,tabNumber,url,tar){
for(i=0;i<tabNumber;i++){
//document.getElementById(tabName+"_div"+i).style.display = "none";
if (document.getElementById(tabName+"_btn"+i)) {
document.getElementById(tabName+"_btn"+i).style.background = "url(images/search_06_02.gif)";
document.getElementById(tabName+"_btnleft"+i).style.background = "url(images/search_06_01.gif)";
document.getElementById(tabName+"_btnright"+i).style.background = "url(images/search_06_03.gif)";
}
}
//document.getElementById(tabName+"_div"+btnId).style.display = "block";
document.getElementById(tabName+"_btn"+btnId).style.background = "url(images/search_05_02.gif)";
document.getElementById(tabName+"_btnleft"+btnId).style.background = "url(images/search_05_01.gif)";
document.getElementById(tabName+"_btnright"+btnId).style.background = "url(images/search_05_03.gif)";
//tar.src=url;
if (tar=="")
{
window.location.href=url;
}
else
{
//tar.src=url;
document.getElementById(tar).src=url;
}
}
function chgAction(val)
{
var i=0
while(eval("document.all.menuiia"+i))
{
eval("document.all.menuiia"+i).style.display="none";
eval("document.all.menuiib"+i).style.display="";
i++;
}
eval("document.all.menuiia"+val).style.display="";
eval("document.all.menuiib"+val).style.display="none";
}
function fytp_add(){
fytpn.style.display="block";
fytpn1.style.display="block";
fytpy.style.display="none";
}
function fytpy_add(){
fytpn.style.display="none";
fytpn1.style.display="none";
fytpy.style.display="block";
}
function fysp_add(){
fyspn.style.display="block";
fyspn1.style.display="block";
fyspy.style.display="none";
}
function fyspy_add(){
fyspn.style.display="none";
fyspn1.style.display="none";
fyspy.style.display="block";
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询