1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
    koko2589 is on a distinguished road

      0  

    Exclamation Answered: Answered setInterval help

    Answered: Answered setInterval help


    i whant win to show and hide with setInterval

    i have this but i want it to repet show and hide
    tankyou
    Code:
    Ext.onReady(function()
     {
    var win = new Ext.Window({
       width:800,y:'20',  border:false, 
     height: 450,closeAction: 'hide',modal : 'true',id : 'changeMsg'
     
      });
     setTimeout(function() {win.show(Ext.getBody());}, 10000);
       
       
     setTimeout(function() {win.hide(Ext.getBody()); }, 20000);
     
     
    });
    my ext js site
    http://www.itoto4.com/

  2. This sounds like a very strange thing to want to do but isn't it just this?

    Code:
    var hidden = true;
    
    setInterval(function() {
        if (hidden) {
            win.show(Ext.getBody());
        }
        else {
            win.hide(Ext.getBody());
        }
    
        hidden = !hidden;
    }, 10000);
    You could use win.isHidden() instead of a hidden variable depending on how you want it to respond to user-initiated hiding.

  3. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,343
    Answers
    498
    Vote Rating
    249
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    This sounds like a very strange thing to want to do but isn't it just this?

    Code:
    var hidden = true;
    
    setInterval(function() {
        if (hidden) {
            win.show(Ext.getBody());
        }
        else {
            win.hide(Ext.getBody());
        }
    
        hidden = !hidden;
    }, 10000);
    You could use win.isHidden() instead of a hidden variable depending on how you want it to respond to user-initiated hiding.

  4. #3
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
    koko2589 is on a distinguished road

      0  

    Default


    Quote Originally Posted by skirtle View Post
    This sounds like a very strange thing to want to do but isn't it just this?

    Code:
    var hidden = true;
    
    setInterval(function() {
        if (hidden) {
            win.show(Ext.getBody());
        }
        else {
            win.hide(Ext.getBody());
        }
    
        hidden = !hidden;
    }, 10000);
    You could use win.isHidden() instead of a hidden variable depending on how you want it to respond to user-initiated hiding.
    i whant to use is to popup ads
    every10 sec win show for 1 sec and win hide. after 10 sec win show again
    my ext js site
    http://www.itoto4.com/

  5. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,343
    Answers
    498
    Vote Rating
    249
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    i whant to use is to popup ads
    every10 sec win show for 1 sec and win hide. after 10 sec win show again
    Sounds horrendous. In that case, the code might be something like this:

    Code:
    function show() {
        win.show();
        setTimeout(hide, 1000);
    }
    
    function hide() {
        win.hide();
        setTimeout(show, 10000);
    }
    
    hide();

  6. #5
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
    koko2589 is on a distinguished road

      0  

    Default


    tankyou its work
    you are the king
    my ext js site
    http://www.itoto4.com/

  7. #6
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
    koko2589 is on a distinguished road

      0  

    Default


    my site is live sport streaming so thats what i whant
    http://www.tvonsport.com/justin1/cha...e.html?monimoo
    my ext js site
    http://www.itoto4.com/

  8. #7
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,731
    Answers
    3362
    Vote Rating
    754
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    TaskRunner FTW!
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar