详细说明
var pcon = document.getElementById("procontent").scrollHeight;
if(pcon > 360)
{
document.getElementById("procontent").className = "over";
document.write('
');
}
function sh(){
var pcon = document.getElementById("procontent");
var pconcl = pcon.className;
var shbutton = document.getElementById("shbutton");
if(pconcl == "over")
{
pcon.className = "show_over";
shbutton.value = "隐藏";
shbutton.className="h_over";
}else{
pcon.className = "over";
shbutton.value = "查看详情";
shbutton.className = "s_over";
}
}