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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    309
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    309
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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
    36,754
    Answers
    3462
    Vote Rating
    827
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi