Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.65 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <!-- CSS Imports -->
  4.     <link type="text/css" rel="stylesheet" href="css/theme.css">
  5.     <link type="text/css" rel="stylesheet" href="css/hover.css">
  6. <head>
  7. <meta charset="utf-8">
  8. <title>Home Page</title>
  9. </head>
  10. <!-- Embedded CSS -->
  11. <style>
  12.     .text
  13.     {
  14.         text-align: right;
  15.         vertical-align:text-top;
  16.     }
  17.     .text1
  18.     {
  19.         text-align: left;
  20.         vertical-align:text-top;
  21.     }
  22. </style>
  23.        
  24.  
  25.        
  26. <script>
  27.     function validate()
  28.     {
  29.     var name = document.getElementById("name").value;
  30.     var phone = document.getElementById("phone").value;
  31.     var email = document.getElementById("phone").value;
  32.     var issue = document.getElementById("issue").value;
  33.     {
  34.     if (name.value == "Enter Your Name")
  35.         {
  36.             alert ("Please enter your name")
  37.         }
  38.     else if (phone.value == "Enter Your Phone Number")
  39.         {
  40.             alert ("Please enter your number")
  41.         }
  42.     else if (email.value== "Enter Your Email")
  43.         {
  44.             alert ("Please enter your email")
  45.         }
  46.     else if (issue.value == "Enter Your Issue")
  47.         {
  48.             alert ("Please enter your issue")
  49.         }
  50.     else
  51.         {
  52.             alert ("Thank you, your report has been submited")
  53.         }
  54.     }
  55.     }
  56.    
  57.            
  58.        
  59. </script>
  60.  
  61. <body>
  62.    
  63.     <!-- Title and Navigation -->
  64.     <div>
  65.         <table>
  66.         <tr>
  67.                 <!-- title/Header -->
  68.                 <td align="center" width="100%" colspan="4">
  69.                 <h1>Locked Down Data - Contact Us</h1>
  70.                 </td>  
  71.             </tr>
  72.             <tr>
  73.                 <!-- Navigation Menu -->
  74.                 <td><h1>About Us</h1></td>
  75.                 <td><h1>Contact Us</h1></td>
  76.                 <td><h1>Informaton</h1></td>
  77.                 <td><h1>Services</h1></td>
  78.             </tr>
  79.         </table>   
  80.     </div>
  81.    
  82.     <!-- Main Content -->
  83.    
  84.     <div>
  85.     <table>
  86.         <!-- Header -->
  87.         <tr>
  88.         <td colspan="4">
  89.             <p>
  90.                 <h1>Our Contact Information</h1>
  91.                 <br>
  92.                 <h3 align="center">Contact us by any of the following methods if you have any enquiries, our staff are availble 24/7</h3>
  93.             </p>
  94.         </td>
  95.         <!-- Contact Information -->
  96.         </tr>
  97.         <tr>
  98.         <td class="text" width="25%"> Corporate Information:</td>
  99.         <td class="text1" width="25%">
  100.             <p>
  101.                 <u>address</u><br>
  102.                 Folly Lane <br>
  103.                 Hereford <br>
  104.                 HR1 1LS <br>
  105.                 <u>Director</u><br>
  106.                 Ian Peake<br>
  107.                
  108.                
  109.             </p>
  110.         </td>
  111.         <td class="text" width="25%"> General Information:</td>
  112.         <td class="text1" width="25%">
  113.             <p>
  114.                 Toll-Free ***********<br>
  115.                 Phone *********** <br>
  116.                 Fax **********<br>
  117.                 Email Office@generic.com<br>
  118.                
  119.             </p>
  120.         </td>
  121.         </tr>
  122.    
  123.         <tr>
  124.         <td class="text" width="25%"> Sales Information:</td>
  125.         <td class="text1" width="25%">
  126.             <p>
  127.                 Toll Free<br>
  128.                 Folly Lane <br>
  129.                 Hereford <br>
  130.                 HR1 1LS <br>
  131.                 <u>Director</u><br>
  132.                 Ian Peake<br>
  133.                
  134.                
  135.             </p>
  136.         </td>
  137.         <td class="text" width="25%"> International Information: </td>
  138.         <td class="text1" width="25%">
  139.             <p>
  140.                 International@generic.com<br>
  141.                 Phone *********** <br>
  142.                 Avaliable 24/7 <br>
  143.                
  144.                
  145.             </p>
  146.         </td>
  147.         </tr>
  148.     </table>
  149.     </div>
  150.    
  151.     <!-- Contact From -->
  152.     <div>
  153.    
  154.         <table>
  155.             <form>
  156.                 <tr>
  157.                     <td colspan="2" width="50%">
  158.                     <img src="images/support.jpg" width="50%" align="right">
  159.                     </td>
  160.                     <td width="50%" class="text1">
  161.                         <table style="border-style:none;">
  162.                         <tr>
  163.                             <td><label for="name"> Name: </label></td>
  164.                             <td><textarea type="text" name="contact" id="name">Enter Your Name</textarea></td>
  165.                         </tr>
  166.                         <tr>
  167.                             <td><label for="phone"> Phone Number: </label></td>
  168.                             <td><input type="tel" name="contact" id="phone" value="Enter Your Phone Number" style="width:75%;"></td>
  169.                         </tr>
  170.                         <tr>
  171.                             <td><label for="email"> Email: </label></td>
  172.                             <td><input type="text" name="contact" id="email" value="Enter Your Email" style="width:75%;"></td>
  173.                         </tr>
  174.                         <tr>
  175.                             <td><label for="issue"> Your Issue: </label></td>
  176.                             <td><textarea type="text" name="contact" id="issue" style="width:75%;height:100px;">Enter Your Issue</textarea></td>
  177.                            
  178.                         </tr>
  179.                         <tr>
  180.                             <td><button onClick="validate()">Submit</button></td>
  181.                         </tr>    
  182.                         </table>  
  183.                     </td>
  184.                    
  185.                    
  186.                 </tr>
  187.             </form>
  188.         </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement