Expand|Select|Wrap|Line Numbers
- <!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=utf-8" />
- <title>Our hosting plans are not only affordable, but they're packed full of features, it's an increadible deal!</title>
- <link href="style.css" rel="stylesheet" type="text/css"></link>
- <style>
- .test {
- color:red;
- }
- #total {
- font-size:40px;
- }
- h1 {
- margin: 0 0 10px 0;
- text-decoration: underline;
- text-align: center;
- }
- h2 {
- margin: 0 0 10px 0;
- }
- .wrapr form ul {
- float: left;
- width: 300px;
- list-style-type: none;
- padding: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- margin-left: 10px;
- }
- .wrapr form ul li {
- display: inline;
- float: left;
- margin-right: 15px;
- }
- </style>
- <script>
- calculate = function(totalElement)
- {
- if (totalElement)
- {
- var calculation = '';
- var overall = '';
- var fields = new Array();
- var theElement = document.getElementById(totalElement);
- var userInputs = myform.elements;
- var the_type = '';
- for (var f = 0; f < userInputs.length; f++)
- {
- if (userInputs[f].className=='special_value')
- {
- if (userInputs[f].type=='select-one')
- {
- if(userInputs[f].options[userInputs[f].selectedIndex].value)
- {
- fields[f] = userInputs[f].options[userInputs[f].selectedIndex].value;
- }
- else
- {
- fields[f] = 0;
- }
- }
- else if(userInputs[f].type=='radio' || userInputs[f].type=='checkbox')
- {
- if (userInputs[f].checked)
- {
- fields[f] = userInputs[f].value;
- }
- else
- {
- fields[f] = 0;
- }
- }
- else
- {
- if (userInputs[f].value)
- {
- fields[f] = userInputs[f].value;
- }
- else
- {
- fields[f] = 0;
- }
- }
- }
- }
- for (var i=0; i<fields.length; i++)
- {
- calculation += fields[i];
- if (i!=fields.length-1)
- {
- calculation += '+';
- }
- }
- if (calculation!='')
- {
- overall = eval(calculation).toFixed(2);
- }
- if (overall!='')
- {
- theElement.innerHTML = 'Your quote is within $'+overall+ ' of your budget';
- }
- }
- }
- </script>
- <!--[if IE]>
- <script src="lib/html5.js" type="text/javascript"></script>
- <![endif]-->
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-16023202-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- </head>
- <body>
- <div class="header">
- <div class="top"><script type="text/javascript" src="/help/livehelp_js.php?eo=1&relative=Y&department=2&serversession=1&pingtimes=15&secure=Y"></script></div>
- <div class="logo">
- <h1><a href="http://www.drummerboyhosting.com/">drummer boy hosting web design and hosting servies</a></h1>
- </div>
- <div class="menuwrap">
- <ul id="topnav">
- <li>
- <a href="index.php" class="home">Home Page</a>
- </li>
- <li>
- <a href="plans.php" class="products">Hosting Packages</a> </li>
- <li><a href="portfolio.php">Design Portfolio</a></li>
- <li class="current"><a href="quotes.php">Design Quotes</a></li>
- <li><a href="contact.php">Contact Us</a></li>
- </ul>
- </div>
- </div>
- <div class="wrapr">
- <form name="myform">
- <h2>Please fill out the form below to obtain your quote!</h2>
- <p>Do you need a cms (content management system)?<br />
- <select onchange="calculate('total');" name="price" class="special_value">
- <option value="0">Please Choose One</option>
- <option value="-150">No. A static website will do</option>
- <option value="-250">Yes, WordPress</option>
- <option value="-499">Yes, Joomla</option>
- <option value="-499">Yes, Drupal</option>
- </select>
- </p>
- <p>What is your budget?<br />
- <select onchange="calculate('total');" name="price5" class="special_value">
- <option value="0">Please Choose One</option>
- <option value="700">$700</option>
- <option value="800">$800</option>
- <option value="900">$900</option>
- <option value="1000">$1000</option>
- <option value="1100">$1100</option>
- <option value="1200">$1200</option>
- <option value="1300">$1300</option>
- <option value="1400">$1400</option>
- <option value="1500">$1500</option>
- <option value="1600">$1600</option>
- <option value="1700">$1700</option>
- <option value="1800">$1800</option>
- <option value="1900">$1900</option>
- <option value="2000">$2000</option>
- </select>
- <br /><br /><br />
- </p>
- <div id="total"></div>
- <input onClick="calculate('total');" type="button" name="button" value="re-calculate">
- </form>
- <br style="clear:both" />
- </div>
- <div class="planfeatures"></div>
- <div class="footer"> <ul id="fnav">
- <li> <a href="index.php" class="home">Home Page</a> </li>
- <li > <a href="plans.php" class="products">Hosting Packages</a></li>
- <li><a href="portfolio.php">Design Portfolio</a></li>
- <li class="fcurrent"><a href="quotes.php">Design Quotes</a></li>
- <li><a href="contact.php">Contact Us</a></li>
- </ul></div>
- <!--[if IE 8]>
- <script type="text/javascript">
- $("#griddler_ii section ul li:nth-child(even)").addClass("even");
- </script>
- <![endif]-->
- </body>
- </html>