Dreamweaver question...
- Started
- Last post
- 15 Responses
- Stoph
OK!
I have a basic website with a table structure and hotspot navigation (taken over building it as it is a new job) in dreamweaver and I want to create a drop down menu on one of the nav buttons. Is a layer the best option for this and how do I keep the layer in a position relative to the nav bar because at the moment it is fixed relative to the page and as the website has been designed to be centred in the browser I don't know how to set up the layer to be in the right position...
Help please!
- spot130
I think you're going to run into trouble using a layer in a site you want to centre. The drop down menu will require co-ordinates which are fixed. I would recommend using Flash if you can.
- T-Dawg0
i've had the same problems before. creating a dropdown that centers to the browser with layers is going to take a lot of time and effort, and i'm not sure if it's even acheivable through dreamweaver (unless you're a Javascript guru)
i found a free script for a dropdown menu that i use that i can nest in a table frame that can be centered. menus that can be nested in tables are hard to find. So i've used this script quite a few times, not the prettiest thing, but it does the job.
here is the DHTML script
http://simplythebest.net/scripts…
- Stoph0
Thanks guys!
T-Dawg - that link doesn't work mate! What site did you find the script on?
Cheers again!
- warheros0
there is something built in fireworks? i believe? that you can your own popup menus or what have you. then just open that in dw.
- runDMB0
I had that problem with a site recently. You can fix it by getting the size of the browser window using javascript. Subtract how wide your layout is from that and divide the result by two. Then you add this number to your left position for the dropdown. You also need a javascript that repositions everything if the browser window is resized. It does work though it's a bit of a hack. I'm sure someone cleverer than me would be able to fix it quite simply.
Try Youngpup for quality dropdown menus:
- T-Dawg0
found it at http://www.simplythebest.net
then in DHTML scripts
---> menu scripts
--->page 2
---> called "Quckmenu horizontal DHTML dropdown menu"
2nd from the bottom
- welded0
http://www.alistapart.com/d/hori…
Just rework it a bit and it will work just fine.
- Blofeldt0
I'd put a div inside a table cel, and then set it's position to relitive. The use DW's show hide behaviors for making it visable and invisable or display none. I hate those prepacked drop down menus, I can never get them right.
- ********0
Behaviours > Show Pop Up Menu.
?!?!?!?
Works outta the box.
- Blofeldt0
WHAT?
I guess this is what happens when you don't trust DW not to fuck it all up and make up complicated workarounds rather than explore the package ;p
- ********0
ha!
Well... this particular function is a little shacky if you're using templates, but you can make it work, and work it does! Quite well actually.
- RustyBadge0
There's a CSS solution which is the best all round solution.
But I don't have a link to it to hand...Sorry!
- ********0
Surely you'd need some javascript in there though....
- RustyBadge0
I'm sure it was pure CSS....
It's on my PC at home. If I remember, I'll dig it out and send it to you. Or you can contact me this evening - I am home from 4pm onwards (euro time) and you can mail - my site is www.theretroworld.com
- Blofeldt0
I'm pretty sure you'll have to user Javascript to show and hide layers