1、 <script type="text/javascript" language="javascript">
function css(id)
{
var testmm = document.getElementById(id);
testmm.className = "selected_menu";
}
</script>
2、<body onload="css('li1')">