Results 1 to 21 of 21

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606

    ? JavaScript?

    ,
    / .

    , ( - -> / / , ...). "on select...", .

    / .

    .

  2. #2
    XaMaB's Avatar
    Join Date: Nov:2001
    Location:
    Posts: 20,387
    : XaMaB; . 0.42

    In God we Trust (all others must submit a X.509 certificate). , ()

  3. #3
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    .

    , - :
    ( ) + .

    : http://www.sc2hwbg.com/reg_form.php -> (11, 22 ) . .. (22) + 11 ().

  4. #4
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by MrShadow View Post
    .

    , - :
    ( ) + .

    : http://www.sc2hwbg.com/reg_form.php -> (11, 22 ) . .. (22) + 11 ().
    AJAX PHP .

  5. #5
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    Quote Originally Posted by z0ne View Post
    AJAX PHP .
    ( ). ?

  6. #6
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    . AJAX PHP , . :

    tournaments.php?type=$var (1 2 )

    php- 2 case-a , . , .

  7. #7
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    Quote Originally Posted by z0ne View Post
    . AJAX PHP , . :

    tournaments.php?type=$var (1 2 )

    php- 2 case-a , . , .

    ? , .



    , div (style = display: none) . ?


    ..

  8. #8
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  9. #9
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    Quote Originally Posted by BornToDrink View Post

    . . , - , .

  10. #10
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    zone, , ? AJAX / , . JS.
    Quote Originally Posted by MrShadow View Post
    , div (style = display: none) . ?
    , .
    - . "", CSS, JS .
    , -.
    - "", - JS, input , select-, AJAX ..


    , , jQuery , . , .
    ''? * *
    - !
    ...

  11. #11
    Registered User 's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 653

    :
    Code:
    div tournametns
       div tournamet
          tournament fields

    Code:
    $('.nav a').click(function() {
    
    $('.tournament').hide();
    //            .            :)
    $('.tournament').eq($('.nav a').index(this)).show();
    
    });
    , ajax . ajax, display:none ready :
    Code:
    $('.tournament:eq(0)').show();
    .

  12. #12
    Registered User 's Avatar
    Join Date: Feb:2006
    Location:
    Posts: 653
    . -. - . ..

  13. #13
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by View Post
    ..
    Code:
    function getElementsByClassName(className) 
    { 
        var array = []; 
        var regular = new RegExp("\\b" + className + "\\b"); 
        var tag = document.getElementsByTagName("*"); 
        for(var i = 0, j = tag.length; i < j; i++) 
        {
            if(regular.test(tag[i].className)) 
            {
                array.push(tag[i]); 
            }
            return array; 
         }
    }
    ?

  14. #14
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    id- ..

    :
    onClick = "funct(name1,name2)"

    name1 name2 id- 2 div- .

    :

    funcion funct(n1,n2) {

    var element1 = document.getElementById(n1);
    var element1 = document.getElementById(n2);

    ....}

    ?

  15. #15
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    " "?
    .

    Edit:
    , , vpTheKing, .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  16. #16
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    name1 name2 .
    ''? * *
    - !
    ...

  17. #17
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    , ....

    <select name=x>
    <option value=1 onSelect/onClick=...>

    onSelect/onClick . onChange <select>, - ...

    event <option> ( )?

  18. #18
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    - .
    onchange .
    this.value ( , ID_ ) . .
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  19. #19
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    Quote Originally Posted by BornToDrink View Post
    - .
    onchange .
    this.value ( , ID_ ) . .

    - ...


    .. - ... onchange

  20. #20
    hmm BornToDrink's Avatar
    Join Date: Aug:2005
    Location: .
    Posts: 11,573
    , ...


    5 , value- "input1", "input2" etc.
    onchange=funct(this.value);

    ( jQuery, ):
    Code:
    function funct (id)
        for (var i = 0; i < 5; i++)
        {
            if ('input'+i == id)
                $('#'+id).show();
            else
                $('#input'+i).hide();
        }
    }
    , :
    Code:
    var optionNum = $('#ID_nekvo option').length - 1; // -1    " " :D
    , , .. .
    /Hidden:
    Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
    .

  21. #21
    Registered User MrShadow's Avatar
    Join Date: Jul:2007
    Location:
    Posts: 2,606
    :

    Code:
    <select onChange="funct(this.options[this.selectedIndex].id)">
    <option value="x1" id="1v1"></option>
    <option value="x2" id="2v2"></option>
    .....
    
    
    function funct(var1) {
    	var elem1 = document.getElementById("opt1");
    	var elem2 = document.getElementById("opt2");
    
    	if(var1 == '1v1'){
    		elem1.style.display = "block";
    		if(elem2.style.display == "block"){elem2.style.display = "none";}
    	else
    	if(var1 == '2v2'){
    		elem2.style.display = "block";
    		if(elem1.style.display == "block"){elem1.style.display = "none";}
    }
    opt1 opt2 ID- DIV style="display: none".

    if "none", "none" ( - ).

    ..
    .2. JS PHP- ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |