新手 刚开始学js 有问题想请各位指教 谁能告诉我这段哪有问题?
<ul><li id="link" class="lie">
<a href="#">微博</a>
<ul id="ull">
<li>私信</li>
<li>评论</li>
<li>@我</li>
</ul>
</li>
</ul>
<script>
document.getElementById("link").onmousemove = show();
document.getElementById("link").onmouseout = hide();
function show(){
document.getElementById("ull").style.display = "block";
document.getElementById("ull").style.background = "red"
}
function hide(){
document.getElementById("ull").style.display = "none";
}
</script>