Forum Moderators: not2easy

Message Too Old, No Replies

Drop Down Menu

CSS or Javascript?

         

webcolors

9:01 pm on Jan 2, 2007 (gmt 0)

10+ Year Member



Hello,
I'm working on a big site, with 7 template, I'm currently using javascript drop down menus (Dreameaver behavior) and having a lot of trouble with JS. If I add an item to one of the drop down menus, I have to do the same in all other templates which makes my life so hard.
I'm trying to find a better solution so that if I update the nav bar on one template, I can copy and replace the other nav bars in the other templates. Should I stick with js, or change to css, would css allow me to copy and paste the whole nav bar and paste it into the other templates without errors?

PS. I tried to insert the nav bar as a library item, and it didn't work, I also tried the server side include and it didn't work.

Thanks for your help.

Fotiman

4:06 pm on Jan 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Take a look at the Yahoo Library [developer.yahoo.com]'s Menu Control [developer.yahoo.com]. I think there's a good argument to be made for these type of menus being a combination of JavaScript and CSS.

rocknbil

8:29 pm on Jan 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Similar discussion here [webmasterworld.com].