HTML - What Html Code To Calculate Numbers?
I made my own local page and it's for a game's stats (Wins:Losses record), on which I have a fields with numbers. What code should I add if I want to make calculations like:
Let's I have I have a field for Wins: and a field for Losses:. On another place in the page I have Total Wins, Total Losses, Win % (win:losses ratio). I dont know how to make typeable fields, so I have to type the numbers manually in TXT format, to edit the HTML code. But still, even if I have to type the numbers for fields Wins: and Losses: I want the Total fields to automatically calculate so: Total Wins = Wins (whatever number I type in Wins it appears in Total Wins) Total Losses = Losses (whatever number I type in Losses it appears in Total Losses) Win% = Total Wins/((Total wins + Total losses)/100)) Say I type 12 wins and 5 losses in the first fields. Thus, when opening the page, the same numbers should show for Total Wins = 12 and Total Losses = 5 without me having to type them in TXT format for the 'Total' fields. Win% would be 12/((12+5)/100)) = 12/0.17 =~ 70% In other words, to clarify in HTML, there where Total Wins and Total Losses have some numbers to be typed, instead of me writing manually the numbers e.g 12 and 5, can I instead write these formulas and how should they look in HTML? Similar Tutorialsim not so familiar with html editing. i want to make a page (html) in my forum to calculate a formula. the user need to input only 1 value . the value is numerical type ( its from 1 to 50). Should be a submit button , so after the user click submit button, the value will be inserted in the formula , calculate it, then a popup box should appear and tell the answer. can someone show me an example of this? the formula will be something like (value + b) + value/c = x. the popup window should return the x ty hi i want to make some thing like this for example i have 100 pages how can i make this work i want this to happen it shows 9 or 10 numbers per page and after user goes to 9th page it will show more 5 numbers how can i make this any one?? that's how it will goes upto 100 page and i want First page and last page link too anyone can help me give me guide how can i make this???? I'm developing a website that contains a lot of legal statutes. I'm trying to keep to html lists rather than using tables, but have come unstuck with how to display custom numbers in an ordered list. The lists usually begin with (1), then (a) is the indent, then (i) is the next level. These are easy to handle with <ol type=1>, <ol type=a> and <ol type=i>. The next level has (aa), which I've managed with <li value=27> and so on. However, I'm not certain how to handle the following types: (4A) - in between the number (4) and (5) and random numbers, such as (aE), etc. With regard to numbers like (4A), they need to be in the same bracket and can't be displayed as (4)(A) - which is a different reference in the legislation. Any help in displaying custom numbers (even user defined - e.g. for this particular bullet point display "4A") would be great. Thanks in advance. My html problem keeps failling, with all my image codes.. shown for 10 errors which are all for the images what's wrong? Here is the 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" /> <!-- New Perspectives on HTML and XHTML 5th Edition Tutorial 2 Case 2 Fiddler Home Page Author: Date: 2-16-2011 Filename: home.htm Supporting files: fiddler.jpg --> <title>, ITSE 1411 Lab Project 2, Tutorial 2 Case 2, Due 02/23/2011</title> </head> <body> <div> <img src="fiddler.jpg" alt="Fiddler on the Roof" /> <hr /> <a href="home2.htm"><img src="home.jpg" alt="home" /></a> <a href="slide1txt.htm"<img src="start.jpg" alt="start" /></a> <a href="slide1txt.htm"<img src="back.jpg" alt="back" /></a> <a href="slide2txt.htm"<img src="forward.jpg" alt="forward" /></a> <a href="slide6txt.htm"<img src="end.jpg" alt="end" /></a> <br /> <a href="slide1txt.htm"<img src="thumb1.jpg" alt="slide1" style="border-width: 5" /></a> <a href="slide2txt.htm"<img src="thumb2.jpg" alt="slide2" style="border-width: 0" /></a> <a href="slide3txt.htm"<img src="thumb3.jpg" alt="slide3" style="border-width: 0" /></a> <a href="slide4txt.htm"<img src="thumb4.jpg" alt="slide4" style="border-width: 0" /></a> <a href="slide5txt.htm"<img src="thumb5.jpg" alt="slide5" style="border-width: 0" /></a> <a href="slide6txt.htm"<img src="thumb6.jpg" alt="slide6" style="border-width: 0" /></a> </div> <hr /> <div> <img src="slide1.jpg" alt="slide1" /> </div> <blockquote> <p><i>Do You Love Me?</i> sung by Deb Ingalls and Thomas Gates</p> </blockquote> </body> </html> Hello! I have a blog on blogger and i want to make a c++ tutorial.. But every time i type "<iostream>" on post, when i see it, it is only "iostream". How can i make a code like the "[code]" from BBcode to cancel the compiling from HTML? Thanx! Hello everybody, I'm new here. I'm redesigning my own website and came up with some tricky situation. I write HTML lessons and I want to put just the pure code in my posts, but they appear as a regular html document... How do I make the code to be shown just as text (code), like we do in the forum boards (code tags or whatever)? I have a website where I want to make a drop down menu that will bring you to different pages. It is a very basic, sort of old-fashioned website that relies entirely on html. What I'm trying to do is make a drop-down menu that will be used as navigation for a section of a website and I want to have it in each internally linked page in that section, but I'm going to be adding more pages to it over time so I want to be able to put the drop-down menu code in a separate text file and then substitute it into the pages that I make that the options in the menu link to and then just edit the code in the text file when I add another page so that I don't have to go back and edit the code every single individual page whenever I add a new one among them. Basically all I'm asking is how I can put html code in a text file and then substitute that code into an html page by referring to the file. Thanks in advance for any help. Dear Forum-goers, If I knew what to search for I would, but I don't know what this idea is called. I want to create a website with code that does the following: <body> (INSERT FROM OTHER HTML FILE: Page introduction) (INSERT FROM OTHER HTML FILE: Content) (INSERT FROM OTHER HTML FILE: Sidebar) </body> Is there a way to do this? If not, then okay. I've tried using <link />, which doesn't do the job. You'll see the line in question in blue font: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>This is the main page.</title> <link type="text/css" rel="stylesheet" href="journal.css" /> </head> <body> <link type="text/html" rel="content" href="tobelinked.html" /> </body> </html> Hi boys n gals, I would like to embed these social sites in my site, (delicious, facebook, diggs etc) , any one with such HTML codes in one piece? (excuse it if it sounds........) Looking forward to hearing from you Hi, I am new to custom tag help, I am working in Joomla. I have to bold a keyword in the content but it should not be displayed on the front end. I mean its more for Search Engines, I understood that its a custom code that I need to write for it. If some one has an idea about this please help me out Hey guys im new to html me and my friend have managed to get a website up and running only that we have a problem with the homepage code it's ok using firefox but when you use chrome or explorer it act's wierd: anyways : heres the website: http://viahacking.altervista.org could someone please fix it?? thanks Can somebody pls. help me HTML code below ? I simply want to change Font Size ? <text><![CDATA[Lorem ipsum dolor sit amet, <b>consectetur adipisici elit</b>, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. <font color="#CCFF33">Ut enim ad minim veniam</font>, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisici elit, sed eiusmod tempor incidunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquid ex ea commodi consequat. Quis aute iure reprehenderit in <b>voluptate velit esse</b> cillum dolore eu fugiat nulla pariatur. Cupiditat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.]]></text> The piece of code is embedded in XML file but i suspect that HTML concept applies here... Mave here is a code i made for one of my sponsers this one has 16 errors showing. dosnt like the affiliate code or anything else. please do not laugh at my crude work but i am learning. thanks again. so far i have been trying different options and keep making things worse </script><center> <a href="http://www.bikeberry.com/index.php?ref=2&cPath=30&affiliate_banner_id=1 "target="_blank"> <img src="http://motorbicycling.com/images/misc/bbb.gif"> </center> </a> take a loot at my template. i need help with the glitch. hover your mouse below the template need payment,about us etc. please help http://fortressht@lowpricehighdef.co...00Aaabbbb.html I am creating a project in Flash and it is calling a .txt file. I am reusing code from another source, but I can't figure out what the code is. The issue is that I need to create a glossary that involves terms using the & symbol. Because of how the code is set up the terms are cut off when I use the symbol for terms. I highlighted the issues in blue. &item23=LDP#Learning & Development Plans.& &item24=OL & D#Organization Learning "&" Development.& &num_items=35& &itemsfile_loaded=1& Hey im looking for a html code so I can hide my url links so nobody can see the url to the websites they are clicking. Thanks in advance Hello Im some what knew to HTML and im trying to make a Resume for a class, but Im having a little trouble. Im trying to center some headings in my table, but it doesn't seem to work. Also now the education part is next to the headings. <html> <head> <title>Resume - John</title> </head> <body style="background:#B45F04"> <p style="text-align: center;"><b><h2>Resume - John</h2></b></p> <br> <table border="0" width="600" cellpadding="45" cellspacing="45"> <p style="text-align: center;"> <tr> <TH ALIGN=Center Rowspan=2><p><a href="#Ed">Education</a></p></th> <TH ALIGN=Center Rowspan=2><p><a href="#Exp">Experience</a></p></th> <TH ALIGN=Center Rowspan=2><p><a href="#Tal">Talents</a></p></th> <TH ALIGN=Center Rowspan=2><p><a href="#Ref">References</a></p></th> </tr> <td><a name="Ed"><h3>Education</h3></a></td> <td>Table Cell</td> </tr> <tr> <td><a name="Exp"><h3>Experience</h3></a></td> <td>Table Cell</td> </tr> <tr> <td><a name="Tal"><h3>Talents</h3></a></td> <td>Table Cell</td> </tr> <tr> <td><a name="Ref"><h3>References</h3></a></td> <td>Table Cell</td> </tr> </table> <p style="font-family:verdana,arial,sans-serif;font-size:10px;"></p> </body> </html> The other day in class, I got this assignment: Identify and correct all of the HTML errors and the poor HTML style in the following HTML document: <html> <title>Name's Broken RIT Home Page</title> <style type="txt/css> body{ background-color: violent; h2{ color:yellow font-family:"Tahoma", sans-serif; } </style> <body> <h2Name's RIT Home Page</h2> <img src="koala baby pic.bmp" alt=Baby Koala /> <p>My introduction (or bio-poem)</p> </hr> <H3>Some of my favorite Web Sites:</H3> www.cocoadev.com<br> www.rit.edu<br /> images.google.com<br /> <h3>Some <strong>communication tools that I use include:</h3></strong> <strong>Smoke Signals</strong><br /> <em>Telepathy</em><br /> <br>Harsh Language</br> <p>Contact me: abc1234@rit.edu</b> <img src="me.jpg"></img> <html> </body> I don't know a single html! Could someone please help? Hello! Im new to html/css and need some help. This is my website: πολυόργανα. I want to set as backround a jpg image (1100px width) in the top of the white area. This is the code: body#bd { backround: none repeat scroll 0 0 #FFFFFF color: #333333; } Can anyone write the new HTML code for me please Thanks in advance |