我想知道每个框架如何显示不同的消息。所有框架都显示MSG 1。我希望当您将鼠标悬停在显示不同消息的单词上时,每个框架都打开。
感谢和抱歉英语不好。
编码:
<html>
<head>
<title>Float Frames</title>
<script>
function showLayer(obj){
var div = document.getElementById(obj).style;
div.display = "block";
}
function hideLayer(obj){
var div = document.getElementById(obj).style;
div.display = "none";
}
</script>
<style>
#divLayer{*css script*;}
</style>
</head>
<body name="nm_body">
<div>
<a href="LINK" onmouseover="showLayer('divLayer');" onmouseout="hideLayer('divLayer');">TEXT1</a>
<div>
<div id="divLayer" name="nm_divLayer">
MSG 1
</div>
<div>
<a href="LINK" onmouseover="showLayer('divLayer');" onmouseout="hideLayer('divLayer');">TEXT2</a>
<div>
<div id="divLayer" name="nm_divLayer">
MSG 2
</div>
</body>
</html>