Webocreation

Wednesday, February 23, 2011

Friday, February 4, 2011

Happy Valentine 2011- best postal card

Valentines





HAPPY VALENTINES DAY






valentines gifts, valentine’s day, printable valentines, valentine poetry, valentine poems, valentine cards, valentine flowers, last minute valentine gifts, valentine gifts, valentines movies, valentine, valentine theme ipod, valentine e-cards, funny valentine poems, faye valentine, bullet for my valentine, valentine wallpapers, angelina valentine, valentine gift ideas, valentine ecards, love poems for valentine’s day, valentine hearts, valentine graphics, claudia valentine, valentine’s day poems, silly poems valentines, valentine poems for children, short valentines poems, valentine clipart, valentines day gifts, printable valentine cards for kids, stacy valentine, cute valentine poems, free animated valentine cards, valentine ideas, valentines day ideas for boyfriend, valentines day jokes poems, valentines day facts, valentine coloring pages, printable valentine cards, valentine heart clipart, valentines, top ten valentines gifts, free funny valentine cards, jill valentine, free valentines day cards, free e valentine cards, valentine cards to print, valentine gifts for men, homemade valentine gifts, valentines email cards free, creative valentine ideas, valentine quote, valentine desktop themes, good gifts for valentines, valentine day gift men, free valentine wallpaper, ivy valentine, valentine quotes, humorous valentines day poems, valentine layouts, ipod valentine theme, i need valentine ideas for my husband, valentine presents, cute valentines day ideas, valentines day history, valentines day quotes, valentine light decorations, valentine shop, unique ideas for valentines day, free valentines cards, ideas for homemade valentines gifts, cheap valentines ideas, funniest valentines jokes, valentines day wallpaper, free valentines graphics, valentine heart templates patterns, simple valentine poems, valentine poems to friends, cute valentine sayings, free valentine s day poems, printable humorous valentine cards, valentines day e cards, love quotes valentines day, free printable valentine cards, funny valentine messages, karen valentine, valentines phrases, my bloody valentine, valentine proposals, valentine greetings, valentines day clipart, valentine gift baskets, free valentine greetings, cute valentines ideas for a boyfriend, valentine’s day gifts to makevalentine dirty poems, valentine coloring sheets, valentine gifts for teenage guys, valentine sayings

Tuesday, February 1, 2011

discount giving form in javascript 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=iso-8859-1" />

<title>Untitled Document</title>

<script language="javascript" type="text/javascript">

function calculate(){

var cost=0;

var discount=0;

var total_cost=0;

var flight=0;

for (i=0;i<document.forms[0].a.length;i++) {

if (document.forms[0].a[i].checked) {

cost = document.forms[0].a[i].value;

}

}

for (i=0;i<document.forms[0].b.length;i++) {

if (document.forms[0].b[i].checked) {

discount = document.forms[0].b[i].value;

}

}

if (document.forms[0].c.checked==true) {

flight = document.forms[0].c.value;

}

var total_cost=parseInt(cost)-parseInt(discount*cost/100)+parseInt(flight);

alert(cost+discount+flight+total_cost);



}

</script>

</head>

<body>

<form id="form1" name="form1" method="post" action="">

<table width="600" border="2" cellspacing="0" cellpadding="0">

<tr>

<td>asdf</td>

</tr>

<tr>

<td>ajsdfkj</td>

</tr>

<tr>

<td><p>

<label>

<input type="radio" name="a" value="50" />

tea</label>

<br />

<label>

<input type="radio" name="a" value="100" />

asdf</label>

<br />

<label>

<input type="radio" name="a" value="150" />

asdfasdf</label>

<br />

<label>

<input type="radio" name="a" value="200" />

ewrer</label>

<br />

</p></td>

</tr>

<tr>

<td><p>

<label>

<input type="radio" name="b" value="15" />

ertyer</label>

<br />

<label>

<input type="radio" name="b" value="10" />

kjhgk</label>

<br />

<label>

<input type="radio" name="b" value="5" />

ghjk</label>

<br />

<label>

<input type="radio" name="b" value="0" />

ghjk</label>

<br />

</p></td>

</tr>

<tr>

<td><label>

<input type="checkbox" name="c" value="400" />

</label>

cost 400 </td>

</tr>

<tr>

<td><label>

<input type="submit" name="Submit" value="Calculate" onclick="calculate()" />

</label>

<label>

<input type="reset" name="Submit2" value="Reset" />

</label></td>

</tr>

</table>

</form>

</body>

</html>

Javascript

<!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=iso-8859-1" />

<title>Untitled Document</title>

<script language="javascript" type="text/javascript">

function calculate(){

var cost=0;

var discount=0;

var total_cost=0;

var flight=0;

for (i=0;i<document.forms[0].a.length;i++) {

if (document.forms[0].a[i].checked) {

cost = document.forms[0].a[i].value;

}

}

for (i=0;i<document.forms[0].b.length;i++) {

if (document.forms[0].b[i].checked) {

discount = document.forms[0].b[i].value;

}

}

if (document.forms[0].c.checked==true) {

flight = document.forms[0].c.value;

}

var total_cost=parseInt(cost)+parseInt(discount*cost/100)+parseInt(flight);

alert(cost+discount+flight+total_cost);



}
</script>

</head>
<body>
<form id="form1" name="form1" method="post" action="">

<table width="600" border="2" cellspacing="0" cellpadding="0">

<tr>

<td>asdf</td>

</tr>

<tr>

<td>ajsdfkj</td>

</tr>

<tr>

<td><p>

<label>

<input type="radio" name="a" value="50" />

tea</label>

<br />

<label>

<input type="radio" name="a" value="100" />

asdf</label>

<br />

<label>

<input type="radio" name="a" value="150" />

asdfasdf</label>

<br />

<label>

<input type="radio" name="a" value="200" />

ewrer</label>

<br />

</p></td>

</tr>

<tr>

<td><p>

<label>

<input type="radio" name="b" value="15" />

ertyer</label>

<br />

<label>

<input type="radio" name="b" value="10" />

kjhgk</label>

<br />

<label>

<input type="radio" name="b" value="5" />

ghjk</label>

<br />

<label>

<input type="radio" name="b" value="0" />

ghjk</label>

<br />

</p></td>

</tr>

<tr>

<td><label>

<input type="checkbox" name="c" value="400" />

</label>

cost 400 </td>

</tr>

<tr>

<td><label>

<input type="submit" name="Submit" value="Calculate" onclick="calculate()" />

</label>

<label>

<input type="reset" name="Submit2" value="Reset" />

</label></td>

</tr>

</table>

</form>
</body>

</html>

Uses of javascript with the radio button and check box








Untitled Document






















asdf
ajsdfkj























cost 400