admin管理员组文章数量:1410674
I'm working on this project which requires this feature. When I hover over an image, it should open a small box next to it (like tooltip) and load a link there (probably an iFrame).
<script>
$(function() {
$( document ).tooltip();
});
</script
I tried to do this via tooltip (tried manipulating the tolltip so that it could open a small box and load an iFrame), but that didn't work as well. Due to my limited knowledge in JavaScript/ jQuery. I couldn't find any viable solution.
What should I do to make it work like require ?
Any suggestions are appreciated.
I'm working on this project which requires this feature. When I hover over an image, it should open a small box next to it (like tooltip) and load a link there (probably an iFrame).
<script>
$(function() {
$( document ).tooltip();
});
</script
I tried to do this via tooltip (tried manipulating the tolltip so that it could open a small box and load an iFrame), but that didn't work as well. Due to my limited knowledge in JavaScript/ jQuery. I couldn't find any viable solution.
What should I do to make it work like require ?
Any suggestions are appreciated.
Share Improve this question asked Apr 2, 2014 at 17:32 NetStackNetStack 2082 gold badges3 silver badges11 bronze badges1 Answer
Reset to default 3you could do something like this
Demo
the html:
<div id="hoverMe">Hover over here</div>
<iframe id="tooltip" src="http://jsfiddle"></iframe>
the jQuery:
$('#hoverMe').hover(function () {
$('#tooltip').fadeIn();
}, function () {
$('#tooltip').fadeOut();
});
本文标签: javascriptOpening a popup with iFrame on mouseoverStack Overflow
版权声明:本文标题:javascript - Opening a popup with iFrame on mouseover - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744926773a2632646.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论