Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. CSS:
  2. /* <-- hide the default checkbox */
  3.  
  4. label input {
  5. display: none;/* <-- hide the default checkbox */
  6. }
  7.  
  8. label {
  9. margin-bottom: 5px;
  10. margin-left: 10px;
  11. font-size: 13px;
  12. }
  13.  
  14. label .checkbox {/* <-- style the artificial checkbox */
  15. height: 15px;
  16. width: 15px;
  17. border: 1px solid #9c9c9c;
  18. border-radius:2px;
  19. display: inline-block;
  20. position: relative;
  21. margin-right:10px;
  22. }
  23. [type=checkbox]:checked + .checkbox:before {/* <-- style its checked state..with a ticked icon */
  24. content: '2714';
  25. position: absolute;
  26. top: -1px;
  27. left: 3px;
  28. font-size:20px;
  29. }
  30.  
  31. .studylicense {
  32. color: #929292;
  33. margin-bottom:2px;
  34. position:absolute;
  35. }
  36.  
  37. HTML:
  38. <div><label>
  39. <input style="display:none;" type='checkbox' name="studentRedirect" class="checkbox">
  40. <div class="study checkbox"></div><span class="studylicense"><strong>Studielicens <img class="help-icon" alt="" src="images/help.png"></strong></span></label>
  41. <input style="display:none;" type="checkbox" name="studentRedirect"></div>
  42.  
  43.  
  44. <input style="display:none" type="submit" name="Send" value="Opret gratis konto" class="btn btn-success" />
  45. <span class="sign-up"><a class="supportButton btn btn-success " onclick="if (validator(document.forms['trial'])) document.forms['trial'].submit();" href="javascript:;">
  46. Opret gratis konto</a></span>
  47.  
  48.  
  49. <%
  50. if trialSignedUp then
  51. %>
  52. <div id="submitconfirm" class="alert alert-success">
  53. Velkommen til <span class="defgoBlue">defgo</span>, vi har sendt en email indeholdende dit gratis login og password</div>
  54.  
  55. JAVASCRIPT:
  56. if (theForm.studentRedirect.checked == true)
  57. {
  58. self.location="/dk/kontakt/studerende.asp"
  59. return (false);
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement