
mam takie generator
- Kod: Zaznacz wszystko
<center> <script type="text/javascript">
function doStuff()
{
var txt = "";
document.getElementById("gen").value = "";
if (document.getElementById("title").value != ""){
txt += "[center][size=25][b]";
txt += document.getElementById("title").value;
txt += "[/b][/size][/center]\n\n\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("boxart").value != ""){
txt = "\[center][img]";
txt += document.getElementById("boxart").value;
txt += "[/img][/center]\n\n\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("opis").value != ""){
txt = "";
txt += "\n";
txt += "[center][quote][b][color=white]";
txt += document.getElementById("opis").value;
txt += "[/b][/color][/quote][/center]\n\n\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("sshot1").value != ""){
txt = "";
txt += "\n";
txt += "[center][img]";
txt += document.getElementById("sshot1").value;
txt += "[/img][/center]\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("sshot2").value != ""){
txt = "";
txt += "[center][img]";
txt += document.getElementById("sshot2").value;
txt += "[/img][/center]\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("sshot3").value != ""){
txt = "";
txt += "[center][img]";
txt += document.getElementById("sshot3").value;
txt += "[/img][/center]\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("sshot4").value != ""){
txt = "";
txt += "[center][img]";
txt += document.getElementById("sshot4").value;
txt += "[/img][/center]\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("sshot5").value != ""){
txt = "";
txt += "[center][img]";
txt += document.getElementById("sshot5").value;
txt += "[/img][/center]\n";
document.getElementById("gen").value += txt;
}
document.getElementById("gen").value += "\n\n\n";
if (document.getElementById("downlinks").value != ""){
txt = "";
txt += "\n";
txt += "[hide]";
txt += document.getElementById("downlinks").value;
txt += "[/hide]\n\n\n";
document.getElementById("gen").value += txt;
}
if (document.getElementById("haslo").value != ""){
txt = "";
txt += "Hasło:\n";
txt += "[code]";
txt += document.getElementById("haslo").value;
txt += "[/code]\n\n\n";
document.getElementById("gen").value += txt;
}
}
</script>
<table border="1">
<tbody><tr>
<td><font color="red"><font color="#87beda"><b>Tytuł:</b></font></font></td>
<td><input id="title" value="" maxlength="60" size="65" type="text" /></td>
</tr><tr>
<td><font color="red"><font color="#87beda"><b>Okładka:</b></font></font></td>
<td><input id="boxart" value="" maxlength="200" size="65" type="text" /></td>
</tr><tr>
<td><font color="#87beda"><b>Info:</b></font><br /><br /><font size="1" color="#87beda">Wymagania Sprzętowe, <br /> Jakość Video <br /> Jakość Audio <br /> .itp</font></td>
<td><textarea id="info" cols="49" rows="10"></textarea></td>
</tr><tr>
<td><font color="#87beda"><b>Opis:</b></font><br /><br /><font size="1" color="#87beda">Ogólny opis.</font></td>
<td><textarea id="opis" cols="49" rows="10"></textarea></td>
</tr><tr>
<td><font color="#87beda"><b>Zdjęcia / Screeny:</b></font><br /><br /><font size="1" color="#87beda">Podaj linki do <br /> screen'ow . <br /><br />Końcówka linka <br /> powinna zawierać rozszerzenie <br />
".jpg" ".gif" ".png" ".bmp"</font></td>
<td><input id="sshot1" maxlength="200" size="65" type="text" /><br />
<input id="sshot2" maxlength="200" size="65" type="text" /><br />
<input id="sshot3" maxlength="200" size="65" type="text" /><br />
<input id="sshot4" maxlength="200" size="65" type="text" /><br />
<input id="sshot5" maxlength="200" size="65" type="text" /><br /></td>
</tr><tr>
<td><font color="#87beda"><b>Linki:</b></font><br /><br /><font size="1" color="#87beda">Linki do plików</font></td>
<td><textarea id="downlinks" cols="49" rows="10"></textarea></td>
</tr>
<tr><td><font color="#87beda"><b>Hasło:</b></font><br /><br /><font size="1" color="#87beda">Hasło do archiwum pliku</font></td>
<td><input id="haslo" value="" maxlength="60" size="65" type="text" /></td>
</tr>
<tr>
<td><font color="#87beda"><b>Treść:</b></font></td><td colspan="2"><input onclick="doStuff()" value="Generuj" type="button" /><input type="reset" /></td>
</tr><tr>
<td colspan="2"><textarea id="gen" cols="62" rows="10">Przy dodawaniu news'a, wygenerowany kod skopiuj do pola "pełna treść"</textarea><br />
</tr>
</tbody></table>
</form>
</center>
</td>
</tr>
</table></td>
</center>
A chciał bym dodać to http://www.kurshtml.edu.pl/html/pole_opcji,formularze.html żeby były opcje do wyboru np: android, symbian, java i żeby po wybraniu np: android generator to wygenerował
Próbowałem zrobić to samemu ale mi się nie udało
