2008. 9. 22. 15:00
검색 추가 버튼 클릭시 그냥 돌려서 보여주고 안보여주고...그냥..뭐...
//추가 함수
function addSearchArea()
{
var disType;
for(var i = 1; i < 5; i++)
{
disType = document.getElementById('SearchArea_' + i).style.display
if(disType == "none")
{
document.getElementById('SearchArea_' + i).style.display = "block";
break;
}
}
}
//줄이기 버튼
function SearchArea()
{
var controlID = "ctl00_PlaceHolderMain_EzNetWebpart_";
var disType;
var disTxtType;
for(var i = 4; i > 0; i--)
{
disType = document.getElementById('SearchArea_' + i).style.display;
if(disType == "block")
{
document.getElementById(controlID + 'SearchText_' + i).value = "";
document.getElementById('SearchArea_' + i).style.display = "none";
break;
}
}
}
//추가 함수
function addSearchArea()
{
var disType;
for(var i = 1; i < 5; i++)
{
disType = document.getElementById('SearchArea_' + i).style.display
if(disType == "none")
{
document.getElementById('SearchArea_' + i).style.display = "block";
break;
}
}
}
//줄이기 버튼
function SearchArea()
{
var controlID = "ctl00_PlaceHolderMain_EzNetWebpart_";
var disType;
var disTxtType;
for(var i = 4; i > 0; i--)
{
disType = document.getElementById('SearchArea_' + i).style.display;
if(disType == "block")
{
document.getElementById(controlID + 'SearchText_' + i).value = "";
document.getElementById('SearchArea_' + i).style.display = "none";
break;
}
}
}