home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 September / Chip_1999-09_cd.bin / internet / JSLib / applets / 0050 / parametry.txt < prev    next >
Text File  |  1997-12-31  |  5KB  |  98 lines

  1. This applet can generate a texturemapped tunnel from any GIF/JPG image.
  2. Remember that are needed both tunnel.class , Lware.class and anfy.class.
  3. You must upload these 3 .class files and insert the <applet> tag on your
  4. html document to add this applet to your page.
  5. This applet is fully parametrized, so you can generate all kinds of tunnels
  6. you want. Here an example of what you have to write in the html (the
  7. things anfter the ; are comments with min-max values acceptet):
  8.  
  9.  
  10. <applet code="tunnel.class" width=250 height=180> ; Name, Width, Height
  11. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  12. <param name=regcode value="NO">         ; Register code (if you have it)
  13. <param name=reglink value="NO">         ; URL where go optionally when clicked
  14. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  15. <param name=regframename value="_blank"> ; Name of new frame for reglink
  16. <param name=statusmsg value="Tunnel applet">  ; Statusbar message
  17. <param name=image value="stone.jpg">    ; Image to load
  18. <param name=res value="1">              ; resolution (1-8)
  19. <param name=startx value="100">         ; X start
  20. <param name=starty value="100">         ; Y start
  21. <param name=textw value="256">          ; Width of image (stone.jpg)
  22. <param name=texth value="256">          ; Height of image (stone.jpg)
  23. <param name=conex value="215">          ; X aspect ratio
  24. <param name=coney value="150">          ; Y aspect ratio
  25. <param name=conez value="1200">         ; Z aspect ratio
  26. <param name=movement value="5">         ; Type of movement (1..8)
  27. <param name=effect value="1">           ; Type of effect (1..2)
  28. <param name=textscroll value="tunnscr.txt"> ; File for scrolltext or "NO"
  29. <param name=textoffset value="140">         ; Txtscroll y offset
  30. <param name=textspeed value="1">          ; Txtscroll speed
  31. <param name=textfont value="Arial">       ; Txtscroll font name
  32. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  33. <param name=textsize value="24">          ; Txtscroll font size
  34. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  35. <param name=TextColR value="200">         ; Txtscroll color (red component)
  36. <param name=TextColG value="255">         ; Txtscroll color (green component)
  37. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  38. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  39. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  40. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  41. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  42. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  43. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  44. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  45. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel  
  46. <param name=memdelay value="1000">        ; Memory deallocation delay
  47. <param name=priority value="3">           ; Task priority (1..10)
  48. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  49. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  50. </applet>                                 ; End of applet tag
  51.  
  52.                              ---------
  53.  
  54.  
  55. Here detailed instructions about how to change parameters:
  56.  
  57.  
  58. The credits parameter can't be changed otherwise the applet will not work.
  59.  
  60. To activate the reg parameters read the shareware registration notes.
  61. In the "regcode" parameter you have to place the registration code you
  62. purchase from the author. If it is correct and the applet is run from the
  63. registered domain name, you can use "reglink" parameter, where you can specify
  64. an URL where bring user when the applet is clicked.
  65. If you set to "YES" regnewframe, you can specify a frame where load the
  66. reglink:
  67.  
  68. "_blank"  : To load the link in a new blank unnamed browser window.
  69. "_self"   : To load the link into the same window the applet occupies.
  70. "_parent" : To load the link into the immediate FRAMESET parent.
  71. "_top"    : To load the link into the top body of the window.
  72.  
  73. Otherwise the frame name, for example "myframe1".
  74.  
  75. The applet can be of any size. If res=1, remember to place the exact
  76. size of image in "width" and "height" tags. If res=2, place double values,
  77. if res=3 triple values etc.
  78. In fact, res is a sort of zoomer.
  79.  
  80. The image used as texture can be of any size, but the preferred size is
  81. 256*256. Try to use images with a size close to this one, GIF or JPG.
  82.  
  83. The startx,starty,conex,coney,conez parameters are useful to change the
  84. tunnel, making it deformed, but the values suggested are the best ones.
  85.  
  86. You can select the type of movement, with "movement" parameter:
  87.  
  88. 1) advance
  89. 2) back
  90. 3) anticlockwise rotation
  91. 4) clockwise rotation
  92. 5) advance + clockwise rotation
  93. 6) advance + anticlockwise rotation
  94. 7) back + clockwise rotation
  95. 8) back + anticlockwise rotation
  96.  
  97. And, finally, you can select between 2 kind of effects: with "1" you have
  98. a tunnel, with "2" instead you are outside the tunnel, or something like.