Archive for November, 2009

Calculator Script

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!


( November 10, 2009 at 7:25 pm) · Filed under Coding, JavaScript, , ,

Comments

Digital Clock

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>


( November 10, 2009 at 7:15 pm) · Filed under JavaScript, , , ,

Comments

Html a scripting language?

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…


( November 10, 2009 at 2:37 am) · Filed under Beginners, Blog, Coding, General, INFO, , , ,

Comments

Basic iFrame

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.


( November 9, 2009 at 11:17 pm) · Filed under Beginners, Coding, General, Html Tags, Necessary Tags, , , , , ,

Comments

Get a Free Domain Name

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


( November 9, 2009 at 6:48 pm) · Filed under Beginners, Blog, Domains, Freebies, Internet, , , , , ,

Comments

MySpace Background Code

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>

( November 7, 2009 at 8:11 pm) · Filed under Internet, , ,

Comments

How to create a Facebook Group

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.

  1. First thing first, log in to Facebook.
  2. Click Profile on the top left.
  3. Click the “Info” tab.
  4. Scroll all the way down and find “Groups” then click “See All”
  5. Click “Create a group” at the top of that page.
  6. Follow, the instructions from here and you are good to go!

( November 7, 2009 at 2:11 am) · Filed under Blog, Internet, , , , ,

Comments

Pagerank Checker

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


( November 6, 2009 at 7:31 pm) · Filed under Beginners, Internet, Pagerank, SEO, Traffic, , , ,

Comments

Free Domain Name

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.


( November 6, 2009 at 12:53 am) · Filed under Beginners, Domains, Freebies, INFO, Internet, , , , ,

Comments

Spanish Special Characters

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
Á &Aacute; &#193; &#xC1; Capital A-acute
á &aacute; &#225; &#xE1; Lowercase a-acute
É &Eacute; &#201; &#xC9; Capital E-acute
é &eacute; &#233; &#xE9; Lowercase e-acute
Í &Iacute; &#205; &#xCD; Capital I-acute
í &iacute; &#237; &#xED; Lowercase i-acute
Ñ &Ntilde; &#209; &#xD1; Capital N-tilde
ñ &ntilde; &#241; &#xF1; Lowercase n-tilde
Ó &Oacute; &#211; &#xD3; Capital O-acute
ó &oacute; &#243; &#xF3; Lowercase o-acute
Ú &Uacute; &#218; &#xDA; Capital U-acute
ú &uacute; &#250; &#xFA; Lowercase u-acute
Ü &Uuml; &#220; &#xDC; Capital U-umlaut
ü &uuml; &#252; &#xFC; Lowercase u-umlaut
¿ &iquest; &#191; &#xBF; Inverted question mark
¡ &iexcl; &#161; &#xA1 Inverted exclamation point
&euro; &#128; &#x80; Euro
? &#8359; &#x20A7; Peseta

( November 5, 2009 at 9:53 pm) · Filed under Coding, General, Html Tags, Necessary Tags, , , , , , , ,

Comments

« Previous entries Next Page » Next Page »