cry of war Posted July 13, 2007 Share Posted July 13, 2007 I have a sequence of 4 option menus i.e. <select> and 4 text area boxes. I am trying to get the code to genrate a funticon and put it back into my web site. I have it set so when something changes in either the text area or option menu it is suppost to update the value in a different area So far i have this for the Java script and this for the function alchwighttotal() { alchpw1=((alchiw1)*(port1)+(alchiw2)*(port2)+(alchiw3)*(port3)+(alchiw4)*(port4))/((sqrt(alch)/10)+1); document.getElementById('alchiw').innerHTML = alchpw1[val]; } And this is a small section of my HTML page <body> <script type="text/javascript" src="pext.js"> </script> <br> Ingredent name:<span id="alchna"></span> <br> Distcription:<span id="alchis"></span> <br> Ingredent Effect:<span id="alchie"></span> <br> Whight of Ingredent:<span id="alchiw"></span> <br> Status of potion:<span id="alchps"></span> <br> Whight of potion:<span id="alchpw"></span> <br> <FORM action="http://somesite.com/prog/someprog" method="post1"> <SELECT onchange="show_alchna1(this.value); show_alchis1(this.value); show_alchie1(this.value); show_alchiw1(this.value); show_alchps1(this.value);" name="ALCHEMY1"> I would put the whole file in here but its 6000+ lines long for the JS alone and another 1500 or so for the HTML Page Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.