Forum Moderators: open
the problem is i dont even know how to create a very simple drop down navigation...so whr and how should i start...so that my ultimate goal is to create a very stylish navigation bar...
please help!
You want something to slide.
Build a method that slides a layer.
(Do you want it to slow down as it approaches it's destination or always move at a set speed?)
Build a method that shows a layer.
Build a method that hides a layer.
Build a method that aligns sub-layers.
It's just part of the process. Separate everything out into it's various steps, and create accordingly. Nothing looks too tough when it's just a cog. But when you always focus on the machine, how all the cogs work together, it becomes overbearing.
Good scripts to work with are circular menu scripts. (I made one that was a PHP/JavaScript merger). They take a bit of code to do as HTML is square. :)
That being said.... menus are simple.
<div id='menu1'>....</div>
<div id='menu2'>....</div>
<div id='menu3'>....</div>
then to show the menu, a link with:
onClick='show("menu1");'
show, of course, reads as:
show(layerName) {
document.getElementById(layerName).style.visibility='visible';
}