1.
var strForeId;
function IsDisplay(id)
{
if(strForeId!=null)
{
if(this.document.getElementById(strForeId) != null)
{
if(this.document.getElementById(strForeId).style.display=='')
{
this.document.getElementById(strForeId).style.display='none';
}
}
}
this.document.getElementById(id).style.display='';
strForeId=id;
}
2.
function IsDisplay(id)
{
if(this.document.getElementById(id).style.display == 'none')
{
this.document.getElementById(id).style.display = '';
}
else
{
this.document.getElementById(id).style.display = 'none';
}
}
var strForeId;
function IsDisplay(id)
{
if(strForeId!=null)
{
if(this.document.getElementById(strForeId) != null)
{
if(this.document.getElementById(strForeId).style.display=='')
{
this.document.getElementById(strForeId).style.display='none';
}
}
}
this.document.getElementById(id).style.display='';
strForeId=id;
}
2.
function IsDisplay(id)
{
if(this.document.getElementById(id).style.display == 'none')
{
this.document.getElementById(id).style.display = '';
}
else
{
this.document.getElementById(id).style.display = 'none';
}
}
浙公网安备 33010602011771号