<!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" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Volume and Surface Area Calculator</title><meta name="description" content="Volume and Surface Area Calculator, from http://coursesweb.net" />
<meta name="keywords" content="volume calculator, area calculator" />
<style type="text/css"><!--
body, html {
margin:0;
padding:1em;
text-align:center;
}
p {
text-align:left;
}
pre {
margin:1em 3em;
background:#fefe09;
text-align:left;
font-weight:bold;
font-size:1.15em;
color:#0102da;
padding:.2em .3em;
overflow:auto;
word-wrap:break-word
}
--></style>
<link href="vacalculator/vaclc.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Volume and Surface Area Calculator</h1>
<div id="volumes">
<h3 id="volobj"></h3>
<div id="volimgs"></div>
<div id="addselitem"></div>
<div id="volsel">
<h4>Select an object</h4>
<div class="volselfl">
<a href="http://coursesweb.net/javascript/" title="Javascript jQuery Course" id="cwn">Javascript Course</a>
<label for="barrel_sel"><input type="radio" name="volittem" id="barrel_sel" value="barrel" />Barrel</label>
<label for="cone_sel"><input type="radio" name="volittem" id="cone_sel" value="cone" />Cone</label>
<label for="frustum_cone_sel"><input type="radio" name="volittem" id="frustum_cone_sel" value="frustum_cone" />Frustum Cone</label>
<label for="cube_sel"><input type="radio" name="volittem" id="cube_sel" value="cube" />Cube</label>
<label for="cylinder_sel"><input type="radio" name="volittem" id="cylinder_sel" value="cylinder" />Cylinder</label>
</div>
<div class="volselfl">
<label for="hollow_cylinder_sel"><input type="radio" name="volittem" id="hollow_cylinder_sel" value="hollow_cylinder" />Hollow Cylinder</label>
<label for="sectioned_cylinder_sel"><input type="radio" name="volittem" id="sectioned_cylinder_sel" value="sectioned_cylinder" />Sectioned Cylinder</label>
<label for="parallelepiped_sel"><input type="radio" name="volittem" id="parallelepiped_sel" value="parallelepiped" />Parallelepiped</label>
<label for="hexagonal_prism_sel"><input type="radio" name="volittem" id="hexagonal_prism_sel" value="hexagonal_prism" />Hexagonal Prism</label>
<label for="pyramid_sel"><input type="radio" name="volittem" id="pyramid_sel" value="pyramid" />Pyramid</label>
<label for="frustum_pyramid_sel"><input type="radio" name="volittem" id="frustum_pyramid_sel" value="frustum_pyramid" />Frustum Pyramid</label>
</div>
<div class="volselfl">
<label for="sphere_sel"><input type="radio" name="volittem" id="sphere_sel" value="sphere" />Sphere</label>
<label for="spherical_cap_sel"><input type="radio" name="volittem" id="spherical_cap_sel" value="spherical_cap" />Spherical Cap</label>
<label for="spherical_sector_sel"><input type="radio" name="volittem" id="spherical_sector_sel" value="spherical_sector" />Spherical Sector</label>
<label for="spherical_zone_sel"><input type="radio" name="volittem" id="spherical_zone_sel" value="spherical_zone" />Spherical Zone</label>
<label for="torus_sel"><input type="radio" name="volittem" id="torus_sel" value="torus" />Torus</label>
</div><br style="clear:both;"/>
</div>
</div>
<script src="vacalculator/vaclc.js" type="text/javascript"></script>
<hr/>
<p>To add this volume and area calculator in a web page, copy the directory "<b>vacalculator</b>" on your server (with all its files):<br/>
1) Add the following code in the place where you want to display it:</p>
<pre>
<div id="volumes">
<h3 id="volobj"></h3>
<div id="volimgs"></div>
<div id="addselitem"></div>
<div id="volsel">
<h4>Select an object</h4>
<div class="volselfl">
<a href="http://coursesweb.net/javascript/" title="Javascript jQuery Course" id="cwn">Javascript Course</a>
<label for="barrel_sel"><input type="radio" name="volittem" id="barrel_sel" value="barrel" />Barrel</label>
<label for="cone_sel"><input type="radio" name="volittem" id="cone_sel" value="cone" />Cone</label>
<label for="frustum_cone_sel"><input type="radio" name="volittem" id="frustum_cone_sel" value="frustum_cone" />Frustum Cone</label>
<label for="cube_sel"><input type="radio" name="volittem" id="cube_sel" value="cube" />Cube</label>
<label for="cylinder_sel"><input type="radio" name="volittem" id="cylinder_sel" value="cylinder" />Cylinder</label>
</div>
<div class="volselfl">
<label for="hollow_cylinder_sel"><input type="radio" name="volittem" id="hollow_cylinder_sel" value="hollow_cylinder" />Hollow Cylinder</label>
<label for="sectioned_cylinder_sel"><input type="radio" name="volittem" id="sectioned_cylinder_sel" value="sectioned_cylinder" />Sectioned Cylinder</label>
<label for="parallelepiped_sel"><input type="radio" name="volittem" id="parallelepiped_sel" value="parallelepiped" />Parallelepiped</label>
<label for="hexagonal_prism_sel"><input type="radio" name="volittem" id="hexagonal_prism_sel" value="hexagonal_prism" />Hexagonal Prism</label>
<label for="pyramid_sel"><input type="radio" name="volittem" id="pyramid_sel" value="pyramid" />Pyramid</label>
<label for="frustum_pyramid_sel"><input type="radio" name="volittem" id="frustum_pyramid_sel" value="frustum_pyramid" />Frustum Pyramid</label>
</div>
<div class="volselfl">
<label for="sphere_sel"><input type="radio" name="volittem" id="sphere_sel" value="sphere" />Sphere</label>
<label for="spherical_cap_sel"><input type="radio" name="volittem" id="spherical_cap_sel" value="spherical_cap" />Spherical Cap</label>
<label for="spherical_sector_sel"><input type="radio" name="volittem" id="spherical_sector_sel" value="spherical_sector" />Spherical Sector</label>
<label for="spherical_zone_sel"><input type="radio" name="volittem" id="spherical_zone_sel" value="spherical_zone" />Spherical Zone</label>
<label for="torus_sel"><input type="radio" name="volittem" id="torus_sel" value="torus" />Torus</label>
</div><br style="clear:both;"/>
</div>
</div>
<script src="vacalculator/vaclc.js" type="text/javascript"></script>
</pre>
<p>2) Add this code in the <head> zone of your web page:</p>
<pre>
<link href="vacalculator/vaclc.css" rel="stylesheet" type="text/css" />
</pre><br/><br/>
<a href="http://coursesweb.net" title="Programming, Web Development Courses">http://coursesweb.net</a><br/>
</body>
</html> |