admin管理员组文章数量:1023025
I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div.
My code is:
$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div.
My code is:
$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
Share
Improve this question
edited Jul 21, 2011 at 9:13
pimvdb
155k80 gold badges311 silver badges356 bronze badges
asked Jul 21, 2011 at 9:11
user844589user844589
1
- 2 This works for me, what's the problem? – marto Commented Jul 21, 2011 at 9:18
1 Answer
Reset to default 4The body will not always have its full potential height if the contents fit in a lower height.
You could use $('html').mouseover
instead: http://jsfiddle/mPdd7/.
I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div.
My code is:
$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
I need to whole body mouseover function. When I enter some other page, some of my content will append the particular div.
My code is:
$('body').mouseover(function() {
$('#text').append('<div>New content</div>');
});
Share
Improve this question
edited Jul 21, 2011 at 9:13
pimvdb
155k80 gold badges311 silver badges356 bronze badges
asked Jul 21, 2011 at 9:11
user844589user844589
1
- 2 This works for me, what's the problem? – marto Commented Jul 21, 2011 at 9:18
1 Answer
Reset to default 4The body will not always have its full potential height if the contents fit in a lower height.
You could use $('html').mouseover
instead: http://jsfiddle/mPdd7/.
本文标签: javascriptNeed whole body tag mouseover functionStack Overflow
版权声明:本文标题:javascript - Need whole body tag mouseover function - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745572002a2156789.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论