You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.0 KiB
86 lines
2.0 KiB
/*
|
|
*
|
|
* @copyright (c) 2010 animegame.eu
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
|
*
|
|
*/
|
|
|
|
|
|
<!--
|
|
|
|
var aktiv;
|
|
var anzahl;
|
|
|
|
if(!anzahl) { anzahl = 0; }
|
|
function arenaname()
|
|
{
|
|
|
|
document.forms[0].elements['submit'].disabled=false;
|
|
}
|
|
|
|
function button_plus(feld,max,schritt,dex)
|
|
{
|
|
document.forms[0].elements['submit'].disabled=false;
|
|
if(document.forms[0].elements[feld].value<max)
|
|
{
|
|
|
|
nummer=parseInt(document.forms[0].elements[feld].value)+1;
|
|
document.forms[0].elements[feld].value=nummer;
|
|
|
|
if(dex==3) {
|
|
golds=parseInt(document.forms[0].elements["geld"].value)-500;
|
|
document.forms[0].elements["geld"].value=golds;
|
|
}
|
|
else{
|
|
anzahl++;
|
|
gold=parseInt(document.forms[0].elements["geld"].value)-((schritt+anzahl)*(dex*10));
|
|
document.forms[0].elements["geld"].value=gold;
|
|
}
|
|
|
|
if(document.forms[0].elements['geld'].value<=0) {
|
|
document.forms[0].elements['submit'].disabled=true;
|
|
}
|
|
}
|
|
}
|
|
|
|
function button_minus(feld,min,schritt,dex)
|
|
{
|
|
document.forms[0].elements['submit'].disabled=false;
|
|
if(document.forms[0].elements[feld].value>min)
|
|
{
|
|
nummer=parseInt(document.forms[0].elements[feld].value)-1;
|
|
document.forms[0].elements[feld].value=nummer;
|
|
|
|
if(dex == 3) {
|
|
golds=parseInt(document.forms[0].elements["geld"].value)+500;
|
|
document.forms[0].elements["geld"].value=golds;
|
|
}
|
|
else{
|
|
gold=parseInt(document.forms[0].elements["geld"].value)+((schritt+anzahl)*(dex*10));
|
|
document.forms[0].elements["geld"].value=gold;
|
|
anzahl--;
|
|
}
|
|
if(document.forms[0].elements['geld'].value<=0) {
|
|
document.forms[0].elements['submit'].disabled=true;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function start_plus(feld,max,schritt,dex)
|
|
{
|
|
aktiv = setInterval("button_plus('"+feld+"',"+max+","+schritt+", "+dex+")",50);
|
|
}
|
|
|
|
function start_minus(feld,min,schritt,dex)
|
|
{
|
|
aktiv = setInterval("button_minus('"+feld+"',"+min+","+schritt+", "+dex+")",50);
|
|
}
|
|
|
|
function stopp()
|
|
{
|
|
clearInterval(aktiv);
|
|
}
|
|
-->
|