Where there is a will , there is a way .
kenly

No pain , no gain .

 

Javascript 隱藏或顯示某區域

 <script language="javascript" type="text/javascript">
 
        function ExpandGridView(num)
        {
            var prefix = "ctl00_ContentPlaceHolder1_";
            var gvQuestion = document.getElementById(prefix+'gvQuestion'+num);
            var imgQuestion = document.getElementById(prefix+'imgQuestion'+num);
           
            if(gvQuestion.style.display == "none")
            {
                gvQuestion.style.display = "block";
                imgQuestion.src = "../images/lines/CollapseMinus.gif";
                imgQuestion.alt='Click to hidden questionnaire.';
            }
            else
            {
                gvQuestion.style.display = "none";
                imgQuestion.src = "../images/lines/CollapsePlus.gif";
                imgQuestion.alt='Click to display questionnaire.';
            }
        }
           
    </script>

posted on 2007-04-07 09:25  kenly33  阅读(282)  评论(0)    收藏  举报

导航