<script language="javascript">
var rowcode=0;
function myclick(id)
{
if (rowcode!=0){
document.getElementById(rowcode).style.background="";
rowcode=id;
document.getElementById(id).style.background="yellow";
}
}
</script>
<a onClick="ShowDiv('<?php $result=Select("select * from CourseTeacher where lessonID IN(select lessonID from Lesson where place IN(select place from Place where id= ))");
我不知道如何将rowcode的值设置为id?