PayneLess_Designs

PayneLess Designs - Different Quote On Page Load

Mar 25th, 2012
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.62 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <title>Different Quote On Page Load</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  5. <meta name="generator" content="CoffeeCup HTML Editor (www.coffeecup.com)">
  6. <meta name="created" content="Sun, 25 Mar 2012 15:16:42 GMT">
  7. <meta name="description" content="">
  8. <meta name="keywords" content="">
  9.    
  10. <meta name="classification" content="Design">
  11. <meta name="distribution" content="Global">
  12. <meta name="rating" content="General">
  13. <meta http-equiv="Content-Language" content="English">
  14. <meta name="resource-type" content="document">
  15. <meta name="author" content="PayneLess Designs">
  16. <meta name="copyright" content="Jan 2004 to present.">
  17. <meta name="robots" content="all">
  18. <meta name="revisit-after" content="180 days">
  19.  
  20. <script type="text/JavaScript">
  21. var a = Math.random() + ""
  22. var rand1 = a.charAt(5)
  23. quotes = new Array
  24. quotes[1] = "MESSAGE #1"
  25. quotes[2] = "MESSAGE #2"
  26. quotes[3] = "MESSAGE #3"
  27. quotes[4] = "MESSAGE #4"
  28. quotes[5] = "MESSAGE #5"
  29. quotes[6] = "MESSAGE #6"
  30. quotes[7] = "MESSAGE #7"
  31. quotes[8] = "MESSAGE #8"
  32. quotes[9] = "MESSAGE #9"
  33. quotes[0] = "MESSAGE #10"
  34. var quote = quotes[rand1]
  35. </script>
  36.  
  37. <!--[if IE]>
  38. <link rel="stylesheet" type="text/css" href="css_IE-only.css">
  39. <![endif]-->
  40. </head><body>
  41. <script type="text/JavaScript">
  42. document.write("<div style='width: 400px; height: 3em; margin: 0 auto; padding: 0.25em; border: 1em ridge #0f0; text-align: center; background: #000; font-style: italic; font-size: 2em; color: #fff;'>" + quote + "</div>")
  43. </script>
  44. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment