home *** CD-ROM | disk | FTP | other *** search
/ Desktop Icons 2000 / Icons2000.iso / Help / help / jsexternal / verticalscroll.js < prev   
Text File  |  1999-10-18  |  5KB  |  127 lines

  1. //configure the below three variables to change the style of the scroller
  2. var scrollerwidth=140
  3. var scrollerheight=140
  4. var scrollerbgcolor='#9999FF'
  5.  
  6. //configure the below variable to change the contents of the scroller
  7. var messages=new Array()
  8. messages[0]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>Requirements:</b></font><br><font color='FFFFFF' font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>This programs was Designed for Windows<br> 98 and requires<br> Internet Explorer 4.0 or greater. Your display should be set to 800x600 or greater for best results run in full screen mode by hit the F11 key.</b></font>"
  9. messages[1]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>Total MP3 Studio:</b></font><br><font color='FFFFFF' font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>Everything you need to create your own High Quality MP3's on your computer. All in one MP3 Encoders will allow you to read Tracks from your an Audio CD and saves them as audio files in WAV or MP3 format.</b></font>"
  10. messages[2]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>Search:</b></font><br><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b><a class=list href='/sitemap.htm'>Our Search Engine page will let you find what you need in a hurry. Simply type in word and it will search all the pages contained on the Cd-Rom.</a></b></font>"
  11. messages[3]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>MP3 Studio Features:</b></font><br><font color='FFFFFF' font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>MP3 Studio 2000 Professional Series contains all the best tools that you need when working with MP3's, WAV's, and CDA format files. The latest Rippers, Encoders, Players, Utilities, & Tutorials.</b></font>"
  12. messages[4]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>Total Fonts 2000:</font><br><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b><a class=list href='/products/_fonts2000.htm'>Our powerful interface allows you to browse over 5000 TrueType fonts directly from the CD-ROM. Simply click your mouse on the name of the font that you like & it will install it to your computer.</a></b></font>"
  13. messages[5]="<img src='/images/smallsm.gif' width='8' height='8'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b>New Title Release:</b></font><br><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b><a class=list href='/products/_animatedgifs99.htm'>Animated Gifs's 99 features over 3000 high quality Gif's designed by Professional Web Designers using high end programs like Lightwave and 3D<br> Studio Max. Click Here For Details</a></b></font>"
  14.  
  15.  
  16. ///////Do not edit pass this line///////////////////////
  17.  
  18. if (messages.length>1)
  19. i=2
  20. else
  21. i=0
  22.  
  23. function move1(whichlayer){
  24. tlayer=eval(whichlayer)
  25. if (tlayer.top>0&&tlayer.top<=5){
  26. tlayer.top=0
  27. setTimeout("move1(tlayer)",5000)
  28. setTimeout("move2(document.main.document.second)",5000)
  29. return
  30. }
  31. if (tlayer.top>=tlayer.document.height*-1){
  32. tlayer.top-=5
  33. setTimeout("move1(tlayer)",100)
  34. }
  35. else{
  36. tlayer.top=scrollerheight
  37. tlayer.document.write(messages[i])
  38. tlayer.document.close()
  39. if (i==messages.length-1)
  40. i=0
  41. else
  42. i++
  43. }
  44. }
  45.  
  46. function move2(whichlayer){
  47. tlayer2=eval(whichlayer)
  48. if (tlayer2.top>0&&tlayer2.top<=5){
  49. tlayer2.top=0
  50. setTimeout("move2(tlayer2)",5000)
  51. setTimeout("move1(document.main.document.first)",5000)
  52. return
  53. }
  54. if (tlayer2.top>=tlayer2.document.height*-1){
  55. tlayer2.top-=5
  56. setTimeout("move2(tlayer2)",100)
  57. }
  58. else{
  59. tlayer2.top=scrollerheight
  60. tlayer2.document.write(messages[i])
  61. tlayer2.document.close()
  62. if (i==messages.length-1)
  63. i=0
  64. else
  65. i++
  66. }
  67. }
  68.  
  69. function move3(whichdiv){
  70. tdiv=eval(whichdiv)
  71. if (tdiv.style.pixelTop>0&&tdiv.style.pixelTop<=5){
  72. tdiv.style.pixelTop=0
  73. setTimeout("move3(tdiv)",5000)
  74. setTimeout("move4(second2)",5000)
  75. return
  76. }
  77. if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){
  78. tdiv.style.pixelTop-=5
  79. setTimeout("move3(tdiv)",100)
  80. }
  81. else{
  82. tdiv.style.pixelTop=scrollerheight
  83. tdiv.innerHTML=messages[i]
  84. if (i==messages.length-1)
  85. i=0
  86. else
  87. i++
  88. }
  89. }
  90.  
  91. function move4(whichdiv){
  92. tdiv2=eval(whichdiv)
  93. if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=5){
  94. tdiv2.style.pixelTop=0
  95. setTimeout("move4(tdiv2)",5000)
  96. setTimeout("move3(first2)",5000)
  97. return
  98. }
  99. if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){
  100. tdiv2.style.pixelTop-=5
  101. setTimeout("move4(second2)",100)
  102. }
  103. else{
  104. tdiv2.style.pixelTop=scrollerheight
  105. tdiv2.innerHTML=messages[i]
  106. if (i==messages.length-1)
  107. i=0
  108. else
  109. i++
  110. }
  111. }
  112.  
  113. function startscroll(){
  114. if (document.all){
  115. move3(first2)
  116. second2.style.top=scrollerheight
  117. }
  118. else if (document.layers){
  119. move1(document.main.document.first)
  120. document.main.document.second.top=scrollerheight+5
  121. document.main.document.second.visibility='show'
  122. }
  123. }
  124.  
  125. window.onload=startscroll
  126.  
  127.