You can use the below code and have a calculator on your website. The code is a JavaScript and you can just put it on your Html.
The code is:
<FORM name=”Keypad” action=”">
<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<TR>
<TD colspan=3 align=middle>
<input name=”ReadOut” type=”Text” size=24 value=”0″ width=100%>
</TD>
<TD
</TD>
<TD>
<input name=”btnClear” type=”Button” value=” C ” onclick=”Clear()”>
</TD>
<TD><input name=”btnClearEntry” type=”Button” value=” CE ” onclick=”ClearEntry()”>
</TD>
</TR>
<TR>
<TD>
<input name=”btnSeven” type=”Button” value=” 7 ” onclick=”NumPressed(7)”>
</TD>
<TD>
<input name=”btnEight” type=”Button” value=” 8 ” onclick=”NumPressed(8)”>
</TD>
<TD>
<input name=”btnNine” type=”Button” value=” 9 ” onclick=”NumPressed(9)”>
</TD>
<TD>
</TD>
<TD>
<input name=”btnNeg” type=”Button” value=” +/- ” onclick=”Neg()”>
</TD>
<TD>
<input name=”btnPercent” type=”Button” value=” % ” onclick=”Percent()”>
</TD>
</TR>
<TR>
<TD>
<input name=”btnFour” type=”Button” value=” 4 ” onclick=”NumPressed(4)”>
</TD>
<TD>
<input name=”btnFive” type=”Button” value=” 5 ” onclick=”NumPressed(5)”>
</TD>
<TD>
<input name=”btnSix” type=”Button” value=” 6 ” onclick=”NumPressed(6)”>
</TD>
<TD>
</TD>
<TD align=middle><input name=”btnPlus” type=”Button” value=” + ” onclick=”Operation(‘+’)”>
</TD>
<TD align=middle><input name=”btnMinus” type=”Button” value=” - ” onclick=”Operation(‘-’)”>
</TD>
</TR>
<TR>
<TD>
<input name=”btnOne” type=”Button” value=” 1 ” onclick=”NumPressed(1)”>
</TD>
<TD>
<input name=”btnTwo” type=”Button” value=” 2 ” onclick=”NumPressed(2)”>
</TD>
<TD>
<input name=”btnThree” type=”Button” value=” 3 ” onclick=”NumPressed(3)”>
</TD>
<TD>
</TD>
<TD align=middle><input name=”btnMultiply” type=”Button” value=” * ” onclick=”Operation(‘*’)”>
</TD>
<TD align=middle><input name=”btnDivide” type=”Button” value=” / ” onclick=”Operation(‘/’)”>
</TD>
</TR>
<TR>
<TD>
<input name=”btnZero” type=”Button” value=” 0 ” onclick=”NumPressed(0)”>
</TD>
<TD>
<input name=”btnDecimal” type=”Button” value=” . ” onclick=”Decimal()”>
</TD>
<TD colspan=3>
</TD>
<TD>
<input name=”btnEquals” type=”Button” value=” = ” onclick=”Operation(‘=’)”>
</TD>
</TR>
</TABLE>
</TABLE>
</B>
</FORM>
</CENTER>
<font face=”Verdana, Arial, Helvetica” size=2>
<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
var FKeyPad = document.Keypad;
var Accumulate = 0;
var FlagNewNum = false;
var PendingOp = “”;
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad.ReadOut.value = Num;
FlagNewNum = false;
}
else {
if (FKeyPad.ReadOut.value == “0″)
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
}
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != “=”);
else
{
FlagNewNum = true;
if ( ‘+’ == PendingOp )
Accumulate += parseFloat(Readout);
else if ( ‘-’ == PendingOp )
Accumulate -= parseFloat(Readout);
else if ( ‘/’ == PendingOp )
Accumulate /= parseFloat(Readout);
else if ( ‘*’ == PendingOp )
Accumulate *= parseFloat(Readout);
else
Accumulate = parseFloat(Readout);
FKeyPad.ReadOut.value = Accumulate;
PendingOp = Op;
}
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut = “0.”;
FlagNewNum = false;
}
else
{
if (curReadOut.indexOf(“.”) == -1)
curReadOut += “.”;
}
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad.ReadOut.value = “0″;
FlagNewNum = true;
}
function Clear () {
Accumulate = 0;
PendingOp = “”;
ClearEntry();
}
function Neg () {
FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accumulate);
}
// End –>
</SCRIPT>
Enjoy the script!
By Haleet ( November 10, 2009 at 7:25 pm) · Filed under
Coding,
JavaScript,
Free calculator html,
How to add a calculator to your website,
Html for a calculator
Permalink
This article will explain how to add a digital clock to your website. This code will simply display a digital clock on your website. Follow the instructions below:
First you have to add the following JavaScript between your <head></head> tags.
<script language=”JavaScript” link=”www.start-a-site.com”>
var clockID = 0;
function UpdateClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
var tDate = new Date();
document.theClock.theTime.value = “”
+ tDate.getHours() + “:”
+ tDate.getMinutes() + “:”
+ tDate.getSeconds();
clockID = setTimeout(“UpdateClock()”, 1000);
}
function StartClock() {
clockID = setTimeout(“UpdateClock()”, 500);
}
function KillClock() {
if(clockID) {
clearTimeout(clockID);
clockID = 0;
}
}
</script>
After this you need to add the actual clock code to where you want it to appear on the website:
<body onload=”StartClock()” onunload=”KillClock()”>
<form name=”theClock”>
<input type=text name=”theTime” size=8 style=”text-align: center”>
</form>
By Haleet ( November 10, 2009 at 7:15 pm) · Filed under
JavaScript,
Free html code for a website clock,
How to add a clock to your website html,
How to add a Javascript clock to your website,
Html code for a digital clock
Permalink
When I talk to people, they mess up about the Html and say it’s a scripting language. Well what is Html?
Answer: Html is as it stand out; HyperText Markup Language, it is a markup language used to describe data. Examples of markup languages would be HTML,XHTML,XML…
So..? What are some examples of scripting languages? These would be PHP, Perl, JS…
By Haleet ( November 10, 2009 at 2:37 am) · Filed under
Beginners,
Blog,
Coding,
General,
INFO,
Is html a markup language or a scripting language?,
What is a Markup language,
What is a scripting language,
What is Html
Permalink
This article will explain the basic iframe code, on this site, you can also find the well explained version of this article, just type iframe on the website’s search box.
<iframe src=”http://www.example-target-site.com”></iframe>
The above code is what a iframe looks like. Again you can change the way this iframe looks, just search iframe on THIS site’s search box.
By Haleet ( November 9, 2009 at 11:17 pm) · Filed under
Beginners,
Coding,
General,
Html Tags,
Necessary Tags,
Basic iframe code,
How to html an iframe,
How to put iframe into Html,
What is iframe,
What is the frame html code,
What is the iframe html code
Permalink
Would you like to know where you can a FREE domain name? YES! It is totally free you can forward it or redirect it to any website, Facebook profile, Youtube channel or Myspace page you want!
Dot.tk is a free service you can easily get a FREE domain name. It is easy, simple and FAST! Just visit www.dot.tk
By Haleet ( November 9, 2009 at 6:48 pm) · Filed under
Beginners,
Blog,
Domains,
Freebies,
Internet,
Free .tk domain name,
Free domain name for Facebook,
Free domain name for Myspace,
Free domain name for Youtube,
How to get a .tk domain name,
How to get a dot.tk domain name
Permalink
Even though many people are leaving Myspace and going to Facebook, still there is a majority of people using Myspace. You can use the codes below to make your Myspace background look different and colorful. Make sure you only change the values! You can copy and paste this code to your Profile’s “About Me” section.
<style type="text/css">
body {
background-color:CCCC00;
background-image:url(http://www.public-domain-image.com/backgrounds/slides/abstract-waves-on-a-blue-background.jpg);
background-repeat:no-repeat;
background-position:top left;
background-attachment:fixed;
}
table table table {
background-color:CCFF66;
}
table, tr, td {
background:transparent; border:0px;
}
table table {
border:0px;
}
table table table table {
border:0px;
}
</style>
By Haleet ( November 7, 2009 at 8:11 pm) · Filed under
Internet,
How to change your myspace colors,
How to edi tyour html in Myspace,
How to make your myspace more different
Permalink
yeah I know.. You have a Facebook account as well. Creating a group can be for an idea, website or an organization. We’ll go with the idea of creating a Facebook group for your website.
- First thing first, log in to Facebook.
- Click Profile on the top left.
- Click the “Info” tab.
- Scroll all the way down and find “Groups” then click “See All”
- Click “Create a group” at the top of that page.
- Follow, the instructions from here and you are good to go!
By Haleet ( November 7, 2009 at 2:11 am) · Filed under
Blog,
Internet,
How to create a Facebook account for a business,
How to create a Facebook group for a company,
How to create a Fb group for a website,
How to make a group on fb,
How to start a group on Facebook
Permalink
This article will explain how to check your website’s Pagerank for free. A Pagerank is the rating system Google uses to rate website’s from 0 to 10, 0 being least rated to 10 being perfect rated.
How to build Pagerank
Building Pagerank could be one of the hardest things you might have ever done online. You can build Pagerank by writing good content and having links from good websites.
Where to check your Pagerank
You can check your website’s Pagerank in many website’s but I prefer you use prchecker.info
By Haleet ( November 6, 2009 at 7:31 pm) · Filed under
Beginners,
Internet,
Pagerank,
SEO,
Traffic,
How to build pagerank,
How to check pagerank,
How to check your website's pagerank,
What is Pagerank
Permalink
One thing I have realized when browsing the internet is that; when people make websites or get blogs from “Free” services, they are annoyingly long. Like you might get something like: www.example-free-website.com/site/your-site-name and for some people this might be ignorantly long to type on the address bar. Besides, if they remember your url, of course then if they spell 1 letter wrong or put the / at a wrong spot, then they cannot access your website!
Solution: Simple! I have used this service since it came out years ago, it’s smartdots.com It is a free domain name forwarding service. All you have to do is go to smartdots.com and you will many free domain name forwarding options.
By Haleet ( November 6, 2009 at 12:53 am) · Filed under
Beginners,
Domains,
Freebies,
INFO,
Internet,
Free domain name forwarding,
How to get a free domain name,
SmartDots.Com review,
Where to get a free domain name for your web page,
Where to get a free website domain name
Permalink
This article contains friendly Html codes for Spanish special characters. These codes can be so useful using it in your website because sometimes either your server or a browser doesn’t support every character.
| Display |
Friendly Code |
Numerical Code |
Hex Codes |
Description |
| Á |
Á |
Á |
Á |
Capital A-acute |
| á |
á |
á |
á |
Lowercase a-acute |
| É |
É |
É |
É |
Capital E-acute |
| é |
é |
é |
é |
Lowercase e-acute |
| Í |
Í |
Í |
Í |
Capital I-acute |
| í |
í |
í |
í |
Lowercase i-acute |
| Ñ |
Ñ |
Ñ |
Ñ |
Capital N-tilde |
| ñ |
ñ |
ñ |
ñ |
Lowercase n-tilde |
| Ó |
Ó |
Ó |
Ó |
Capital O-acute |
| ó |
ó |
ó |
ó |
Lowercase o-acute |
| Ú |
Ú |
Ú |
Ú |
Capital U-acute |
| ú |
ú |
ú |
ú |
Lowercase u-acute |
| Ü |
Ü |
Ü |
Ü |
Capital U-umlaut |
| ü |
ü |
ü |
ü |
Lowercase u-umlaut |
| ¿ |
¿ |
¿ |
¿ |
Inverted question mark |
| ¡ |
¡ |
¡ |
¡ |
Inverted exclamation point |
| € |
€ |
€ |
€ |
Euro |
| ? |
|
₧ |
₧ |
Peseta |
By Haleet ( November 5, 2009 at 9:53 pm) · Filed under
Coding,
General,
Html Tags,
Necessary Tags,
eñe Html code,
Friendly code for Spanish letters,
Hex codes for Spanish letters,
Html code for enye,
Html code for Spanish alphabet,
Html code for Spanish letters,
Numerical code for Spanish letter,
Special Character codes for Spanish letters
Permalink