⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 marchand_metal.tpl

📁 银河帝国源码(开源)很精彩的哦!!!!!!!!!!!!!!!!!!!!
💻 TPL
字号:
<script type="text/javascript" >
function calcul() {
	var Cristal = document.forms['marchand'].elements['cristal'].value;
	var Deuterium = document.forms['marchand'].elements['deut'].value;

	Cristal   = Cristal * {mod_ma_res_a};
	Deuterium = Deuterium * {mod_ma_res_b};

	var Metal = Cristal + Deuterium;
	document.getElementById("metal").innerHTML = Metal;

	if (isNaN(document.forms['marchand'].elements['cristal'].value)) {
		document.getElementById("metal").innerHTML = "{mod_ma_nbre}";
	}
	if (isNaN(document.forms['marchand'].elements['deut'].value)) {
		document.getElementById("metal").innerHTML = "{mod_ma_nbre}";
	}
}
</script>
<br>
<center>
<form id="marchand" action="marchand.php" method="post">
<input type="hidden" name="ress" value="metal">
<table width="569">
<tr>
	<td class="c" colspan="5"><b>{mod_ma_buton}</b></td>
</tr><tr>
	<th></th>
	<th></th>
	<th>{mod_ma_cours}</th>
</tr><tr>
	<th>{Metal}</th>
	<th><span id='metal'></span></th>
	<th>{mod_ma_res}</th>
</tr><tr>
	<th>{Crystal}</th>
	<th><input name="cristal" type="text" value="0" onkeyup="calcul()"/></th>
	<th>{mod_ma_res_a}</th>
</tr><tr>
	<th>{Deuterium}</th>
	<th><input name="deut" type="text" value="0" onkeyup="calcul()"/></th>
	<th>{mod_ma_res_b}</th>
</tr><tr>
	<th colspan="6"><input type="submit" value="{mod_ma_excha}" onclick="javascript:this.disabled=true;marchand.submit();"/></th>
</tr>
</form>
</table>
</center>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -