SP中页面调用脚本

<script type="text/javascript">
_spBodyOnLoadFunctionNames.push("hidefield");

function hidefield()
{
var input = document.getElementById('ctl00_m_g_4d50aef8_10a0_4226_b00b_aa3db4d458bf_ctl00_ctl02_ctl00_ctl01_ctl00_ctl00_ctl02_ctl00_ctl00_ctl04_ctl00_ctl00_TextField');
var tr = input.parentNode.parentNode.parentNode;
tr.style.display="none";

input = document.getElementById('ctl00$m$g_4d50aef8_10a0_4226_b00b_aa3db4d458bf$ctl00$ctl02$ctl00$ctl01$ctl00$ctl00$ctl03$ctl00$ctl00$ctl04$ctl00$ctl00$HiddenUserFieldValue');
tr = input.parentNode.parentNode.parentNode;
tr.style.display="none";

}
</script>

posted on 2011-02-11 10:54  catvi  阅读(304)  评论(0编辑  收藏  举报

导航