Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4. <%
  5. Dim quote, prop, numstops, width, selnum
  6. quote=chr(34)
  7. prop=Request.QueryString("prop")
  8. numstops=Request.QueryString("stops")
  9. width=Request.QueryString("width")
  10. selnum=int(Request.QueryString("selnum"))
  11. function writeSlider()
  12. Dim slidestr, i
  13. slidestr="<IMG SRC='images/sliderend.gif' WIDTH=1 HEIGHT=26 BORDER=0>"
  14. for i=0 to numstops-2
  15. slidestr=slidestr & drawStop(i)
  16. slidestr=slidestr & "<IMG SRC='images/slidersp.gif' WIDTH=" & width & " HEIGHT=26 BORDER=0>"
  17. Next
  18. slidestr=slidestr & drawStop(i)
  19. slidestr=slidestr & "<IMG SRC='images/sliderend.gif' WIDTH=1 HEIGHT=26 BORDER=0>"
  20. writeSlider=slidestr
  21. end function
  22. function drawStop(curr)
  23. Dim slidestr
  24. slidestr="<A HREF='javascript:parent.moveSlider(parent.document.userform." & prop & ", " & quote & prop & quote & "," & curr & ")'>"
  25. if curr=selnum then
  26. drawStop=slidestr & "<IMG SRC='images/slideron.gif' WIDTH=11 HEIGHT=26 BORDER=0></A>"
  27. else
  28. drawStop=slidestr & "<IMG SRC='images/slideroff.gif' WIDTH=11 HEIGHT=26 BORDER=0></A>"
  29. end if
  30. end function
  31. %>
  32. <HTML>
  33. <HEAD>
  34. <TITLE></TITLE>
  35. </HEAD>
  36. <BODY BGCOLOR="<%= Session("BGCOLOR") %>" TOPMARGIN=0 LEFTMARGIN=0 >
  37. <%= writeslider() %>
  38. </BODY>
  39. </HTML>