abajan

positionFixedLightbox_ID_12675931234

Sep 25th, 2011
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. Step 1. Include the following code in the head of the page within which the lightbox form is to be embedded:
  2.  
  3.  
  4.  
  5. <style type="text/css">
  6. html, body {
  7. text-align: center;
  8. }
  9.  
  10. #wrapper {
  11. left:0; right:0;
  12. top:0; bottom:0;
  13. text-align:left;
  14. }
  15.  
  16. div div {
  17. margin:auto;
  18. left:0; right:0;
  19. top: 0; bottom: 0;
  20. position:fixed !important;
  21. width:618px !important;
  22. height:557px !important;
  23. }
  24.  
  25. div div div {
  26. margin:auto;
  27. left:0; right:0;
  28. top:0; bottom:0;
  29. position:fixed !important;
  30. width:600px !important;
  31. height:539px !important;
  32. }
  33.  
  34. div div div table tbody tr td {
  35. padding-bottom:500px;
  36. padding-right:110px;
  37. font-size: 12px !important;
  38. font-weight:bold !important;
  39. font-family: Verdana, Arial, sans-serif;
  40. }
  41.  
  42. iframe {
  43. margin-top:41px;
  44. }
  45. </style>
  46.  
  47.  
  48.  
  49. Step 2. Just after the opening <body> tag place <div id="wrapper"> and just before the closing </body> tag place </div> like this:
  50.  
  51. <body>
  52. <div id="wrapper">
  53.  
  54. Contents of the page go here...
  55.  
  56. </div>
  57. </body>
  58.  
  59.  
  60.  
  61. Step 3. Change the lightbox code to the following:
  62.  
  63. <script src="http://www.jotform.com/min/g=feedback" type="text/javascript">
  64. new JotformFeedback({
  65. formId:'12674438230',
  66. base:'http://www.jotform.com/',
  67. windowTitle:'Order Form Pop Up (Hit [Esc] or [F5] to exit)',
  68. background:'#690',
  69. fontColor:'#FFFFFF',
  70. type:false,
  71. });
  72. </script>
  73. <a class="lightbox-12674438230" style="cursor:pointer;color:blue;text-decoration:underline;">Order Form Pop Up</a>
  74.  
  75.  
  76.  
  77. Step 4. Replace each instance of 12674438230 in the lightbox code with 12675931234
Advertisement
Add Comment
Please, Sign In to add comment