Guest User

Untitled

a guest
Jul 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <script type="text/javascript">
  2. function results(){
  3.  
  4. if (document.form.checkm.checked == true){
  5. x = ", you are a male"
  6. }
  7. if (document.form.checkf.checked == true){
  8. x = ", you are a female"
  9. }
  10. if (document.form.checkf.checked == true && document.form.checkm.checked == true){
  11. confirm("You may only select 1 of the genders. Stupid Tranny....")
  12. }
  13. else{
  14. if (document.form.checkf.checked != true && document.form.checkm.checked !=true){
  15. alert("You can't have no gender.... jeezz... check your birth certificate")
  16. }
  17. else{
  18. if (document.form.select.value == "null"{
  19. alert("Please select a location")
  20. }
  21. else{
  22. name = document.form.text1.value
  23. msg1 = "Have a nice day "
  24. msg2 = "Results: "
  25. var weather = ", how is the weather in "
  26. var qmark = "?"
  27. whereulive = document.form.select.value
  28. span1 = document.getElementById("span1")
  29. span1.innerHTML = msg2 + msg1 + name + x + weather + whereulive + qmark
  30. }
  31. }
  32. }
Add Comment
Please, Sign In to add comment