JsFiddle上的鼠标事件不起作用? [英] Mouse Events on JsFiddle not working?

查看:56
本文介绍了JsFiddle上的鼠标事件不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里摆弄着小提琴,但是我不明白为什么它没有在'onmouseout'事件上调用我的函数. http://jsfiddle.net/foreyez/Xf6LW/

I've got my fiddle here, but I can't understand why it's not calling my function on the 'onmouseout' event. http://jsfiddle.net/foreyez/Xf6LW/

有什么想法吗?

推荐答案

工作正常,您只需要将函数放在文档的头部(或元素位于DOM中之后的主体)中即可.

Works fine, you just needed to put the function in the head (or body after the element is in the DOM) of the document.

jsFiddle示例

jsFiddle example

这篇关于JsFiddle上的鼠标事件不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆