home *** CD-ROM | disk | FTP | other *** search
/ Internet 1996 World Exposition / park.org.s3.amazonaws.com.7z / park.org.s3.amazonaws.com / Cdrom / Main / HotSpot_readme.txt < prev    next >
Encoding:
Text File  |  2017-09-21  |  4.1 KB  |  98 lines

  1. README for the tiongson.expo.Intro.class Applet
  2.  
  3. This Applet was written to make it easy to make simple 
  4. QTVR like imagemaps in Java. 
  5.  
  6. Basically everything you need to control is available through a
  7. <param> tag in the HTML <applet> tag.
  8.  
  9. Here is an example:
  10.  
  11. <applet code="tiongson.expo.Intro.class" width="600" height="400">
  12.  
  13. <param name="NumberOfNodes" value="6">
  14. <param name="background" value="main.jpg">
  15. <param name="node0" value="0;1;main.html;index1.gif;200,0;100,0,200,100">
  16. <param name="node1" value="1;0;Intro.java;index3.gif;350,350;300,300,400,600">
  17. <param name="node2" value="1;1;other/scrap.java;other/index2.gif;100,200;0,200,200,200,100,300">
  18. <param name="node3" value="2,0;d1.au;none;0,0;403,184,454,210,440,279,340,251,367,191">
  19. <param name="node4" value="1;0;00-start.html;none;2565,331;2565,331,2564,287,2597,278,2571,248,2609,241,2661,289,2662,331,2565,331">
  20. <param name="node5" value="0;0;00-start.html;none;0,0;2477,322,2477,291,2544,222,2586,276,2556,286,2559,323,2477,322">
  21.  
  22. </applet>
  23.  
  24. In the <applet> tag itself, you can choose any size scrolling 
  25. window you want in the width and height tags. Keep in mind that
  26. the scrolling window should ideally be smaller than the background
  27. image you are scrolling around. Otherwise you will see the whole
  28. image, and not scroll at all.
  29.  
  30. Note: No spaces are allowed!
  31.  
  32. There are 4 kinds of <param> tags:
  33.  
  34.    1) <param name="NumberOfNodes" value="NN"> 
  35.       the value can be any int greater than 1
  36.       This tells the applet to look for nodes numbered
  37.       from Node0 to NodeNN. The applet is smart enough to
  38.       skip empty nodes, but will not check past NodeNN.
  39.    
  40.    2) <param name="background" value="GRAPHIC.JPG"
  41.       the value can be any JPEG or GIF image.
  42.       This tag is optional! If this tag is not present,
  43.       the Applete looks for a graphic in the current
  44.       directory called "background.gif"
  45.    
  46.    3) <param name="DEBUG" value="TRUE">
  47.       If this tag is present, then the Applet will run
  48.       in a debugging mode so that you can see your
  49.       hotspots on top of the background graphic.
  50.       If this tag is not present, then the applet will
  51.       run it the normal mode.
  52.       
  53.    4) <param name="NodeNN" value="MODE;NEWWINDOW;TARGETURL;IMAGEURL;X,Y;x1,y1,x2,y2,x3,y3,xN,yN">
  54.  
  55.       In this parameter tag, please DO NOT put spaces between each 
  56.       successive value.
  57.  
  58.       This tag specifies all the different hotspots in your image map.
  59.       The following syntax follows:
  60.       
  61.       MODE = 0      On Mouse-Over, place upper-left hand of graphic 
  62.                     from IMAGEURL at X,Y which "floats."
  63.       MODE = 1      On Mouse-Over, place upper-left hand of graphic 
  64.                     from IMAGEURL at X,Y which is fixed.
  65.       MODE = 2      On Mouse-Down, play sound from TARGETURL.
  66.       
  67.       
  68.       NEWWINDOW = 0   On Mouse-Down, open TARGETURL in this same 
  69.                       window ("_self") replacing the map.
  70.       NEWWINDOW = 1   On Mouse-Down, open TARGETURL in the target 
  71.                       frame "_top", leaving the map in this window.
  72.       
  73.       TARGETURL = URL URL of HTML or sound (*.au) relative to 
  74.                       current directory.
  75.       TARGETURL =   "none"      
  76.                       You can also use the word none if you do not want to 
  77.                       put a URL here.
  78.       
  79.       IMAGEURL = URL  URL of image (*.jpg or *.gif) or sound (*.au) relative 
  80.                       to current directory.
  81.       IMAGEURL =   "none"      
  82.                       You can also use the word none if you do not want an 
  83.                       image to appear
  84.       
  85.       X, Y   Coordinates where on Mouse-Over the upper-left hand 
  86.              corner of image should appear at or near.
  87.                      
  88.       x1,y1...xN,yN   
  89.              Successive pairs of X,Y coordinates whic define the bounding 
  90.              boxes of hot spots. If there is only x1,y1,x2,y2, I assume that 
  91.              this is the upper left and bottom right of a Rectangle. If there 
  92.              are more than two pairs of x and y, then I define a Polygon with 
  93.              the pairs of x and y as the vertices.
  94.                   
  95. 05/01/97
  96. phillip r tiongson
  97. tiongson.expo.intro.class
  98.