You are here: Re: Collapsing Menu - please help « PHP Programming Language « IT news, forums, messages
Re: Collapsing Menu - please help

Posted by Malcolm Dew-Jones on 09/18/05 01:45

rigga (rigga@hasnomail.com) wrote:

: Nobody can help? or have I not explained this well enough?

You explained it fine, but the problem involves a lot of code and is not
an interesting tricky problem, just a long one to explain, with a straight
forward answer if you just work through it yourself.

Basically, you need to figure out which "echo" command is creating the
link that needs changing. Then you need to put an if/the/else around that
echo so it either outputs a link or a label, depending on what you want
for that menu thing. Then you have to figure out what variable or set of
variables contains the information that lets you decide whether it's a
link or a label.


# you receive input,
# and then your menu loop sets a loop variable
loop on menu things
{
if ($this_loop_entry is the "same" as the $expanded_menu_item)
{
echo "the html to make a label"
}
else
{
echo "the html to make a link"
}

} # end of loop

the exact details just require some elbow grease.



--

This programmer available for rent.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация