This nice looking contact form has the following features.
If you like to use this contact form as popup contact form:-
Add the following line of code at the top of the "contact-us.html" page. This code actually prevent direct opening of your contact page.
<script type="text/javascript">
<!--
if(null==(parent.opener)){window.location.href="http://yourdomain/yourpage";}
-->
</script>
Here http://yourdomain/yourpage is the URL of the webpage where you want to redirect viewers incase of direct opening of contact page.
Add the following line of code at the pages from where you want to open the contact page. This code will appear as a clickable link on your web page.
<script type="text/javascript">
function contact(){
var x=window.open('http://yourdomain/contact-us.html', 'ContactUs', 'width=500, height=550, toolbar=no,location=no, directories=no, status=yes, enubar=no, scrollbars=yes, copyhistory=yes');
if(!x){alert("Please allow popup to open contact page!");}
return false;}
<a href="#" onclick="return contact()">Contact us</a>
Here again http://yourdomain/contact-us.html is the URL of the contact page.
If you like to add/insert this "contact form" into your existing web page:-
1. Open file "contact.html" with your favorite text or HTML editor.
<script type="text/javascript" src="mail/script/mail.js"></script>
<script type="text/javascript" src="mail/script/common.js"></script>
<style type="text/css">
body, div, td, input{font-family: arial;font-size:12px;}
.text{height:17px; border:1px solid #999999; width:100px;}
.text:hover{background:#fdfdd3;}
a{color:#999999;}
a:hover{color:#6699aa;}
</style>
__________________
** Existing page may be in PHP or HTML or HTM format.
PHP 5.0 or higher with GD installed are required to run the script.
If your system doesn't meet these requirements please write here for necessary modifications.
THIS SCRIPT PRODUCT IS PROVIDED "AS-IS". NO WARRANTY OF ANY KIND IS EXPRESSED OR IMPLIED. YOU (RECIPIENT) USE THIS SCRIPT AT YOUR (RECIPIENTS) OWN RISK. TO THE MAXIMUM EXTENT PERMITTED UNDER APPLICABLE LAWS, AUTHOR EXPRESSLY DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. AUTHOR DOES NOT WARRANT THAT THE FUNCTIONS CONTAINED IN THE SCRIPT WILL MEET YOUR REQUIREMENTS, OR THAT THE OPERATION OF THE SCRIPT WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE SCRIPT WILL BE CORRECTED. FURTHERMORE, AUTHOR DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE OR THE RESULTS OF THE USE OF THE SCRIPT IN TERMS OF ITS CORRECTNESS, ACCURACY, RELIABILITY, OR OTHERWISE. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY AUTHOR OR RAMUI.COM SHALL CREATE A WARRANTY OR IN ANY WAY INCREASE THE SCOPE OF ANY WARRANTY.