salut doresc un tabel html cu urmatoarele:nume,link intrebare,varsta,y!m
si cu butonul ok care sa iti genereze un cod (random)
ofer un server cs 1.6 16 sloturi by gazduirejocuri (disponibil pana pe 16/1/2016
Tabel in html si generare cod
Moderators: Moderatori ajutatori, Moderatori
- KaponeGuard
- Utilizator neserios (tepar)
- Posts: 1376
- Joined: 27 Aug 2015, 20:40
- Detinator Steam: Da
- CS Status: Business
- Detinator server CS: NU
- SteamID: djGreNN
- Reputatie: Utilizator neserios ( tepar )
- Fond eXtream: 0
- Location: El Salvador
- Contact:
- sTraToN
- Membru, skill +1
- Posts: 438
- Joined: 14 Nov 2015, 14:49
- Detinator Steam: Da
- CS Status: Road to Nova II
- Detinator server CS: Nu
- SteamID: Privat
- Fond eXtream: 0
- Location: Dabuleni
- Contact:
Ceea ce vrei tu se poate face doar in php....
My name isn't Santa but you stain' my lap.
- KaponeGuard
- Utilizator neserios (tepar)
- Posts: 1376
- Joined: 27 Aug 2015, 20:40
- Detinator Steam: Da
- CS Status: Business
- Detinator server CS: NU
- SteamID: djGreNN
- Reputatie: Utilizator neserios ( tepar )
- Fond eXtream: 0
- Location: El Salvador
- Contact:
da dar doresc sa fie sub forma de tabel iar dupa ce dai enter/ok/submit sa iti genereze un numar de la 1-1000Kommendante wrote:Nu stiu de ce tind sa cred ca el vrea formular si crede ca este tabel.
- sergiu4995
- Membru eXtream
- Posts: 2052
- Joined: 08 Oct 2011, 21:05
- Detinator Steam: Da
- Has thanked: 31 times
- Been thanked: 17 times
- Contact:
Html si javascript functie random de la 1 la 1000
acolo la afisare text nu merge cu input ,nu stiu de ce,merge doar put/output
de aici ce ai zis in post sper sa te descurci
acolo la afisare text nu merge cu input ,nu stiu de ce,merge doar put/output
de aici ce ai zis in post sper sa te descurci
<html>
<head>
</head>
<body>
<table border=1>
<tr>
<td>Nume</td><td>Link</td><td>varsta</td><td>etc</td>
</tr>
<tr>
<td>gheorghe</td><td>http</td><td><put id="demo" type="text"/></td>
<td><input type="button" value="vezi aici" onclick="myFunction(document.getElementById('demo').value)"/></td>
</tr>
</table>
<script>
function myFunction() {
var x = document.getElementById('demo')
x.innerHTML = Math.floor((Math.random() * 1000) + 1);
}
</script>
</body>
</html>
Last edited by sergiu4995 on 02 Jan 2016, 23:23, edited 1 time in total.
- KaponeGuard
- Utilizator neserios (tepar)
- Posts: 1376
- Joined: 27 Aug 2015, 20:40
- Detinator Steam: Da
- CS Status: Business
- Detinator server CS: NU
- SteamID: djGreNN
- Reputatie: Utilizator neserios ( tepar )
- Fond eXtream: 0
- Location: El Salvador
- Contact:
poti sa faci sa fie pe <center><center> si cu background albastru ? si textul pe <b><b>sergiu4995 wrote:<html>
<head>
</head>
<body>
<table border=1>
<tr>
<td>Nume</td><td>Link</td><td>varsta</td><td>etc</td>
</tr>
<tr>
<td>gheorghe</td><td>http</td><td><put id="demo" type="text"/></td>
<td><input type="button" value="vezi aici" onclick="myFunction(document.getElementById('demo').value)"/></td>
</tr>
</table>
<script>
function myFunction() {
var x = document.getElementById('demo')
x.innerHTML = Math.floor((Math.random() * 1000) + 1);
}
</script>
</body>
</html>