Advertisement
Guest User

Untitled

a guest
May 21st, 2012
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3.    $("#linkshow").click(function(e) {
  4.       e.preventDefault();
  5.       $("#window").show();
  6.    });
  7. });
  8. </script>
  9.  
  10. <a href="#" id="linkshow">Submit a comment</a>
  11.  
  12.  
  13. <div id="window" style="position: absolute; z-index: 10; left: 170px; top: 215px; width: 400px; background-color: rgb(221, 227, 235);display: none;
  14. padding: 5px 9px 7px 5px;border-radius:7px; -moz-border-radius:7px !important;-webkit-border-radius: 7px !important;-khtml-border-radius: 7px !important; text-align: left; color: #fff;
  15. background-color: rgba(5%,11%,25%,.4); background-image: url();
  16. border-width: 1px;border-color: rgba( 0, 40, 80, 0.2);border-style: solid;
  17. box-shadow: 0 2px 4px 1px rgba(0%,3%,7%,0.2),
  18. inset 0 20px 0px -10px rgba(40%,70%,100%,0.05),
  19. inset 0 0px 0px 1px rgba(50%,70%,100%,0.15),
  20. inset 0 1px 0px 0px rgba(50%,70%,100%,0.05),
  21. inset 0 -2px 0px -1px rgba(20%,70%,100%,0.2),
  22. inset 0 1px 6px 2px rgba(0%,70%,100%,0.07),
  23. inset 0 -530px 200px -300px rgba(5%,37%,55%,0.7),
  24. inset 0 250px 150px -50px rgba(4%,10%,22%,.8) !important;">
  25.  
  26. <div style="color:#000 !important;margin: 5px 0px 0px 4px !important;
  27. padding: 0px 0px 8px 0px !important;height:15px;
  28. -webkit-border-radius:  5px 5px 5px 5px;-moz-border-radius: 5px 5px 5px 5px !important ;border-radius: 5px 5px 5px 5px;
  29. background-color:rgba(100%,100%,100%,1) !important;
  30. border-width: 1px !important;border-color: rgba( 0, 20, 45, .5) !important;border-style: solid !important;color: rgba( 0%,0%,0%,1) !important;
  31. box-shadow: 1px 1px 3px rgba(0%,0%,0%,0.25) !important;
  32. cursor:move;"
  33. onmousedown="beginDrag(this.parentNode, event);">
  34.  
  35. <div style="position:absolute; font-size:16px; color:#000;margin: 0px 0px 0px 0px !important;
  36. padding: 1px 2px 2px 5px !important;">
  37. Suggestions and Comments (May 11th - May 31st)</div>
  38.  
  39. <div style="position:absolute; top:3px; left:377px; float:right;" onclick="this.parentNode.parentNode.style.display = 'none';">
  40.  
  41. <a href="JavaScript:void(0)" id="close"><img border="0" title="Click here to close." src="http://www.civics.ks.gov/img/close_button.png" style="cursor:pointer;margin: 4px 0px 1px -5px !important;"></a>
  42.  
  43. </div>
  44. </div>
  45. <div id="popupinfo">
  46. <br>
  47.  
  48. <form class="validate Form-Fields" name="form_F3CD62D8-F20A-485E-A9C1-1756241E91E1" action="/Default.asp?display=2ABBC63F-79C9-467D-9C97-AFA4F114872A" method="POST">
  49. <div>
  50. <table width="100%" cellspacing="0" cellpadding="3" border="0" id="table1" style="margin:-20px 0px -21px 0px !important;">
  51. <tbody><tr>
  52. <td style="margin:-15px 0px -0px 0px !important;color:#000 !important;" class="element-row1-inner">
  53. <p>
  54. Name<br>
  55. <input type="text" size="30" name="name" class="required" style="width:373px !important;"></p>
  56. <p>
  57. Email<br>
  58. <input type="text" size="30" name="email" class="required" style="width:373px !important;"></p>
  59.  
  60. <p>
  61. Page:<br>
  62. <select style="width:378px !important;">
  63. <option value="Home" selected="selected">Home</option>
  64. <option value="Technical Assistance">Technical Assistance</option>
  65. <option value="Computers">Computers</option>
  66. <option value="Custom Computers">Custom Computers</option>
  67. <option value="Forums">Forums</option>
  68. <option value="Blogs">Blogs</option>
  69. <option value="Events">Events</option>
  70. <option value="Contact">Contact</option>
  71. <option value="Careers">Careers</option>
  72. <option value="Affiliate">Affiliate</option>
  73. <option value="Deals">Deals</option>
  74. <option value="Web Design">Web Design</option>
  75. <option value="Other">Other...</option></select></p>
  76.  
  77. <p>Message<br>
  78. <textarea style="width:372px;" rows="6" name="message" cols="50"></textarea></p>
  79. <br>
  80. <p style="margin: -20px 0px 2px 160px !important;"><input type="submit" name="B1" value="Submit" id="">
  81. <input type="hidden" style="" value="F3CD62D8-F20A-485E-A9C1-1756241E91E1" name="tpost_id"></p>
  82. </td>
  83. </tr>
  84.  
  85. </tbody></table></div>
  86. </form>
  87. <br>
  88. </div>
  89. <style>
  90.  
  91. #popupinfo{
  92. color:#000 !important;margin: 8px 0px 2px 4px !important;
  93. padding: 5px 0px 8px 0px !important;
  94. -webkit-border-radius:  5px 5px 5px 5px;-moz-border-radius: 5px 5px 5px 5px !important ;border-radius: 5px 5px 5px 5px;
  95. background-color:rgba(100%,100%,100%,1) !important;
  96. border-width: 1px !important;border-color: rgba( 0, 20, 45, .5) !important;border-style: solid !important;
  97. color: rgba( 0%,0%,0%,1) !important;
  98. box-shadow: 2px 2px 2px rgba(0%,0%,0%,0.2) !important;}
  99.  
  100. #elementF3CD62D8-F20A-485E-A9C1-1756241E91E1 {display:none;}
  101. </style>
  102. </div>
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. <script type="text/javascript">
  116. $(document).ready(function() {
  117.  // If the 'hide cookie is not set we show the message
  118.   if (!readCookie('hide')) {
  119.     $('#window').show();
  120.   }
  121.   // Add the event that closes the popup and sets the cookie that tells us to
  122.   // not show it again until one day has passed.
  123.   $('#close').click(function() {
  124.     $('#window').hide();
  125.     createCookie('hide', true, 1)
  126.     return false;
  127.   });
  128. });
  129. // ---
  130. // And some generic cookie logic
  131. // ---
  132. function createCookie(name,value,days) {
  133.   if (days) {
  134.     var date = new Date();
  135.     date.setTime(date.getTime()+(days*24*60*60*1000));
  136.     var expires = "; expires="+date.toGMTString();
  137.   }
  138.   else var expires = "";
  139.   document.cookie = name+"="+value+expires+"; path=/";
  140. }
  141. function readCookie(name) {
  142.   var nameEQ = name + "=";
  143.   var ca = document.cookie.split(';');
  144.   for(var i=0;i < ca.length;i++) {
  145.     var c = ca[i];
  146.     while (c.charAt(0)==' ') c = c.substring(1,c.length);
  147.     if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  148.   }
  149.   return null;
  150. }
  151. function eraseCookie(name) {
  152.   createCookie(name,"",-1);
  153. }
  154. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement