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:
- i have set tipsy show manually: trigger:manual;
- i made variable equals falseuntil user clicks clickable items (divs , images)
- 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
Post a Comment