Untitled


SUBMITTED BY: Guest

DATE: Dec. 3, 2013, 2:33 p.m.

FORMAT: Text only

SIZE: 5.1 kB

HITS: 734

  1. <script>
  2. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  3. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  4. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  5. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  6. ga('create', 'UA-43403912-2', 'illuminiteforums.com');
  7. ga('send', 'pageview');
  8. </script>
  9. <script type="text/javascript">
  10. /*
  11. Classic Snow Fall - Java Script
  12. */
  13. // Set the number of snowflakes (more than 30 - 40 not recommended)
  14. var snowmax=35
  15. // Set the colors for the snow. Add as many colors as you like
  16. var snowcolor=new Array("#aaaacc","#ddddff","#ccccdd","#f3f3f3","#f0ffff")
  17. // Set the fonts, that create the snowflakes. Add as many fonts as you like
  18. var snowtype=new Array("Times","Arial","Times","Verdana")
  19. // Set the letter that creates your snowflake (recommended: * )
  20. var snowletter="*"
  21. // Set the speed of sinking (recommended values range from 0.3 to 2)
  22. var sinkspeed=0.6
  23. // Set the maximum-size of your snowflakes
  24. var snowmaxsize=30
  25. // Set the minimal-size of your snowflakes
  26. var snowminsize=8
  27. // Set the snowing-zone
  28. // Set 1 for all-over-snowing, set 2 for left-side-snowing
  29. // Set 3 for center-snowing, set 4 for right-side-snowing
  30. var snowingzone=1
  31. ///////////////////////////////////////////////////////////////////////////
  32. // CONFIGURATION ENDS HERE
  33. ///////////////////////////////////////////////////////////////////////////
  34. // Do not edit below this line
  35. var snow=new Array()
  36. var marginbottom
  37. var marginright
  38. var timer
  39. var i_snow=0
  40. var x_mv=new Array();
  41. var crds=new Array();
  42. var lftrght=new Array();
  43. var browserinfos=navigator.userAgent
  44. var ie5=document.all&&document.getElementById&&!browserinfos.match(/Opera/)
  45. var ns6=document.getElementById&&!document.all
  46. var opera=browserinfos.match(/Opera/)
  47. var browserok=ie5||ns6||opera
  48. function randommaker(range) {
  49. rand=Math.floor(range*Math.random())
  50. return rand
  51. }
  52. function initsnow() {
  53. if (ie5 || opera) {
  54. marginbottom = document.body.scrollHeight
  55. marginright = document.body.clientWidth-15
  56. }
  57. else if (ns6) {
  58. marginbottom = document.body.scrollHeight
  59. marginright = window.innerWidth-15
  60. }
  61. var snowsizerange=snowmaxsize-snowminsize
  62. for (i=0;i<=snowmax;i++) {
  63. crds[i] = 0;
  64. lftrght[i] = Math.random()*15;
  65. x_mv[i] = 0.03 + Math.random()/10;
  66. snow[i]=document.getElementById("s"+i)
  67. snow[i].style.fontFamily=snowtype[randommaker(snowtype.length)]
  68. snow[i].size=randommaker(snowsizerange)+snowminsize
  69. snow[i].style.fontSize=snow[i].size+'px';
  70. snow[i].style.color=snowcolor[randommaker(snowcolor.length)]
  71. snow[i].style.zIndex=1000
  72. snow[i].sink=sinkspeed*snow[i].size/5
  73. if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
  74. if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
  75. if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
  76. if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
  77. snow[i].posy=randommaker(2*marginbottom-marginbottom-2*snow[i].size)
  78. snow[i].style.left=snow[i].posx+'px';
  79. snow[i].style.top=snow[i].posy+'px';
  80. }
  81. movesnow()
  82. }
  83. function movesnow() {
  84. for (i=0;i<=snowmax;i++) {
  85. crds[i] += x_mv[i];
  86. snow[i].posy+=snow[i].sink
  87. snow[i].style.left=snow[i].posx+lftrght[i]*Math.sin(crds[i])+'px';
  88. snow[i].style.top=snow[i].posy+'px';
  89. if (snow[i].posy>=marginbottom-2*snow[i].size || parseInt(snow[i].style.left)>(marginright-3*lftrght[i])){
  90. if (snowingzone==1) {snow[i].posx=randommaker(marginright-snow[i].size)}
  91. if (snowingzone==2) {snow[i].posx=randommaker(marginright/2-snow[i].size)}
  92. if (snowingzone==3) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/4}
  93. if (snowingzone==4) {snow[i].posx=randommaker(marginright/2-snow[i].size)+marginright/2}
  94. snow[i].posy=0
  95. }
  96. }
  97. var timer=setTimeout("movesnow()",50)
  98. }
  99. for (i=0;i<=snowmax;i++) {
  100. document.write("<span id='s"+i+"' style='position:absolute;top:-"+snowmaxsize+"'>"+snowletter+"</span>")
  101. }
  102. if (browserok) {
  103. window.onload=initsnow
  104. }
  105. </script>

comments powered by Disqus