Is there a way to autoscroll the current accordion content to top of browser window?

So this is a topic I have seen brought up but never solved….
I have an accordion on my site which displays content larger than the browser window, so when you scroll down to the bottom of the content box and get to the next accordion topic and click on it stays in the same place in the broswer window however since the prior accordion content closes it leaves you scrolled half way down on the current content.
So is there a way to bind an action where it autoscrolls and brings the browser to the top of the clicked accordion content?
here you see the window scrolled to the bottom of the first accordion content and the second showing its hover state…. when you click on the "So i made.." content it leaves you with this...
the middle of the second accordion content, causing you to have to scroll up to the top of it to continue reading….
I found this jquery scrpit which supposedly would do it.  However since Muse exports is scripts differently it doesnt apply.
$('.ui-accordion').bind('accordionchange', function(event, ui) {
            ui.newHeader // jQuery object, activated header
            ui.oldHeader // jQuery object, previous header
            ui.newContent // jQuery object, activated content
            ui.oldContent // jQuery object, previous content
            $('html, body').animate({scrollTop: $(ui.newHeader).offset().top}, 1);
So now I need some help...
Thx
-Eric

Hello,
You can achieve this using the Anchors feature of Muse. Please follow the steps below :
- Click on Anchor option in the toolbar as shown in the image :
- Now click on the location on the webpage which you want to be the top of the page when click on Accordian panel triggers.
- It will place the Anchor on that location. Now it will ask you to rename the anchor. Please rename the anchor to something convenient.
- Now click on the first Accordian trigger and in the "Hyperlink" option in  the toolbar at the top, from the dropdown select the Anchor which you have added.
- Do same for all the Accordian triggers.
Now preview in a browser to see the results. Whenever you click on the Accordian trigger it will move to the location on the page where you have placed the anchor.
Note : There is a known issue with the Anchors feature not working with Safari 6 (The latest version of Safari). It is a known bug and is likely to get fixed in future versions. You can test it using other Browsers.
Hope this helps.
Regards,
Sachin

Similar Messages

  • Is there a way to have the page numbering always on top?

    I have a master page that has the page numbering on it, but have run into a problem. Some of the pages have PDF images that fill the page and when they're placed on the page, the page numbers are covered. On the Master Page, or the page itself, is there a way to set the page numbering to always be on top and not hidden?
    Thanks,
    Sean

    Open the layer panel and make a new layer.
    Go to the master page containing the auto page number. Select it. Drag the little icon in the layers panel to the top layer.
    Lock the layer so you can’t accidentally place anything else there.
    The numbers will always be above anything else in the document.
    Bob

  • Is there a way to make the current row not editable

    Hi, I'm using JDev 11.1.1.2
    In my usecase I have a Form , navigateable with next/previous , and for every row a I have a calculation which makes the row editable or not.
    For now I made it with disabled property on every input component set to some bean property which is calculated every time.
    My question is if there is some general way to make an Entity not updateable ?
    I tried with doDML() ... but the problem there is that this method is not called when switching the current row but rather when commiting. So the user can modified several rows and when pressing commit it will prevent some of the to be committed which would be confusing.
    Is there a method in the ViewObject that i can overwrite which is called every time the current row is changed? So I can see if the row was modified or not.
    Thanks, agruev

    Yes, there is always isAttributeUpdateable() in the ViewRowImpl, which you can override and enable/disable your attributes based on an enabling/disabling condition.
    Here is an example:
    public boolean isAttributeUpdateable(int i) {
    boolean updateable = false; /disable by default all arguments
    // enable, if your condition is met
    if ( meets_your_condition )
    updateable = super.isAttributeUpdateable(i); // let the framework decide based on your declarative settings
    return updateable; // return true/false indicator
    Nick

  • Is there a way to show the current URL for a WebHelp topic in the browser?

    RoboHelp 11, WebHelp.
    When I open the WebHelp project, the URL displays the start page for the Touchstone Help project: ..../Documentation/Touchstone/Content/Content.htm.
    As I go to different pages in the Help, the URL never changes.
    Our client consulting personnel often like to copy a URL to send to a client who has a question about a particular topic.
    Is there a WebHelp setting that supports display of the current URL?
    Thank you.
    Carol Levine
    AIR Worldwide

    Hi, Jeff.
    Internet Explorer 9.
    I've got the pointer in the topic.
    Right-clicking displays the following shortcut menu.
    When I click "Create shortcut" (the only option with "shortcut" in the name), the following message appears.
    After clicking Yes, the shortcut is on the desktop. The user must then right-click the URL, select Properties, copy the URL from the Web Document tab, paste it into an email, and send it.
    Is this the process as you understand it?
    Thanks.
    Carol

  • Is there a way to export the Table of Content?

    We need to insert audio files to each slide. There are 127 slides in total, and we need to name each audio file using the corresponding slide's names. To do so, I think to have the Table of Content exported is a good way. Is there a way to do this?
    we use Captivate 5.5.
    Thank you.

    Hi there
    The TOC is unique for each project. I fail to see how an ability to export one TOC and import into another project would help in any way.
    Cheers... Rick

  • I have a macbook pro running 10.6 Snow Leapord, is there a way to split the screen like I could with my old windows computer? So I can watch or surf on one and another task on the other?

    My laptop a macbook pro is my only connection with the outside world, I would like to be able if possible to watch or stream video content to my bigscreen tv as I easily can via the 1080 connection available on the two of them.
    But I would like to be able to keep the video playing on the external TV screen and use the computer screen to view other content on the web simultainously is that macbook pro posterous or MB Propetually possible?
    Any other part of this post below is 100% unnessisary and invalid with relation to my posted request for help leading to any answers resolving my situation thanks. Have a wonderful full life always with respect for self and all that is creation.
    ***********************************Excuse the added little incorperation of incredably creative crud keeping it clean but cra? with a P was ment to fit.
    Please just open your heart and help a Lep, Snow Lepord that is with down syndrom operating it thats me!
    There are many endless things life has to offer, but only for those able mentally to perform the details involved with the task, ask Jesus he tryed teaching others how to walk on water but they persisted with leaving it up to figments of heavenly spiritual imagination, I guess maybe he made a bad choice with his teachers he intended on taking it to spread among the others throughout the world?

    With the external screen connected and turned on, open the Displays pane in System Preferences. On the screen containing your menu bar, you should now see a Displays preference dialog box with an "Arrangement" tab in it. Click the Arrangement tab. Uncheck the box for "Mirror Displays," or make sure it is already unchecked. In the image within the preferences dialog box you should see two adjoining blue rectangles representing your two screens. A white bar on one representes the menu bar and indicates that that is the primary display. The larger rectangle represents your TV screen. If it's on the right side of the smaller rectangle representing your MBP's screen, then dragging a window off the right side of the built-in screen will move the window onto the TV.
    Now open any application window — a web browser window, for example — and drag it by its title bar to move it off the edge of your built-in screen onto the TV screen. Got that? You can do the same thing with any other window, including a DVD Player or VLC window containing a movie that you want to watch.
    Things to note: In this dual-display mode, which is called Extended Desktop mode, the menu bar and Dock will always appear on only one of the screens, and you can choose which one they appear on by dragging the white bar representing the menu bar from one rectangle to the other in the System Prefs > Displays > Arrangement tab. You can also set the resolutions of the two screens independently of each other. The highest available resolution on each screen will always provide the sharpest image.

  • Is there a way to make labview messages always appear on top of all windows?

    I have a main VI running and a user selects a non-Labview window to work on. Is there a way make the user prompt or user input express VI messages appear on top of all windows? I have experimented with the "make window always on top.vi" from the NI website. That brings the VI that is running to the top but not the prompt for the express VI message. I have also used the "make window always on top.vi" in a sub-VI and called that sub-VI to be always on top and it works. I was just wondering if there was a way to do it with the express VIs that NI already has written instead of making a custom message the way I have mentioned.
    Thanks,
    Troy

    If you only need to display a prompt and can get by with a limited set of canned buttons (OK, Cancel, Retry, Continue, etc.), you can try a VI that calls the Windows API MessageBox function. You can display a message box with user-defined title, text and buttons. There is an option to use the system modality which is what you want in this case. I use my own version of this all the time for that very reason.
    Message Box

  • Is there a way to autoscroll the timeline?

    Whenever the playhead reaches the right hand side of the timeline, the only way to keep it on screen is to manually drag the timeline to the left. I find this very annoying. Am I missing something here? Alternatively can I keep the playhead stationary and move the timeline under it?

    I use a logitech mouse with a mouse wheel that responds to "wheel tilt" left or right. When I bump the wheel, the timeline scrolls if the mouse cursor is over the timeline (even if FCPX is not the "active" application!) It's a little tricky with actual playback keeping the playhead in view, but you get a feel for it after awhile and I'm not trying to click-drag-follow.
    If you hold down the shift key and the right or left arrow keys, the timeline will autoscroll, but it's not actually playing, just skipping frames 10 at a time. It's a good way to "scan" through if you're looking for something specific.
    J,K, and L work pretty well too, if you're not all that concerned with focusing on the timeline. The playhead always comes back into view when Play, FF, or Rewind stop.

  • Is there a way to remove the command R from opening my media browser?

    I use command + t quite often when I am adjusting a track to sync with my drums, and once in a while I will accidentally click the command + R, which opens up my media browser.  This little accident ALWAYS takes about 20 - 30 seconds to open, which would be fine once in a while, but once this happens the first time Garageband always takes a lot longer to respond to my editing until I restart the program, which is a huge hassle when I am on a roll.  I would just like to remove the key command from allowing this to happen, if there is some way to do this I would be very happy to know how to get this taken care of.
    Thanks!
    Erik

    Brilliant, HangTime! I missed that menu - I was looking in the "Windows" menu.
    This works:
    I added "GarageBand.app" to the "Application Shortcut" section (press "+") and added new shortcuts ⇧⌘R to Show Media Browser and Hide Media Browser.
    Now the ⌘R  does not do anything any longer
    (You have to log off and on, or to force quit the Finder and restart GarageBand for the changes to take effect! )
    Now it is "⇧⌘R"  - you can use any key combination you like instead.

  • I have a linux OS on my laptop, is there a way to install the icloud desktop?

    I have Linux Crunbang OS on my laptop. Is there a way to install the icloud desktop since i don't have windows?

    No. It does not run on Linux systems.

  • Is there a way to default the monthly calendar display so that the current day always shows on top?

    Is there a way to default the monthly calendar display
    so that the current day always shows on top? ie, I want to always be able to see what's in the future 3-4 weeks, not what's in the past 3-4 weeks. The default monthly display is archaic--only allows you to see through the last day of the month. Suddenly today
    is Oct. 30th, and I have a ton of projects lined up in November, but because I haven't been scrolling down every day, I haven't been aware of them every day. I realize there are other tools in Microsoft to help me stay on task, such as reminders and such,
    but it would be helpful if I could always have the current day display on top of the monthly view so I can quickly scan what's coming up in the next few weeks. 

    Thank you!
    Right, I already have it in Month view. My question is a little more specific--I'd like for the current day to always display at the top. For example, today is Oct. 31st, so the current day is at the bottom of the calendar since it is the last day of the month.
    I can view everything in October that I've already completed. What I can't see are the future weeks because we haven't hit November yet. I'd like for the current day to always display at the top of my calendar so I can always see what's coming in the following
    three - four weeks (whether they're a part of that month or not). I've been to other forums trying to find the answer, and have come across the same exact question from frustrated users--but there seemed to be no solution. So I'm posing the question myself
    in this forum. Do you know if this is possible? What I found from other forums is that Outlook defaults to a physical 'desk' type calendar format--so just as I'd use a paper calendar at my desk, I wouldn't be able to see the following weeks unless I either
    flip the page to that month or I come to the first day of the next month, thereby tearing the the old month off and now only able to see the current month. That format is just so...paper...and archaic! Essentially I want the calendars to loop so it doesn't
    even really matter what month it is--I just always want to see what lies ahead without having to scroll down. With our being in the Technology Age, I'd assume this is a logical expectation, but we may be stuck with the replica version of the paper-desk-calendar
    format until Outlook programmers add this Technology Age feature in newer versions.  
    See, this month kind of messed me up because I have so many projects for November that start tomorrow and next week, but I haven't seen them until this week. I would have been better quipped--at least expecting them--had I been able to see all of those projects
    since last week or the week prior.  
    If there is no solution to this answer, would you know how I can contact Outlook to provide feedback? I'm guessing a newer version is on its way...
    Thanks again in advance!

  • My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?

    My ipod touch is currently running ios 4.2.1 I would like to run ios 5 or 6. When I try to update it on itunes, it tells me my software is up to date. Is there another way to upgrade the IOS?  Do I have to go to Settings>General>reset>Erase all content and settings before I can get the newer ios?  If this is the case, how can I ensure all my content is backed up prior to erasing it all. Is there anyway to check to ensure the backup is complete and comprehensive?  THanks!

    A second generation iPod touch can't be updated past 4.2.1.
    (88824)

  • Is there a way go get the item number of the current item?

    In an item with multiple instances: Is there a way to get the item number of the current item? If for instance, I am on the 3rd item, is there some kind of “GET CURRENT RECORD NUMBER” built-in that would return a ‘3' to the program?
    Thanks
    Edited by: WayneFMcKinstry on Apr 9, 2010 10:50 AM

    If i am getting you correctly that in tabular item you want to know the current record or current item you can try this...
    For current record
    :SYSTEM.CURSOR_RECORD;
    or
    :SYSTEM.CURRENT_RECORD;for current item
    :SYSTEM.CURSOR_ITEM;-Ammad

  • I just purchased a new iMac to replace our older one We are giving our older one to parents and want to wipe the HD. The discs I have for my old iMac is for version 10.5 but I have 10.6.8 currently. Is there a way to wipe the HD and keep 10.6.8?

    I just purchased a new iMac to replace our older one. We are giving our older one to parents and want to wipe the HD. The discs I have for my old iMac is for version 10.5 but I'm currently running 10.6.8. Is there a way to wipe the HD and keep 10.6.8?

    No. Wiping the HD will erase the OS on it.
    (95074)

  • Now that the new macbook pro has usb 3.0, is there a way to convert my current macbook's usb 2.0 to 3.0?

    Now that the new macbook pro has usb 3.0, is there a way to convert my current macbook's usb 2.0 to 3.0?

    No you can not.
    You can connect USB 3 components to you MB if you wish to use them but will only run at USB 2 specs.

Maybe you are looking for