This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > April 2005 > tree menu question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
tree menu question
|
|
| (_seb_) 2005-04-29, 7:21 pm |
| I have to use a tree menu system for the first time.
I thought I read somewhere that P7 tree menu was best because it didn't
use javascript but only CSS.
But I looked into P7 tree menus, and they do use a lot of javascript.
Now I am wondering if the P7 tree-menu system is really the best one out
there, and if there are other tree-menu options that actually don't use
javascript at all.
Also, I am wondering if I would rather build a tree-menu system in PHP
(basically replacing all the javascript functions with PHP, and
reloading the page after each click).
Has anybody done that before, or are there ready-made PHP tree-menus,
like the ready-made P7 tree menus?
thanks
--
sebATwebtrans1DOTcom | http://webtrans1.com | creative web designs
| |
| Tim Gallant 2005-04-29, 7:21 pm |
| "(_seb_)" <seb@webtrans1REMOVE-THIS.com> wrote in message
news:d4tuha$8jb$1@forums.macromedia.com...
>I have to use a tree menu system for the first time.
>
> I thought I read somewhere that P7 tree menu was best because it didn't
> use javascript but only CSS.
You misunderstood. The *links* are hard-coded, not merely javascript links,
as most .js menus are (including DW, Fireworks, Xara etc). But the functions
use js.
tim
| |
| Al Sparber- PVII 2005-04-29, 11:15 pm |
| A tree menu requires javascript. There are no CSS equivalents to
onClick. You could simulate a tree menu with static HTML and/or CSS or
with a server-side technology - but the menu cannot expand/collapse
without script.
If you want a free solution, use our SwapClass extension. There is also
a SwapClass menu tutorial on our site.
--
Al Sparber - PVII
http://www.projectseven.com
DW Extensions - Menu Systems - Tutorials - CSS FastPacks
---------------------------------------------------------
Webdev Newsgroup: news://forums.projectseven.com/pviiwebdev/
CSS Newsgroup: news://forums.projectseven.com/css/
RSS/XML Feeds: http://www.projectseven.com/xml/
"(_seb_)" <seb@webtrans1REMOVE-THIS.com> wrote in message
news:d4tuha$8jb$1@forums.macromedia.com...
>I have to use a tree menu system for the first time.
>
> I thought I read somewhere that P7 tree menu was best because it
> didn't use javascript but only CSS.
>
> But I looked into P7 tree menus, and they do use a lot of javascript.
>
> Now I am wondering if the P7 tree-menu system is really the best one
> out there, and if there are other tree-menu options that actually
> don't use javascript at all.
>
> Also, I am wondering if I would rather build a tree-menu system in PHP
> (basically replacing all the javascript functions with PHP, and
> reloading the page after each click).
>
> Has anybody done that before, or are there ready-made PHP tree-menus,
> like the ready-made P7 tree menus?
>
> thanks
>
> --
> sebATwebtrans1DOTcom | http://webtrans1.com | creative web designs
| |
| (_seb_) 2005-04-29, 11:15 pm |
| heh thanks.
I started re-writing the tree-menu system in PHP, and it's working fine.
I am switching the CSS styles from
display:none;
to
display:block;
like you did, and retreiving a 'tabindex' number for each menu option
like you did.
So your tree-menu was defenitely very helpful for getting all the main
concepts.
But in my situation, new content must load in the page even when a MAIN
menu title is clicked, so I don't need javascript, because the page
reloads each time something is clicked.
Plus, I want all sub menus to collapse automatically when another main
menu option is clicked (so that only the sub-menus of the last clicked
option are showing at any given time), and that was not possible with
your menu system.
All in all, all is well, thanks for the inspiration, and I got to go
back to work because this all is a lot of work!...
Al Sparber- PVII wrote:
> A tree menu requires javascript. There are no CSS equivalents to
> onClick. You could simulate a tree menu with static HTML and/or CSS or
> with a server-side technology - but the menu cannot expand/collapse
> without script.
>
> If you want a free solution, use our SwapClass extension. There is also
> a SwapClass menu tutorial on our site.
>
--
sebATwebtrans1DOTcom | http://webtrans1.com | creative web designs
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|