|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Aug 2003
Messaggi: 1145
|
Javascript
Cari amici di web avrei bisogno urgentemente di un javascript, ma non capendoci ancora gran che chiedo disperatamente: AIUTOOOOOOOOOOOOOOO
|
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Almeno scrivi cosa ti serve
|
|
|
|
|
|
#3 | |
|
Senior Member
Iscritto dal: Aug 2003
Messaggi: 1145
|
Quote:
|
|
|
|
|
|
|
#4 |
|
Senior Member
Iscritto dal: Aug 2003
Messaggi: 1145
|
Qualcuno mi aiuti.
|
|
|
|
|
|
#5 |
|
Senior Member
Iscritto dal: Aug 2003
Messaggi: 1145
|
per molti è una bischerata, ma per me NOOOOOOOOOOOOOOO. Aiutatemi
|
|
|
|
|
|
#6 |
|
Senior Member
Iscritto dal: Oct 2002
Città: Roma
Messaggi: 1502
|
Visto che non hai avuto risposta prova a postare qui:
http://forum.html.it/forum/forumdisp...p?s=&forumid=3
__________________
Sun Certified Java Programmer EUCIP Core Level Certified European Certification of Informatics Professionals |
|
|
|
|
|
#7 |
|
Member
Iscritto dal: Aug 2005
Messaggi: 97
|
puoi usare diversi metodi, dal javascript che ti scrive la pagina:
Codice:
<html>
<head>
<script language="javascript" >
function randomNumber()
{
var IntPage= "<table border=\"1\" width=\"100%\"><tr><td>"
var IntNumber = ""
for (ctr=1; ctr<=3; ctr++) {
if (ctr==1) {
IntPage= IntPage + Math.round( Math.random() * 9) + "</td>"}
else {IntPage = IntPage + "<td>" + Math.round(Math.random() * 9) + "</td>"}
}
IntPage=IntPage+ "</tr></table>" + "<table border=\"1\" width=\"100%\" id=\"table2\"><tr><td>"
for (ctt=1; ctt<=7; ctt++) {
if (ctr==1) {
IntPage= IntPage + Math.round( Math.random() * 9) + "</td>"}
else {IntPage = IntPage + "<td>" + Math.round(Math.random() * 9) + "</td>"}
}
IntPage=IntPage + "</tr></table>"
document.write(IntPage)
}
</script>
</head>
<body onLoad="randomNumber()">
</body>
</html>
alla funzione che genera un numero da 0 a 9, ripetuta nei punti dove ti serve Codice:
<html>
<head>
<script language="javascript" >
function randomNumber()
{
document.write(Math.round( Math.random() * 9));
}
</script>
</head>
<body> <table border="1" width="20%">
<tr>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
</tr>
<table border="1" width="20%">
<tr>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td>
<td><script>randomNumber();</script></td></tr>
</body>
</html>
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 20:56.


















