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();
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744926774a4601484.html
评论列表(0条)