Home >Web Front-end >HTML Tutorial >I'm wondering how to maintain the status when clicking a link on a multi-level menu when jumping to a new page? ? ? _html/css_WEB-ITnose

I'm wondering how to maintain the status when clicking a link on a multi-level menu when jumping to a new page? ? ? _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:19:111441browse

This post was last edited by yy543209580 on 2012-05-10 21:15:36

Now a tree menu has been written and placed in the left table. The initial state is collapsed together. Click on the tree Expand the menu, then click on the subdirectory below to open the corresponding content in the table on the right. However, since the opened content actually opens another linked web page, the content in the table on the left is also replaced, so the content on the left is The tree menu in the table has returned to the contracted state. When there are many subdirectories, if you want to view other subdirectories, you have to repeatedly expand the tree menu to find subdirectories. It seems very troublesome. Please call the experts. Is there a way? Let the menu on the left remain expanded without clicking to shrink it. After clicking the relevant link of the subdirectory, the menu on the left remains expanded?

Reply to the discussion (solution)

The content on the right can be made into a page. Or ajax partial refresh

can record the cookie, store the cookie just clicked, and when the jump is refreshed, take out the cookie and automatically expand it according to the value.

It is more convenient to use iframe

Thank you everyone for your replies. I solved the problem using dTree!

dTree?

dTree?
Yes, you can find out in Baidu!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn