作者stevstev (like)
看板Programming
標題[問題] 請問如何在iframe中加入OnMouseover的功能???
時間Wed Feb 16 18:25:37 2011
我想要寫一個網頁程式
希望當滑鼠移到該iframe時 能自動將focus的外框移到其他的元件
<script language="javascript">
<!--
function test(){
location.hash = 'text1';
}
//-->
</script>
<iframe src="scroll.php" frameborder="0" onMouseOver="test()"></iframe>
不過執行的時候滑鼠移過去沒有反應!!
請問有哪位大大可以指點一下怎樣做會比較好??
補充:scroll.php是一支跑馬燈的程式
先感謝大家提供的意見!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.248.208.226
→ yauhh:你應該讓iframe的內容偵測mouse-over而不是218.160.212.238 02/16 22:29
→ yauhh:iframe本身.218.160.212.238 02/16 22:29