Welcome!This is where you can find my scripts. Here's also a small FAQ.Script 1 The first script I made. When you click on a title, it opens a submenu and changes the picture. A quite simple script, but it works nicely. Script 2 The same as the previous one, but you can only have one submenu open at a time. Script 3 Completely different! I received a lot of questions from people who wanted to use my script for a horizontal menu. Of course, it doesn't require the movement of the objects below, since there are none. Anyway, here's a simple script. Script 4 This script is the same as the third, but it's for all you morons who want the submenus above the titles, but can't figure out to modify the script. Brand new feature!!!Don't worry about modifying the script!Now you can configure your very own. Here is a generator for a vertical menu. And here you can create a horizontal one. Another brand new feature!!!The PHP code is now available for download.Vertical menu generator is here. Horizontal menu generator is here. F.A.Q.1. How do I add more menus?This is easy! Add more titles and submenus with the same syntax as the previous ones. The id:s should be title0/submenu0, title1/submenu1, title2/submenu2 etc. It's important to change the value of the nummenus variable. Due to my sloppy coding, this must be one greater than the larges number X in titleX/submenuX. Note: A lot of people forget the numbers of the opened/closed pictures. Don't do that! 2. The submenus come out on top of the following title. How do I solve this? The syntax is toggle(X,move), where the move value tells the script how far (in pixels) you want to push down the objects below. Increase this value and it'll probably work. 3. Can I have a title work as a direct link? Just use this syntax: <div class="title" id="titleX" style="top: YYpx;"> <a target="yourframe" href="yourlink.html">Your link<img name="picX" id="picX" src="closed.gif" border="0"></a> </div> <div class="submenu" id="submenuX" style="top: 0px"></div> The submenu id is absolutely necessary to get the script to work properly. You can also use the title both ways by keeping the toggle(X,move) but removing the return false. 4. Is there a way to add another level of submenus? No! Of course there is, but that would be a totally different script and I haven't made one. 5. How do I get the script to work with Netscape 6? The scripts you can download from this page all work with Netscape 6. It took some time to understand the new features, but at least it works. 6. What about Opera 5 then? Yes, they should work with Opera 5 too. It was just a minor adjustment. It seems that Opera return an uppercase result when asking for the visibility of an object, so the trick was to change the line "if (submenu.visibility == visible) {" into "if (submenu.visibility.toLowerCase() == visible) {". If you use one of my scripts, I'd like to put up a link to it. Please send me the url by email. Or simply write it in this field and click "Send". |