Click to See Complete Forum and Search --> : Dynamic menus


Andrewpca
09-10-2005, 08:49 AM
Hi,

I know how to write dynamic menus in javascript but that is client side. Has anyone got any cool script for doing the same in php? just a few sliding drop down menus etc etc. Or any tips? I'm pretty new to this so any help would be most welcomed.

Thanks. Andrew.

LiLcRaZyFuZzY
09-10-2005, 09:54 AM
it can not be done in php, php is a server-side scripting language

Andrewpca
09-10-2005, 10:06 AM
ok - so how do you write a menu like that but at the same time get around client security issues such as I am currently experiencing with javascript? The menu is on www.p-c-a.co.uk. Thanks.

mpierce
09-10-2005, 10:20 AM
Go to the below site for a great js drop down. I have used it on three sites. It's founf on the dynamic drive web site. the below link is to his personal site but I belive you can get to the menu system from there also.

HV Menu- by Ger Versluis (http://www.burmees.nl/)

M
Wolfeboro NH

LiLcRaZyFuZzY
09-10-2005, 10:20 AM
what is your menu supposed to do?

mpierce
09-10-2005, 10:31 AM
Hello all;

Any ideas on this one ?

Below is a scrip that I placed on a page in an Iframe.

When the option in the select is onchange, it opens a PDF

Unfortunately, the PDF opens in the 280 x 280 small Iframe

Where [if it the correct answer at all] would I put the HTML Target=_blank
to open the pdf in a new undefined page?



<form name="ex3" action="xfer.php" method="POST">
<div align="center">
<select name="xfer" size="1" onchange= "location = '' + this.options[this.selectedIndex ].value;">
<option tabindex = "1">CHOOSE ONE</option>
<option tabindex = "2" value="forms/pdf/Aug 05.pdf">August 2005</option>
<option tabindex = "3" value="forms/pdf/Aug 05.pdf">July 2005</option>
<option tabindex = "4" value="forms/pdf/Aug 05.pdf">June 2005</option>
<option tabindex = "5" value="forms/pdf/Aug 05.pdf">May 2005</option>
</select>
<noscript><input type="submit" value="Go!" />
</noscript>
</div>



MPIERCE
Wolfeboro NH

Andrewpca
09-10-2005, 10:45 AM
The menu is just supposed to provide a navigation function thats all....
I looked at the dutch kittens site and found the script files....but I can't make head nor (fluffy)tail of them....it's all greek to me! What is the name of your main menu script file on the burmees site? Thanks so much.

Andrewpca
09-10-2005, 10:47 AM
I'll be quite honest I don't quite understand the pdf way of doing this. COuld you please explain exactly what happens if I do it this way?

LiLcRaZyFuZzY
09-10-2005, 05:09 PM
if you are looking for an alternative drop down menu:
http://www.alistapart.com/articles/horizdropdowns/

theuedimaster
09-10-2005, 08:43 PM
Couldn't you just make a drop down window by having a height change in the hover attribute of a div in css?

LiLcRaZyFuZzY
09-11-2005, 12:27 AM
with javascript?
with css it wouldnt work for IE, unless you use that very small javascript program from ALA

aznchong91
09-11-2005, 01:19 AM
Uh..., this is supposed to be the PHP forum...

Andrewpca
09-11-2005, 01:38 PM
crazy fuzzy you have been very helpful. Thanks very much!

LiLcRaZyFuZzY
09-11-2005, 05:58 PM
you are welcome! ;)

Andrewpca
09-12-2005, 01:27 PM
Ta chick - but it ain't over yet...
Quick qu....

Say I find the perfect menu script. Can I write it in a single menu.js file for example and then simply have a link to it in each page? Or use a php insert. Is that sort of thing advisable?

A