谁能告诉我这个网页中的计算器怎么转载到我的织梦网站中。
最好能步骤写出来
http://asktao.17173.com/zhuanti/jsq/renwu.html
从
到
的所有代码,复制到自己的网页文件中就可以了。
function change_value() { form1.point_hp.value = parseInt(form1.add_hp.value,10)+parseInt(form1.jiadian_hp.value,10)+parseInt(form1.level.value,10); form1.point_mp.value = parseInt(form1.add_mp.value,10)+parseInt(form1.jiadian_mp.value,10)+parseInt(form1.level.value,10); form1.point_ap.value = parseInt(form1.add_ap.value,10)+parseInt(form1.jiadian_ap.value,10)+parseInt(form1.level.value,10); form1.point_sp.value = parseInt(form1.add_sp.value,10)+parseInt(form1.jiadian_sp.value,10)+parseInt(form1.level.value,10); form1.un_fenpei.value = parseInt(form1.level.value,10)*4 - parseInt(form1.jiadian_hp.value,10) - parseInt(form1.jiadian_mp.value,10) - parseInt(form1.jiadian_ap.value,10) - parseInt(form1.jiadian_sp.value,10)-4; if (form1.level.value<60) form1.un_xiangxing.value = parseInt((form1.level.value-1)/2) - form1.jiadian_jin.value-form1.jiadian_mu.value-form1.jiadian_shui.value-form1.jiadian_huo.value-form1. jiadian_tu.value; else form1.un_xiangxing.value = parseInt(form1.level.value-30) - form1.jiadian_jin.value-form1.jiadian_mu.value-form1.jiadian_shui.value-form1.jiadian_huo.value-form1. jiadian_tu.value; form1.xiangxing_jin.value=parseInt(form1.jiadian_jin.value,10)+parseInt(form1.add_jin.value,10); form1.xiangxing_mu.value=parseInt(form1.jiadian_mu.value,10)+parseInt(form1.add_mu.value,10); form1.xiangxing_shui.value=parseInt(form1.jiadian_shui.value,10)+parseInt(form1.add_shui.value,10); form1.xiangxing_huo.value=parseInt(form1.jiadian_huo.value,10)+parseInt(form1.add_huo.value,10); form1.xiangxing_tu.value=parseInt(form1.jiadian_tu.value,10)+parseInt(form1.add_tu.value,10); if (form1.level.value>9) { form1.money_now.value=form1.level.value*form1.level.value*form1.level.value*0.0015+form1.level.value*form1.level.value*0.1+2; form1.money_bank.value=form1.level.value*form1.level.value*form1.level.value*0.0045+form1.level.value*form1.level.value*0.28+2; } else { form1.money_now.value=form1.level.value*form1.level.value*form1.level.value*0.0015+form1.level.value*form1.level.value*0.1+2; form1.money_bank.value="0"; } } function Calc() { var level = parseInt(form1.level.value,10); var un_fenpei = parseInt(form1.un_fenpei.value,10); var point_hp = parseInt(form1.point_hp.value,10); var point_mp = parseInt(form1.point_mp.value,10); var point_ap = parseInt(form1.point_ap.value,10); var point_sp = parseInt(form1.point_sp.value,10); var add_hp = parseInt(form1.add_hp.value,10); var add_mp = parseInt(form1.add_mp.value,10); var add_ap = parseInt(form1.add_ap.value,10); var add_sp = parseInt(form1.add_sp.value,10); var jiadian_hp = parseInt(form1.jiadian_hp.value,10); var jiadian_mp = parseInt(form1.jiadian_mp.value,10); var jiadian_ap = parseInt(form1.jiadian_ap.value,10); var jiadian_sp = parseInt(form1.jiadian_sp.value,10); var hp,mp,sp,dp,ap; var zhuangbei_hp = parseInt(form1.zhuangbei_hp.value,10); var zhuangbei_mp = parseInt(form1.zhuangbei_mp.value,10); var zhuangbei_ap = parseInt(form1.zhuangbei_ap.value,10); var zhuangbei_sp = parseInt(form1.zhuangbei_sp.value,10); var zhuangbei_dp = parseInt(form1.zhuangbei_dp.value,10); var jiadian_jin = parseInt(form1.jiadian_jin.value,10); var jiadian_mu = parseInt(form1.jiadian_mu.value,10); var jiadian_shui = parseInt(form1.jiadian_shui.value,10); var jiadian_huo = parseInt(form1.jiadian_huo.value,10); var jiadian_tu = parseInt(form1.jiadian_tu.value,10); var add_jin = parseInt(form1.add_jin.value,10); var add_mu = parseInt(form1.add_mu.value,10); var add_shui = parseInt(form1.add_shui.value,10); var add_huo = parseInt(form1.add_huo.value,10); var add_tu = parseInt(form1.add_tu.value,10); var xiangxing_jin = parseInt(form1.xiangxing_jin.value,10); var xiangxing_mu = parseInt(form1.xiangxing_mu.value,10); var xiangxing_shui = parseInt(form1.xiangxing_shui.value,10); var xiangxing_huo = parseInt(form1.xiangxing_huo.value,10); var xiangxing_tu = parseInt(form1.xiangxing_tu.value,10); var money_now=parseInt(form1.money_now.value,10); var money_bank=parseInt(form1.money_bank.value,10); point_hp=point_hp-level; point_mp=point_mp-level; point_ap=point_ap-level; point_sp=point_sp-level; hp= Math.round(0.645*level*parseInt(1.084*level+0.66276)+28.824*level+74.2808)+parseInt((level-1)/3.536+5)*point_hp+xiangxing_mu*(level+point_hp)/1.03; mp= 0.4070*level*parseInt(1.1823*level)+18.3623*level+63.5348+parseInt((level-1)/5.304+4)*point_mp; ap= 40 + (level+point_ap)*5 +0.476075*(level+point_ap)*xiangxing_tu; sp= 48 + (level+point_sp)*2 +0.02367*(level+point_sp)*xiangxing_huo; dp= 20 + (level+point_hp)*5 +0.214*(level+point_hp)*xiangxing_shui; form1.hp.value = parseInt(hp+zhuangbei_hp); form1.mp.value = parseInt(mp+zhuangbei_mp); form1.ap.value = parseInt(ap+zhuangbei_ap); form1.sp.value = parseInt(sp+zhuangbei_sp); form1.dp.value = parseInt(dp+zhuangbei_dp); }
他里面的两个js方法