문제

I am developing web application. In that i want to open one popup using thickbox after 5 seconds when user comes to entry page.

Can any one give some idea how to do this?

도움이 되었습니까?

해결책

You can use the setTimeout() from javascript with the command from the thickbox, something like:

// when dom is ready
$(document).ready(function() {
      // set a timer thats run 5sec
     setTimeout(function(){    
      // open the pop
      var me = $('#ElementToOpen');
      var t = "title"
      var a = "openurl";
      var g = false;
      tb_show(t,a,g);    
    },5000);
});
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top