English 中文(简体)
找到相关的焦炭子,以保持新页的负荷。
原标题:Get related Jquery submenu to stay open on new page load?

我需要帮助menu

当一个小小小项目被点击和另一页被装上时,我会怎样获得一个子午线。

Code on jsfiddle

最佳回答

如果你重载整页,就必须向新页提交一些信息。 为此,你必须改变贵子菜单项目之间的联系,或 co。 在页数上,你必须把这些信息(url或cookie)加以压缩,并将其应用于你的菜单。 您还可以使用一些服务器边代码,在您的子菜单已经开放的地方使用事先放行的超文本。

在此情况下,保险金不是向你们展示它如何工作的良好助手。

http://www.un.org。

您可以做以下工作(未测试):

引自你的顶端菜单:<div> 独有的ID,即:

<div class="menutop" id="posts">

a 每一增加一小项目,即:

<li><a href="/Post/New#posts">Add New</a></li>

ry开菜单

$(document.location.hash).click();
问题回答

The code you provided works for me.

我赞扬你的代码,将“Users Add new”选项改为“Users/2009/3”:

 <li><a href="http://www.google.com/" target="_blank">Google</a></li>

http://jsfiddle.net/marcos fromero/UKvva/

http://www.ohchr.org。

在阅读了另一个答复之后,我发现,你想在离开你的网页后继续开放。 在这种情况下,我的回答没有帮助。





相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签