Page 1 of 1
HTML shit
Posted: Wed Oct 01, 2014 12:51 pm
by kirk
Who can do basic HTML?
I need a code that can calculate a basic probability equation when users enter two numbers.
EH? EH?
Re: HTML shit
Posted: Wed Oct 01, 2014 1:02 pm
by Beas
Re: HTML shit
Posted: Wed Oct 01, 2014 1:23 pm
by sevEN
i used to do a lot of HTML in my younger days as a website designer (not as a profession, just as a hobby). i can remember how to make basic tables, color the tables, make colored outlines around the table, change font settings, insert images, pretty basic stuff at this point. But what you are asking for does not sound like basic html. it sounds like a script, that usually are not written by hand unless you are experienced in writing scripts.
but the nice thing is i used to be able to search different websites that offered different types of scripts so that you can copy the open source and insert the scripts into your own coding. if you google HTML scripts, i am sure you can find a website that could possibly have that script on there.
Re: HTML shit
Posted: Wed Oct 01, 2014 1:56 pm
by wintehs
I used to have a pretty damn sweet myspace page back in the day. That's my only experience with HTML, but my God I had the most glorious straight up 90's page EVER.
Re: HTML shit
Posted: Wed Oct 01, 2014 2:09 pm
by kirk
It'd be simple equations, just basic algebra sort of stuff. But I need something where someone can enter two separate values in two separate boxes, click OK, and get a newly calculated value based on what they entered. I just need someone who knows how to write up algebraic equations in html, I guess?
sevEN wrote:i used to do a lot of HTML in my younger days as a website designer (not as a profession, just as a hobby). i can remember how to make basic tables, color the tables, make colored outlines around the table, change font settings, insert images, pretty basic stuff at this point. But what you are asking for does not sound like basic html. it sounds like a script, that usually are not written by hand unless you are experienced in writing scripts.
but the nice thing is i used to be able to search different websites that offered different types of scripts so that you can copy the open source and insert the scripts into your own coding. if you google HTML scripts, i am sure you can find a website that could possibly have that script on there.
I guess they seem like they'd be simple? It'd take a value the person entered, multiplies it by something else, multiplies that by something else, etc. I'm obviously not HTML savvy but I assumed something like that would be relatively simple?
I've found a site that does exactly what I'm looking for, but I don't know how to access the script like you're describing :[
Re: HTML shit
Posted: Wed Oct 01, 2014 2:33 pm
by dogfire
Maybe an easy way to do it in HTML5 but why not just use a little javascript?
That should get you started, have fun learning.
Code: Select all
<!DOCTYPE html>
<html>
<body>
First Val<input type="text" id="num1" name="First Val" ><br>
Second Val <input type="text" id="num2"name="Second Val" ><br>
<button type="button" onclick="calculate('num1','num2')">Calculate</button><br>
Result: <input type="text" id="result" name="result" >
<script>
function calculate(num1,num2)
{
//do something with the numbers
num1 = parseInt(document.getElementById("num1").value);
num2 = parseInt(document.getElementById("num2").value);
document.getElementById("result").value=num1+num2;
}
</script>
</body>
</html>
Re: HTML shit
Posted: Wed Oct 01, 2014 2:53 pm
by kirk
dogfire wrote:Maybe an easy way to do it in HTML5 but why not just use a little javascript?
That should get you started, have fun learning.
Code: Select all
<!DOCTYPE html>
<html>
<body>
First Val<input type="text" id="num1" name="First Val" ><br>
Second Val <input type="text" id="num2"name="Second Val" ><br>
<button type="button" onclick="calculate('num1','num2')">Calculate</button><br>
Result: <input type="text" id="result" name="result" >
<script>
function calculate(num1,num2)
{
//do something with the numbers
num1 = parseInt(document.getElementById("num1").value);
num2 = parseInt(document.getElementById("num2").value);
document.getElementById("result").value=num1+num2;
}
</script>
</body>
</html>
Want to just help me out instead since I don't really have time to learn? :]
Re: HTML shit
Posted: Wed Oct 01, 2014 8:01 pm
by knockout
wintehs wrote:I used to have a pretty damn sweet myspace page back in the day. That's my only experience with HTML, but my God I had the most glorious straight up 90's page EVER.
I demand a screenshot
Re: HTML shit
Posted: Fri Oct 03, 2014 1:06 pm
by believe
I can help you
but....
I don't give a shit!
Re: HTML shit
Posted: Fri Oct 03, 2014 1:27 pm
by Cage
believe wrote:I can help you
but....
I don't give a shit!
You could die today
and
no one would give a flying fuck
Re: HTML shit
Posted: Sat Oct 04, 2014 3:40 pm
by k4b00m
Hey! I've been learning php in school, so I can help you out. Send me a PM with some details and I'll see what I can do!
Re: HTML shit
Posted: Sat Oct 04, 2014 7:53 pm
by kirk
I figured it all out.
THANKS ALL.