javascript - User interaction on a page with tipsy -


is there way can trace user on page. want following thing: user opens page, if not click anywhere on page show tooltip (i'm using tipsy) guiding him parts clickable.

so far i've tried several stuffs:

  1. i have set tipsy show manually: trigger:manual;
  2. i made variable equals false until user clicks clickable items (divs , images)
  3. if variable false, show tooltip (tipsy).

but i'm missing because doesn't work. here code.

$(document).ready(function() {     var userclick = false;      function showtooltips() {         $(document).ready(function()) {             if(userclick === false)                 $('.nickname .pseudo-white').tipsy('show');     }      settimeout(showtooltips(), 5000); }); 

try getting rid of call $(document).ready, , pass function name settimeout rather calling ()

$(document).ready(function() {     var userclick = false;      function showtooltips() {             if(userclick === false)                 $('.nickname .pseudo-white').tipsy('show');     }      settimeout(showtooltips, 5000); }); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -