作者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
1F:→ yauhh:你应该让iframe的内容侦测mouse-over而不是218.160.212.238 02/16 22:29
2F:→ yauhh:iframe本身.218.160.212.238 02/16 22:29