Tabel in html si generare cod

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

Locked
User avatar
KaponeGuard
Utilizator neserios (tepar)
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:

02 Jan 2016, 22:31

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
RoyalServer 2
User avatar
sTraToN
Membru, skill +1
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:

02 Jan 2016, 22:54

Ceea ce vrei tu se poate face doar in php....
Image

My name isn't Santa but you stain' my lap.
The Kalu
Fost administrator
Fost administrator
Posts: 13707
Joined: 09 Oct 2010, 12:39
Detinator Steam: Da
CS Status: In grajd!
SteamID: kalulord
Reputatie: Fost Administrator
Fost membru Club eXtreamCS (6 luni)
Nume anterior: Terra
Location: Romania, Ploiesti
Has thanked: 328 times
Been thanked: 646 times
Contact:

02 Jan 2016, 22:55

Nu stiu de ce tind sa cred ca el vrea formular si crede ca este tabel.
Image
User avatar
KaponeGuard
Utilizator neserios (tepar)
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:

02 Jan 2016, 22:59

Kommendante wrote:Nu stiu de ce tind sa cred ca el vrea formular si crede ca este tabel.
da dar doresc sa fie sub forma de tabel iar dupa ce dai enter/ok/submit sa iti genereze un numar de la 1-1000
User avatar
sergiu4995
Membru eXtream
Membru eXtream
Posts: 2052
Joined: 08 Oct 2011, 21:05
Detinator Steam: Da
Has thanked: 31 times
Been thanked: 17 times
Contact:

02 Jan 2016, 23:21

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
<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.
User avatar
KaponeGuard
Utilizator neserios (tepar)
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:

02 Jan 2016, 23:23

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>
poti sa faci sa fie pe <center><center> si cu background albastru ? si textul pe <b><b>
Locked

Return to “Discutii generale”

  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 424 guests