qtip

Is it possible to show a qtip with a function call?

早过忘川 提交于 2019-12-10 18:42:21
问题 I am currently trying to create a text selection script so that people can mark a text and then let it being inserted into a form. Thus I want to show a popup with a link "send to form", but I am having problems creating a tooltip with qtip (which I am using everywhere on my site) from my script which finds out if a text has been marked or not (there shall not be a link if my script cannot copy anything). I am using this script for the selection detection: http://mark.koli.ch/2009/09/use

jQuery qTip: How to attach a single tooltip div to multiple target divs?

谁说胖子不能爱 提交于 2019-12-08 19:28:30
问题 The normal behavior for the jQuery qTip plugin is to create a new hidden div for every tooltip item assigned. Is there a way to tie a single hidden tooltip element to multiple targets, to avoid cluttering the DOM? Contrived Example: <div id="foo1"></div> <div id="foo2"></div> <script> $("#foo1,#foo2").qTip({"content":"test"}); </script> <!-- Creates two elements, rather than one: --> <div class="qtip" style="display:none;">test</div> <div class="qtip" style="display:none;">test</div> If qTip

How to make a qtip tooltip move with cursor

允我心安 提交于 2019-12-08 17:33:40
问题 i am using the js library qtip tooltip. I want to make the qtip tooltip move with my cursor as i hover over the hover row in a table. I know how to make my own tooltip move with my cursor but am struggling with qtip. Please explain the code it you answer. Thanks My html: <table> <div id="hoverdiv"></div> <tr class="hover" hovertext="Some text"> <td>Total Credits</td> <td><%= @total_credit %></td> </tr> </table> I can create a normal tooltip(without qtip js lib) to follow my cursor using the

qTip tooltip does not appear, jQuery

一世执手 提交于 2019-12-08 09:37:27
问题 I have a site that displays items, 12 items per page and I can paginate through the pages using jquery. On the same page I implemented a the tooltip feature with qTip. Hovering over the items some information appear. That works until I use the paginator to go to the next page. The pagination reloads the content. But it has the same structure as when I refresh the page. Here's my code: $(document).ready(function() { $(".cornerize").corner("5px"); $('a#verd').live('click', exSite); $("a.tp")

How to use tooltip javascript library(qtip.js) together with cytoscape.js

a 夏天 提交于 2019-12-08 07:02:46
问题 I want to use qtip together with cytoscape.js to dispaly tooltips in nodes on mouseover event in graph created with cytoscape.js. I have placed following code inside ready: function() as shown below: cy.on('mouseover','node',function (event) { var eid = $(this).data('id'); $(this).qtip({ overwrite: false, content: eid, position: { my: 'right center', at: 'left center', target: $(this) }, show: { event: event.type, ready: true }, hide: { fixed: true } }, event); }); But, there is no tooltip

qTip 2 and Images

◇◆丶佛笑我妖孽 提交于 2019-12-08 02:43:18
问题 I am using qTip 2 to display a larger image on hover and it semi works. The image shows but not the full width. How do I get it to show full width? Code: HTML <img src="img.jpg" usemap="#Map" class="center" style="width:900px;" border="0" /> <map name="Map" id="Map"> <area class="1" shape="rect" coords="4,3,225,150" /> </map> JS var $j = jQuery.noConflict(); $j('.1').qtip({ content: '<img src="img1.jpg" width="600" />', position: { my: 'left top', at: 'right top', target: $j('.1') }, style: {

how to delay() qtip() tooltip to be loaded

早过忘川 提交于 2019-12-07 23:01:39
问题 I Load this way: $('.selector').each(function(){ $(this).qtip({ content: { url: '/qtip.php?'+$(this).attr('rel')+' #'+$(this).attr('div'), text:'<center><img src="/images/loader.gif" alt="loading..." /></center>' }, show: { delay: 700, solo: true,effect: { length: 500 }}, hide: { fixed: true, delay: 200 }, position: { corner: { target: 'topRight', tooltip: 'left' } }, show: { // Show it on click solo: true // And hide all other tooltips }, style: { name: 'light', width: 730,border: { width: 4

jQuery dynamic qtip shows div, but gets slower and slower with every mouseover

雨燕双飞 提交于 2019-12-07 12:16:38
问题 I use jQuery qTip plugin to show divs for a mouseover link/img. I have wrote 2 options to use, but both are causing troubles. V1: the first version shows the tooltip, only the second time I move my mouse over the link. After repeating my mouse over the link the script seems to get slower and slower and after 6/7 times my browser is almost crashing... What is the problem here? V2: in my second version I try to use qTip the normal way, but is try to put the content of the related div into the

Modal qTip - hide when … mouseleave?

三世轮回 提交于 2019-12-06 13:39:15
问题 im using the modal window qTip. Everything works fin, but i was wondering if it is posible to hide the modal window on either when onMouseout or mouseleave... and how? this is my current setting: hide: { when: { event: 'unfocus' } }, Of course the unfocus only works when clicking outside. Any ideas? 回答1: You can try this too: hide: {when: {event:'mouseout unfocus'}, fixed: true, delay: 500} 回答2: hide: { when: { event: 'mouseout' } } 来源: https://stackoverflow.com/questions/2859321/modal-qtip

jQuery dynamic qtip shows div, but gets slower and slower with every mouseover

一曲冷凌霜 提交于 2019-12-05 18:39:24
I use jQuery qTip plugin to show divs for a mouseover link/img. I have wrote 2 options to use, but both are causing troubles. V1: the first version shows the tooltip, only the second time I move my mouse over the link. After repeating my mouse over the link the script seems to get slower and slower and after 6/7 times my browser is almost crashing... What is the problem here? V2: in my second version I try to use qTip the normal way, but is try to put the content of the related div into the qTip content, but that us not happening. Probably the qTip plugin does not accept functions inside the