Cube Menu - Copyright (C) by Fabio Ciucci 1997-99 This applet is a modified version of TmapCube that can work as a selector menu, where each face of a cube is a selectable link. This applet is fully parametrized, so you can change the size and movements of the cube. This feature works only when you register the applet and receive a unique code. ****************************************************************** NECESSARY FILES. As well as image files for the faces and optional background and/or foreground images, the following 3 ".class" files must be uploaded: CubeMenu.class Lware.class anfy.class Plus, CubeMenu.jar for speedy loading on recent browsers. ******************************************************************* EXAMPLE Insert the tag in your html document as follows to add this applet to your page (Comments after the ";" symbol are code explanations and acceptable min/max values. They are not part of the applet language): ; Registration code (if you have it) ; Reglink opened in new frame? ; Name of new frame for reglink ; Resolution (1 .. 8) ; Image 1 to load ; Image 2 to load ; Image 3 to load ; Image 4 to load ; Image 5 to load ; Image 6 to load ; Link for face 1 ; Link for face 2 ; Link for face 3 ; Link for face 4 ; Link for face 5 ; Link for face 6 ; Statusbar message for face 1 ; Statusbar message for face 2 ; Statusbar message for face 3 ; Statusbar message for face 4 ; Statusbar message for face 5 ; Statusbar message for face 6 ; X Rotation speed ; Y Rotation speed ; Z Rotation speed ; Optional background image ; Red in background (0 .. 255) ; Green in background (0 .. 255) ; Blue in background (0 .. 255) ; Clear the background ("YES" - "NO") ; Float mode ("YES" or "NO") ; Float window width ; Float window height ; Float window x position start ; Float window y position start ; Float window title ; Float win. always on top (YES,NO) ; Optional image over applet ; Over image X offset ; Over image Y offset ; Memory deallocation delay ; Loading task priority (1..10) ; Task priority (1..10) ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java.; Message for no java browsers. ; End of applet tag ******************************************************************** INSTRUCTIONS. The following instructions describe how to change parameters: Attempting to change the credit parameter will disable the applet. To activate the reg parameters read the shareware registration notes. In the "regcode" parameter, place the registration code you purchased from the author. If the code is correct and the applet is run from the registered domain name, you can use "link" parameters to link to a URL when the applet is "clicked". If you set "regnewframe" to "YES", you can specify a specific frame location for the reglink: "_blank" : To load the link in a new blank unnamed browser window. "_self" : To load the link into the same window the applet occupies. "_parent" : To load the link into the immediate FRAMESET parent. "_top" : To load the link into the top body of the window. You can also set a custom frame name, such as "myframe1". With the "overimg" parameter you can specify the name of an image that will be painted over the applet. The best options are transparent GIF images. NOTE: Animated GIF images are supported, but will be animated only on latest browsers (Netscape 4 and Explorer 4 or newer). With "overimgX" and "overimgY" you can center the image over the applet area. This applet CAN'T WORK AS A MENU without a registration code. You can load up to 6 different images to map on the faces of a cube. If you place the same image name on all 6 image parameters, all faces will display the same image. Otherwise you can display 2, 3, 4, 5, or 6 different images. The best choices are 3 and 6, because with 3 different images placed in the same order of the example above, you will see no duplicate images in the same frame. Filling all the faces of the cube with 6 different images can be done, but loading time will increase. The GIF/JPG images MUST all be 256*256 pixels OR all be 128 X 128 pixels in size. No other sizes are allowed, and you can't mix 128*128 images with 256*256 images in the same cube applet. NOTE: Using 256*256 images is useful only when the applet size is greater than 150. You can mix GIF and JPG formats in the same cube but not the image size. "Res" is a sort of zoomer. Res=1 is normal size, res=2 is double size, etc. Remember to multiply "width" and "height" tags to coincide the value for "res". If this is 1, the multiplication is unnecessary. With the "rotx", "roty" and "rotz" parameters you can control the rotation speed of the cube. With "backr", "backg" and "backb" parameters you can control the RED, GREEN and BLUE components of the background colour. You can optionally load a background image, placing its name on the "backimage" parameter. This image must be the same size as the applet if res=1. If it is res=2, it must be half the size of the applet, and so on. You can disable the background clear routine by setting "NO" to "clearback" parameter. ***** The floating mode: Optionally, you can enable the "floating window" mode. The treemenu applet, then, will appear in a floating external window, and will leave free all the other frame space on the web site. But, you still have to create a small horizontal or vertical frame (maybe 1 or 2 pixels large), containing the applet, 1 pixel large. To enable this mode: 1) Set "floatmode" to "YES" 2) Copy the applet width in the "floatw" parameter 3) Copy the applet height in the "floath" parameter 4) Set the applet width=1 and height=1 At this point, you just have to customize it using those parameters: The window title must be written in the "floatitle" parameter. The starting X and Y position where window should apper, must be written in the "floatx" and "floaty" parameters. Note: the coordinates are relative to user screen, so result can change depending on screen resolution. If you want the window to be always on top and visible, set the "floatinfront" parameter to "YES". This could be useful for someone, and annoying for others. Note: the "floatinfront" option will have no effect on some versions of Internet Explorer.