Snippet name: TransMenu
Author: summean
Version: 0.3 (Beta)
More info: View This Snippet
Description:
This is a nice javascript drop-down menu created by Aaron Boodman over at youngpup.net. I have simply created a couple of snippets that will allow this menu to work with Etomite.
Currently, it works with 3 "levels" of links. More may be added later though.
To install:
Download the zip file below.
Unzip. Notice the 2 text files. Open, then copy/paste each of them into a new snippet in your manager. (TransMenu.txt would be snippet: TransMenu)
There are 5 files in assets/images/transmenu/ and 3 files in assets/site/. Copy/Upload these files to your webserver where Etomite is installed, keeping the directory structure the same!
Open the template you would like to add this menu to.
In the <head> section, add [[TransMenu_Head?id=__]] where __ is the id of the folder containing the links you want to display. (You could just add [[TransMenu_Head]] and the snippet will default to 0, which is the Etomite root)
Change your <body> tag to <body onload="init()">
In the body section of your template, add [[TransMenu?id__]] where __ is the id of the folder containing the links to display. Make sure you use the same id as you did for TransMenu_Head!! (Again, you could also just add [[TransMenu]] and the snippet will default to 0, which is the Etomite root).
Style your menu by editing transmenu.css in assets/site/ ...
Updated: March 4, 2005
Download: TransMenu 0.6.3
TransMenu_063.zip 37.76K
1323 downloadsJust the updated snippets:
TransMenu_Head.txt 2.25K
631 downloads
TransMenu.txt 2.53K
598 downloadsJust the updated CSS File:
transmenu.css.txt 3.11K
584 downloadsVersion History:
*0.6.1 - Initial release
*0.6.2 - XHTML 1.1 compliant, Friendly URL support
*0.6.2 - Removed {overflow: hidden;} from style sheet to fix a scrollbar bug.
The javascript is exactly how it was when I downloaded it from youngpup.net. You can edit the files if you want change menu speeds, change the path to the images, or whatever. Although the author of the script doesn't "support" it, he and others post problems & resolutions here so you may want to check that out before you ask a question here.
As you may notice, there are 2 javascript files (transmenu.js & transmenuC.js) .. transmenu.js contains all the code comments and is spaced in a way to make it more easily readable. transmenuC has no comments, and no extra lines to reduce the size of the script. By default, the snippets call transmenu.js, but you can easily change this in the snippets to call transmenuC.js ... it may improve you load time a little bit!
Edited by summean, 14 September 2005 - 04:02 AM.










