当前位置:编程学习 > JAVA >>

JSP这段代码有冲突吗

var rxr_nav1 = document.getElementById('rxr_nav1');
var rxr_con1 = document.getElementById('rxr_con1');
var tnav1 =null;
var tcon1 = null;
rxr_nav1.onmouseover = function(){
if (tcon1)
{
clearTimeout(tcon1);
}
rxr_con1.style.display = 'block';
}
rxr_nav1.onmouseout = function(){

tnav1 = setTimeout(function(){
rxr_con1.style.display = 'none';
},500);
}
rxr_con1.onmouseover = function(){
if (tnav1)
{
clearTimeout(tnav1);
}
if (tcon1)
{
clearTimeout(tcon1);
}
}
rxr_con1.onmouseout = function(){
tcon1 = setTimeout(function(){
rxr_con1.style.display = 'none';
},500);
}


var rxr_nav2 = document.getElementById('rxr_nav2');
var rxr_con2 = document.getElementById('rxr_con2');
var tnav2 =null;
var tcon2 = null;
rxr_nav2.onmouseover = function(){
if (tcon2)
{
clearTimeout(tcon2);
}
rxr_con2.style.display = 'block';
}
rxr_nav2.onmouseout = function(){

tnav2 = setTimeout(function(){
rxr_con2.style.display = 'none';
},500);
}
rxr_con2.onmouseover = function(){
if (tnav2)
{
clearTimeout(tnav2);
}
if (tcon2)
{
clearTimeout(tcon2);
}
}
rxr_con2.onmouseout = function(){
tcon2 = setTimeout(function(){
rxr_con2.style.display = 'none';
},500);
}

var rxr_nav4 = document.getElementById('rxr_nav4');
var rxr_con4 = document.getElementById('rxr_con4');
var tnav4 =null;
var tcon4 = null;
rxr_nav4.onmouseover = function(){
if (tcon4)
{
clearTimeout(tcon4);
}
rxr_con4.style.display = 'block';
}
rxr_nav4.onmouseout = function(){

tnav4 = setTimeout(function(){
rxr_con4.style.display = 'none';
},500);
}
rxr_con4.onmouseover = function(){
if (tnav4)
{
clearTimeout(tnav4);
}
if (tcon4)
{
clearTimeout(tcon4);
}
}
rxr_con4.onmouseout = function(){
tcon4 = setTimeout(function(){
rxr_con4.style.display = 'none';
},500);
}


var rxr_nav6 = document.getElementById('rxr_nav6');
var rxr_con6 = document.getElementById('rxr_con6');
var tnav6 =null;
var tcon6 = null;
rxr_nav6.onmouseover = function(){
if (tcon6)
{
clearTimeout(tcon6);
}
rxr_con6.style.display = 'block';
}
rxr_nav6.onmouseout = function(){

tnav6 = setTimeout(function(){
rxr_con6.style.display = 'none';
},500);
}
rxr_con6.onmouseover = function(){
if (tnav6)
{
clearTimeout(tnav6);
}
if (tcon6)
{
clearTimeout(tcon6);
}
}
rxr_con6.onmouseout = function(){
tcon6 = setTimeout(function(){
rxr_con6.style.display = 'none';
},500);
}

两个jsp功能加进去显示有冲突      望大虾指教!
--------------------编程问答-------------------- 代码太长,看不太明白。
补充:Java ,  Java相关
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,