How to make a menu (opened by an on click event) stay open on the following pages

Hi,
I have a side menu that shows the main headings only, when clicked it displays the rest of the menu using and slide effect, with an option to close the menu, on reversing the slide. This all works perfectly but what i want to be able to do is, when a users opens a menu and then uses that menu to navigate to another page, on that new page i want that menu that was opened to stay open on this next page.
The code i have so far is below:
// the function for the effect
function MM_effectBlind(targetElement, duration, from, to, toggle)
    Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
// the function to ensure the menu is unopened on page load
function myFuncDisplay (){
document.getElementById ('menu1').style.display='none';
document.getElementById ('menu2').style.display='none';
document.getElementById ('menu3').style.display='none';
document.getElementById ('menu4').style.display='none';
document.getElementById ('menu5').style.display='none';
<body onload="myFuncDisplay ();">
// the first menus code in the side menu that creates the on click and close menu actions
<p onclick="MM_effectBlind('menu1', 1000, '0%', '100%', false)"  onMouseOver="this.style.color='#FFFFFF';" onMouseOut="this.style.color='#333333';">Menu One </p>
    <div id="menu1">
          <p class="close" onclick="MM_effectBlind('menu1', 1000, '100%', '0%', false); " onMouseOver=" this.style.color='#333333';" onMouseOut="this.style.color='#FFFFFF';"> close menu </p>
        <p><a href="firstLink.php">First Link</a></p>
        <p><a href="secondLink.php">Second Link</a></p>
        <p><a href="thirdLink.php">Third Link</a></p>
I have tried setting a variable in the on click event then in the function myFuncDisplay() doing if else clauses to check if the variable was set and if so displaying the div as block in that function, expecting just that menu to display opened in sunsequent pages, it didn't work, itstead it displayed all menus open?
Please can someone help me with a suggestion of how I can make this work, thank you in advance, i look forward to any replies.

Hi,
thanks for your reply, i am not actually using the spry menu, i am using the 'blind' effectthat I have adapted as per the code given, I wanted to make a menu that would open on click and the effect i have used works well, now  however I want the effect to remain open on different pages, as explained. i am looking for a way of adapting the function that makes the rest of the menu hidden on page load. So on page load the menu is hidden as per adapted code, apart from the menu heading, if the menu heading is clicked the menu opens, with an option to close it, if the user clicks on a link in the menu the new pages loads and the menu is   closed as per the onload instruction , I want a way to distinguish if the menu was clicked in one page it will recognise that and in the next page will not hide that particular menu until the user closes it themselves.
Hope that makes it a bit clearer? look forward to any further help.

Similar Messages

  • How to make context menu in Windows 10 application?

    How to make context menu like this? With touch friendly and DPI per monitor awareness. Also considered WPF variant.

    Hybrid app? Do you mean Universal app?  Please explain what you're trying to make.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • How to make a menu for MHP

    Hi, im trying to make a menu for mhp app, and i dont know what its the best 'tactic' for this.
    My idea is to make own class like this:
    class Menu extends HContainer
         private Font fuente;
         private Color colorLetra, colorFondoTexto, colorFondo;
         private HTextButton[] boton;
         int x, y, ancho, largo;
         // numVisible es el n�mero de valores que queremos se puedan ver en el men� al mismo tiempo
         // x, y es para que nos indique el punto inicial donde queremos que aparezca el men�
         // ancho para saber el ancho del menu
         // largo para saber el largo que debe tener - debe relacionarse con el n�mero de elementos a mostrar en pantalla
         public Menu(String[][] matriz, int x, int y, int ancho, int largo, int tamFuente)
              this.setBounds(x,y,ancho, largo);
              this.setVisible(true);
              colorLetra = Color.white;
              colorFondoTexto = Color.green;
              System.out.println("longitud de la matriz:"+ matriz.length);
              fuente = new Font("Tiresias", 1, tamFuente);
              int esp = 0;
              boton = new HTextButton[matriz.length];
              System.out.println("A ver si veo el elemento de la matriz: "+ matriz[5][1]);
              for (int i = 0; (i < matriz.length) ; i++){
                   System.out.println("for " +i);
                   // A ARREGLAR
                   boton[i] = new HTextButton(matriz[1], 0, esp, 314, 20, fuente, colorLetra, colorFondo, new HDefaultTextLayoutManager());
                   esp = esp + 20;
                   if ((i != 0) & (i != matriz.length-1)){
                        boton[i].setFocusTraversal(boton[i-1], boton[i+1], boton[i], boton[i]);
                   else if (i == 0)
                        boton[i].setFocusTraversal(boton[i], boton[i+1], boton[i], boton[i]);
                   else boton[i].setFocusTraversal(boton[i-1], boton[i], boton[i], boton[i]);
                   this.add(boton[i]);
         } // fin constructor
    its a good idea? or there are better. Its first time i try make gui menu, and i dont know how to make it. I dont find information at internet, and ther isnt in book 'Interactive TV standards'. If you know some place with good tutorial (or book), please tell me!
    Thanks all
    Sorry my english

    This is all way beyond me, but couldn't you just make an HTML page that linked to the video files on your server and use a browser?
    MtD

  • In JSF, how to make a menu with access control?

    In JSF, how to make a menu with access control?
    The access control can be guided by programming, database or other means if possible?
    Thanks

    I want to make a dvd menu in iMovie because i don't have IDVD and can't find anywhere to download it?
    For making DVDs I would recommend iMovie 06 and iDVD 09 both readily available on Amazon or eBay.  Shop for iLife 06 and iLife 09.
    You can make menus and chapters with any version of iMovie except the latest one. There's nothing wrong with iMovie 11 either but I prefer iMovie 06.
    By using iMovie 06 and iDVD 09 I make DVDs with professional moving menus with very little effort. They look almost as good as Hollywood.

  • When I click on the tab with a + on it, located next to the active tab a new page does not open. If I click on "New Tab" in the File menu a new tab does not ope

    When I click on the tab with a + on it, located next to the active tab a new page does not open. If I click on "New Tab" in the File menu a new tab does not open.

    Hi jcatx2013, we don't really have enough information on your system to make specific suggestions...
    Could you test in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • How to make smart shape buttons turn colors after clicking on them?

    How to make smart shape buttons turn colors after clicking on them?  I am using buttons as links to learning paths and would like users to know which buttons they have allready clicked on when returning to main menu.

    This is reply I got from Adobe support.  I will try and let you all know what works best:
    Here is the workflow which you can follow to achieve this functionality.
    Puspendra: You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Puspendra: Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Puspendra: Or you can edit that button on which you are working, from properties Panel.
    Puspendra: The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    Puspendra: You will find these all optionns, when you will click on that button and then click on the properties panel.

  • How to open Camera Raw in Bridge, it comes up with the following error

    How to open Camera Raw in Bridge, it comes up with the following error Bridge parent application is not Active   Bridge requires that a qualifing product has been lanched at least once to enable this feature.  It opens in Photoshop CS6 & Elements 10 but not Bridge?

    You need to look at all programs in your uninstall list, and see if you spot any old trials that are no longer active.
    Camera Raw in Bridge and PS are the same program, so its not the program but access.  Would have been nice it you had stated OS, but here are locatons of camera raw for both OS.
    Win           Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings    note: appdata a hidden file.
    Mac          Users/[user name]/Library/Preferences

  • In Flex,how to make lost focus of textinput on enter click?

    Hi
    In Flex,how to make lost focus of textinput on enter click of keyboard ?
    Thanks,
    Sunil

    Hi vibhuti,
         I  got your point but it will not helpful to me.
        But I found solution ,When user clicks enter key make stage.focus = null  so it will lost focus on text input and make focus in my current Alert Box.
    Thanks,
    Sunil

  • How do you make the top margin .5" on page 1 and 1.0" on all of the following pages?

    I have been a PC user since 1987 and find the iWorks programs far less intuitive than the MS Office products.  I have been using a Word doc template, which I customized back in 1990, and all of my client records use this template.  So, as I am converting to Apple, I need to find a way to adapt the iWorks Pages to accomodate my doc needs, if that is possible.  As indicated in the question, I need to set the top margin on page 1 to .5" and, using either a section break or a page break, enable the top margin to be 1.0" on all of the following pages.  I read somewhere on the net that this might be accomplished by using a layout break but, when I tried that, the margins on all pages seemed to still be connected to each other.  Is there a way to accomplish my objective?

    Okay, narrow is narrow.  Just need to make sure we're clear on the point that we're discussing the top and bottom margins. 
    I just found another post that led me to "Defining Layout Margins" in the Pages help files.  Between that post and the information in this help message (specifically item #4), I was able to deduce that Pages does enable me to do exactly what I need.
    1 - set the page margins on page one;
    2 - create a layout break at the bottom of page 1, which will effect the next page;
    3 - with the cursor on page 2, open the inspector;
    4 - go to the layout inspector;
    5 - change the "before" margin.
    In the layout inspector dialog box, "before" = "top" and "after" = "bottom", not as in paragraph or line formatting.  I don't know why it couldn't just say top and bottom.  That would eliminate a lot of confusion.
    This has enabled me to have one top margin on the first page and a different top margin on all other pages. However, as nothing is perfect, this process must be repeated on each page.  A little more work but definitely worth the effort, if you need this type of formatting.  Better than not at all in other words.
    Thanks for your time and help.
    Ross

  • When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it, fix?

    When I start mozilla or open any link in a new window I get the desired page to load but an additional new tab page opens up along with it. I've tried switching my homepage to different things (new tab, firefox home, show blank page) but I always get an additional new tab to open. How do I get only a single page to open?

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. <br>
    '''Note''': ''This will cause you to lose any Extensions and some Preferences.''
    *Open websites will not be saved in Firefox versions lower than 25.
    To Reset Firefox do the following:
    '''For Firefox versions previous to 29.0:'''
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox"[[Image:Button reset]] button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    '''For Firefox 29.0 and above:'''
    #Click the menu button [[Image:New Fx Menu]], click help [[Image:Help-29]] and select ''Troubleshooting Information''.
    Now, a new tab containing your troubleshooting information should open.
    #At the top right corner of the page, you should see a button that says "Reset Firefox"[[Image:Button reset]]. Click on it.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this was Safari preferences, open new window to homepage...

    I have tried to set my homepage to a specific website. However, whenever I open a new Safari window, it always returns to the last page I was at before I closed Safari. Any ideas? I did this under Safari preferences, open new window to homepage...

    Safari is opening using the resume feature. To disable that, quit Safari using Command+Option+Q or Hold Option when choosing the menu item Safari>Quit.

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document "Tina-19.jpg" could not be opened. Photoshop cannot open files in the  "Adobe Photoshop JPEG file" format. What does this mean? I have opened my phot

    I am suddenly unable to open my pictures in Adobe Photoshop. It gives the following message: The document “Tina-19.jpg” could not be opened. Photoshop cannot open files in the  “Adobe Photoshop JPEG file” format.
      What does this mean? I have opened my photos in Adobe Photoshop for years and suddenly I get this message and can't open any of my pictures

    JoeLib wrote:
    You type way faster than me Gene.
    Well, not necessarily in this case.
    According to the time stamp, Gene posted his answer a bit over three hours before you did, Joe.
    Gene's post:       Dec 29, 2014 5:54 PM
    Joe's post:          Dec 29, 2014 8:57 PM

  • Why do PDF files in email open in safari with a quick time logo but only one page shows and I can't scroll through the following pages?

    Why do PDF files in email open in safari with a quick time logo but only one page shows and I can't scroll through the following pages?

    Try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.

  • Firefox doesn't print or open preview, when I select print preview I get the following error: Couldn't open the file. It may be corrupt or a file format that Preview doesn't recognize.

    Firefox doesn't print or open preview, when I select print preview I get the following error: Couldn’t open the file. It may be corrupt or a file format that Preview doesn’t recognize.
    However, when I print from Safari or another program, I have no problems
    == Yesterday

    The only solution to corrupted files is to restore from your back up.
    Regards
    TD

Maybe you are looking for

  • Sending email to the work email address of a group in AddressBook

    Is it possible to send an email to a group of users but only to the work email addresses of those users ? Some users have multiple email address (work, home,...) but I don't find any info or logic how Mail is selecting an address from the AddressBook

  • Security Setup not working

    Hi, As a part of security setup we have done the following things: - Users created and assigned as members of groups. One group is created per entity. - Groups have been provisioned for the application and given security class access - Security class

  • My itunes keeps closing

    My itunes keeps closing, i have tryed uninstalling and reinstalling. its says itunes has encountered a problem and windows can not find a solution. Please can someone help thanks

  • Oracle 8i Support

    Is there a company that can provide support to Oracle 8i ? Can the company provide corrective patches in case there are new problems/bugs that have not been resolved during the premier & extended support period 2006 ?

  • How to Poluate List ?

    I have the following table ADRESSES : Create table adresses( code varchar2(3) NOT NULL, type char(1), nom1 ..., adresse ..., cp ..., localite ..., primary key (code)); I want to poulate my list with all the code from the ADRESSES table. So, I have cr