Forum Moderators: open

Message Too Old, No Replies

Javascript vs PHP for sliding menu..

is java more compatible for menus?

         

Timboo

11:50 pm on Oct 16, 2004 (gmt 0)

10+ Year Member



Hi all,

I'd like to implement a sliding 'dropdown' type menu (similar to this - [chipchapin.com...] ) and was wondering if Javascript would in fact be more useful than a PHP version? Would I run into browser incompatibility by using a Java version vs the server side processing of a PHP version? It just appears that the java functionality may be a little easier to implement - also anyone point me in the direction of some nice freebie designs :)

Many thanks
Tim

Rambo Tribble

1:54 pm on Oct 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First off, Java and JavaScript are not the same; why, they are hardly even related. Second, the browser at the client is the domain of JavaScript while the server is the operating domain of PHP. Clearly, anything you want to do at the client, like a drop down menu, is a JavaScript application. (Though, to confuse matters, it might be possible to use a Java applet at the client for the same effect, but Java applets are sooo passe).

Drop down scripts are a dime a dozen, some even use CSS without JavaScript (but those don't feature a smooth scrolling action). Just Google "drop down menu" and you'll find a gaggle.