Results 1 to 21 of 21
Thread: ? JavaScript?
Hybrid View
-
23rd September 2010 15:13 #1
? JavaScript?
,
/ .
, ( - -> / / , ...). "on select...", .
/ .
.
-
23rd September 2010 15:26 #2: XaMaB; . 0.42
In God we Trust (all others must submit a X.509 certificate). , ()
-
23rd September 2010 15:54 #3
.
, - :
( ) + .
: http://www.sc2hwbg.com/reg_form.php -> (11, 22 ) . .. (22) + 11 ().
-
23rd September 2010 16:11 #4
-
23rd September 2010 16:17 #5
-
23rd September 2010 17:04 #6
. AJAX PHP , . :
tournaments.php?type=$var (1 2 )
php- 2 case-a , . , .
-
23rd September 2010 17:19 #7
-
23rd September 2010 17:54 #8
.
Javascript PHP, z0ne, , .
( ), JS.
jQuery, :
http://www.jensbits.com/2009/10/04/j...ples-with-php/
http://api.jquery.com/jQuery.post/Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
23rd September 2010 18:06 #9
-
23rd September 2010 19:37 #10
-
23rd September 2010 19:19 #11

:
Code:div tournametns div tournamet tournament fields
, ajax . ajax, display:none ready :Code:$('.nav a').click(function() { $('.tournament').hide(); // . :) $('.tournament').eq($('.nav a').index(this)).show(); });
.Code:$('.tournament:eq(0)').show();
-
24th September 2010 00:06 #12
-
24th September 2010 03:09 #13?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; } }
-
24th September 2010 14:09 #14
id- ..
:
onClick = "funct(name1,name2)"
name1 name2 id- 2 div- .
:
funcion funct(n1,n2) {
var element1 = document.getElementById(n1);
var element1 = document.getElementById(n2);
....}
?
-
24th September 2010 14:19 #15
" "?
.
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.
.
-
24th September 2010 14:19 #16
-
24th September 2010 14:41 #17
, ....
<select name=x>
<option value=1 onSelect/onClick=...>
onSelect/onClick . onChange <select>, - ...
event <option> ( )?
-
24th September 2010 15:22 #18
- .

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.
.
-
24th September 2010 15:54 #19
-
24th September 2010 16:15 #20
, ...

Hey, mother, I come bearing a gift. I'll give you a hint. It's in my diaper and it's not a toaster.
.
-
24th September 2010 17:37 #21
:
opt1 opt2 ID- DIV style="display: none".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";} }
if "none", "none" ( - ).
..
.2. JS PHP- ...




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in