Scrooge McDuck |
Voir le profil public |
Trouver plus de messages par Scrooge McDuck |
Aller à la page... |
Site internet perso
Suivre Répondre |
|
Partager | Rechercher |
Graveen*Savage |
Voir le profil public |
Trouver plus de messages par Graveen*Savage |
Scrooge McDuck |
Voir le profil public |
Trouver plus de messages par Scrooge McDuck |
Graveen*Savage |
Voir le profil public |
Trouver plus de messages par Graveen*Savage |
|
Bon merci pour les infos, je vais essayer d'être moins hermétique à tout ça et voir si je trouve mon bonheur
|
22/11/2014, 22h52 |
|
Scrooge McDuck |
Voir le profil public |
Trouver plus de messages par Scrooge McDuck |
|
Le copier coller fonctionne aussi.
(Click gauche souris et afficher le code source de la page) et ensuite tu peut modifier a ta sauce. exemple = Molvik Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Molvik Armor Bonus Level Calculator</title> <script type="text/javascript"> // x different mod types. Drop down box will have a label and a ref to one of these mod types, and then a box next to it will allow input of value. // 4 sc drop downs and then a special drop down for bonuses function numOrdD(a, b){ return (b-a); } var scDrop=new Array( {label: "none",type:0}, {label:"Stat",type:1}, {label:"Resist",type:2}, {label:"Skill",type:4}, {label:"Hits",type:5}, {label:"Power points",type:2}) var bonusDrop=new Array( {label:"none",type:0}, {label:"% Speed/Damage/Effect Bonuses",type:3}, {label:"+Skill bonuses",type:4}, {label: "Stat",type:1}, {label: "Stat cap",type:3}, {label: "AF",type:6}, {label: "Hits",type:5}, {label: "Hits Cap",type:5}, {label: "Power Pool",type:3}) function buildForm(){ var container=document.getElementById("formArea"); var i; var z; var thisSelect; var thisOpt; var thisType; var thisLabel; var br; for (i=1;i<=4;i++){ container.innerHTML+="Slot "+i+" "; thisSelect=document.createElement("select"); thisSelect.setAttribute("id","slot_"+i); z=0; for (z=0;z<scDrop.length;z++){ thisOpt=document.createElement("option"); thisLabel=scDrop[z].label; thisType=scDrop[z].type; thisOpt.innerHTML=thisLabel; thisOpt.setAttribute("value",thisType); thisSelect.appendChild(thisOpt); } container.appendChild(thisSelect); valBox=document.createElement("input"); valBox.setAttribute("id","val_"+i); container.appendChild(valBox); br=document.createElement("br"); container.appendChild(br); } container.innerHTML+="Bonus Slot: "; thisSelect=document.createElement("select"); thisSelect.setAttribute("id","slot_bonus"); for (z=0;z<bonusDrop.length;z++){ thisOpt=document.createElement("option"); thisLabel=bonusDrop[z].label; thisType=bonusDrop[z].type; thisOpt.innerHTML=thisLabel; thisOpt.setAttribute("value",thisType); thisSelect.appendChild(thisOpt); } container.appendChild(thisSelect); valBox=document.createElement("input"); valBox.setAttribute("id","val_bonus"); container.appendChild(valBox); br=document.createElement("br"); container.appendChild(br); var calcButton=document.createElement("input"); calcButton.setAttribute("type","button"); calcButton.setAttribute("value","Calculate"); calcButton.onclick=calcBL; container.appendChild(calcButton); } function calcBL(){ var vals=new Array(); var h; var type; var val var modVal; for (h=1;h<=5;h++){ if (h==5){ type=document.getElementById("slot_bonus").value; val=document.getElementById("val_bonus").value; } else { type=document.getElementById("slot_"+h).value; val=document.getElementById("val_"+h).value; } if (type==0){ modVal=0; } else if (type==1){ modVal=Math.round(parseInt(val)/1.5); } else if (type==2){ modVal=(parseInt(val)-1)*2; } else if (type==3){ modVal=parseInt(val)*2; } else if (type==4){ modVal=(parseInt(val)-1)*5; } else if (type==5){ modVal=Math.round((parseInt(val)/4)-0.75); } else if (type==6){ modVal=parseInt(val); } //alert(modVal); vals.push(modVal); } vals.sort(numOrdD); var i; var thisValue; var runningTotal=0; var endValue; for (i=0;i<vals.length;i++){ thisValue=vals[i]; if (i==0){ endValue=thisValue*2; } else { endValue=thisValue; } runningTotal=runningTotal+endValue; } var final=Math.floor(runningTotal/2); document.getElementById("resultArea").innerHTML=final; } </script> </head> <body onload="buildForm()"> <h1>Molvik Armor Bonus Level Calculator</h1><br /> <div id="formArea"></div><br /><br /> <h1>Result: <div id="resultArea"></div></h1> </body> </html> Avais fait sa http://lesnono.chez-alice.fr/ époque Tiscali "1999" le site a perdue les pages mais l'index toujours la. Dernière modification par Vous ; 24/11/2014 à 15h35. |
23/11/2014, 08h41 |
|
Suivre Répondre |
Connectés sur ce fil1 connecté (0 membre et 1 invité)
Afficher la liste détaillée des connectés
|