私は学んでいて、検索しても解決策を見つけることができませんでした。
これは、別のアイテム (iframe など) のコンテンツに変更するためにアイテム (画像など) にカーソルを合わせる必要があるときに使用したものです。これはうまくいきました...
<html>
<head></head>
<body>
<div>
<img href="#" src="FirstImage.jpg" alt="Hover to reveal second Image"
onmouseover="IFRAME.location='SecondImage.jpg'"
onmouseout="IFRAME.location='text.html'"/>
</div>
<div>
<iframe name="IFRAME" src="text.html"></iframe>
</div>
</body>
</html>
しかし、2 番目のアイテムが別のフレームにある場合 (つまり、1 番目のアイテムが 1 つのフレームにあり、2 番目のアイテムが別のフレームにある場合)、どうすればよいですか? 別のフレームにある 'name="IFRAME"' 値を検出しないためです。
で実験してみました
onmouseover="parent.frames[1].IFRAME.location="SecondImage.jpg"
しかし、うまくいきませんでした。