Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
onLoad and then hide after 10 seconds
4th December, 04:16 (This post was last modified: 4th December 04:17 by dirtyx.)
Post: #1
onLoad and then hide after 10 seconds
Hi,

I am trying to get a tip to show up on page load and then hide after a certain amount of seconds, say 10 seconds.

Many thanks,

Justin
Find all posts by this user
Quote this message in a reply
4th December, 20:09
Post: #2
onLoad and then hide after 10 seconds
media,

Try using the onRender callback to setup a timer function, like so:

JS Code
$('selector').qtip({
   show: {
      ready: true // Show on document load
   },
   api: {
      onRender: function(){
         var self = this;
         setTimeout(function(){ self.hide(); }, 10000); // Hide after 10 seconds
      }
   }
});


Hope this helps!

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
5th December, 17:23
Post: #3
onLoad and then hide after 10 seconds
Hi Craig,

Many thanks.
Find all posts by this user
Quote this message in a reply
16th June, 17:02
Post: #4
RE: onLoad and then hide after 10 seconds
Thanks, I just want this.
But I have another question: If I want the tip show when document loads and mouse clicks, how can I do?
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Show on click, hide on unfocus ttomor 4 149 3rd May 14:39
Last Post: ttomor
  [Solved] Hovering over same tip location causes it to hide jaredf 1 280 22nd March 14:52
Last Post: Craig
  can't hide qtip in a “position: absolute;” div shdog 1 275 14th March 17:35
Last Post: Craig
  hide on unfocus in build 55 bradw2k 1 337 20th January 17:03
Last Post: Craig
  [Solved] Is there an easier way to show/hide tooltips dynamically? gloosemo 1 675 17th October 15:58
Last Post: Craig
  [Solved] Hide tooltip when clicked dabd 10 1,209 23rd August 18:55
Last Post: dabd
  [Solved] Getting QTip To Disappear After Three Seconds? theferrett 4 1,043 4th April 16:34
Last Post: theferrett
  Show/Hide according to dynamic content ? Lyreco 5 1,284 19th January 12:19
Last Post: Craig
  [Solved] Multiple Hide Events? svjard 1 922 18th January 14:10
Last Post: Craig
  [Solved] binding the show and hide to another element jenni-fur 1 643 14th January 18:06
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)