Sliding panels - change link appearance depending on the current panel

Hi,
I'm trying to change the appearance of the link, depending on the display panel. Panels change automatically after a certain period of time. I do not know: for example, how to recognize the current panel, and using an if statement to change the appearance of the link. I have such code:
var sp1 = new Spry.Widget.SlidingPanels('panele');
sp1.forward = true;
window.onload = function() {
    id = setInterval(function() {
        if (sp1.forward === true) {
            if (sp1.getCurrentPanel() === sp1.showNextPanel()) {
                sp1.showPreviousPanel();
                sp1.forward = false;
        } else {
            if (!sp1.showPreviousPanel()) {
                sp1.showNextPanel();
                sp1.forward = true;
    }, 3000);
    //Spry.$$("a2").setStyle("background-color: #000;")
I tried this::
var data = sp1.getCurrentPanel();
if(data.id == "panel_id")
Spry.$$("link_id").setStyle("background-color: #000;")
but it does not work...

Take a look at this topic: http://forums.adobe.com/message/2174795#2174795

Similar Messages

  • The new ribbon user interface in Win 8.1 should display appropriate buttons depending on the currently displayed folder within the explorer.exe window.

    To begin with, in file-explorer (.\system32\explorer.exe) normally, the new ribbon user interface in Win 8.1 does indeed display appropriate buttons depending on the currently displayed folder within the explorer.exe window. 
    But when one re-parents the explorer window handle to any window handle other than 0000 (desktop's window handle), then the UIRibbon fails to do so.
    You might ask 'Who does that ?' and I would say no-one usually, however I use BrightExplorer which
    is a great little app that  gives me a tabbed file-explorer experience.
    Now, this app works fine since Windows 7, but with Windows 8 the file explorer introduced the new UIRibbon in its UI. It's that new UIRibbon that gets confused by what I think may be be caused by the re-parenting that BrightExplorer does
    to pull a file explorer session into its tabbed control.
    This phenomenon relates to Windows 8 + and is observed only by doing the following steps:
    Download BrightExplorer from BrightNewWorlds.com by going here: BrightExplorer,
    In the address bar go to This PC,
    then go to any other folder and note that the UIRibbon is not keeping track of the changing folder selections.
    Does anyone out there feel that they can do something about this, or have advise?
    Kind regards,
    Robert van der Meijden

    To begin with, in file-explorer (.\system32\explorer.exe) normally, the new ribbon user interface in Win 8.1 does indeed display appropriate buttons depending on the currently displayed folder within the explorer.exe window. 
    But when one re-parents the explorer window handle to any window handle other than 0000 (desktop's window handle), then the UIRibbon fails to do so.
    You might ask 'Who does that ?' and I would say no-one usually, however I use BrightExplorer which
    is a great little app that  gives me a tabbed file-explorer experience.
    Now, this app works fine since Windows 7, but with Windows 8 the file explorer introduced the new UIRibbon in its UI. It's that new UIRibbon that gets confused by what I think may be be caused by the re-parenting that BrightExplorer does
    to pull a file explorer session into its tabbed control.
    This phenomenon relates to Windows 8 + and is observed only by doing the following steps:
    Download BrightExplorer from BrightNewWorlds.com by going here: BrightExplorer,
    In the address bar go to This PC,
    then go to any other folder and note that the UIRibbon is not keeping track of the changing folder selections.
    Does anyone out there feel that they can do something about this, or have advise?
    Kind regards,
    Robert van der Meijden

  • I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a  , which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    I downloaded Safari 5.1 onto Mac OS 10.6.8 some time ago.  Yesterday the back/forward arrows next to the url window changed to a +, which adds the current url as a bookmark.  I want the arrows back.  What happened, and how can I fix this?  Thanks.  kammro

    There's another way.
    Right or control click the + then click Remove Item.
    Just remembered that keyboard shortcut!
    You're welcome 

  • How to get the query output depending on the current date

    i created a region of type "query",inside it created region using wizard of type "table" . in the query i filter the data depending on the current date (taken from dual table) . but still it showing no output on the page. i run the same query in the toad and its showing the 2-3 rows.
    If anybody know where the problem is then do inform me.
    thanks in advance.

    i got the answer by trying out in OAF

  • Copying files to my MBA Early 2011, 10.6.7 changes their 'date modified' to the current date. It happens only to some of the files copied. Any idea what my be causing it. Never had this problem before, on othe macs I have owned.

    Copying files to my new MBA (early 2011) running 10.6.7 results in their 'modification date' to change to the current date. Any idea what may be causing it. It happens only to some of the files (there is no pattern to it.). I have not seen it previously in many other macs I have owned.

    Hi all
    I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
    I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
    Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
    Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
    Am I on the only one?

  • How do I change my master password when the current password is to press enter (with nothing in the password blank)?

    Whenever I try and change my master password I can not manage to.  I got a new hard drive and the person at the apple store told me that the password was to just press enter (with nothing in password blank), and that I would be able to change it.  Everytime I try and change the master password it says, "incorrect password" under the current master password blank.  It has been awhile since then and I have moved so I can not go back there and get them to figure it out.  So the question is, Is there anyway to change it without wiping my entire hard drive and starting over?

    Welcome to the Apple Support Communities
    See > http://support.apple.com/kb/HT1274

  • Making Buttons appear depending on the results of a SQL Query

    I need some help here I am still working on a time clock program
    I need help with the clock in and out buttons i need to know how to make
    the clock in button appear only if they are not clocked in. But I can not seem
    to make the sql statement or maybe my code is wrong, it needs to just get a
    count to see if they have any entries that have 0 in the hoursworked column
    and if so then it needs to just display the clock out if not then just the clockin button needs to be displayed this was my orignal code that was not working
    <%   
        String statement = "select count(*) as cnt from TimeSheet Where idnum = " + session.getAttribute("IDNUM");
        stmt.execute(statement);
        rs = stmt.getResultSet();
        rs.next();
        int num = rs.getInt("cnt");
        if (num == 0 || num == null)
        {%>
            <tr>
                <td><input type="submit" value="Clock In" name="button"></td>
            </tr>
        <%}
        else
        {%>
            <tr>
                <td><input type="submit" value="Clock Out" name="button"></td>
            </tr>
         <% } %>but it did not work it would only display the clock out button so i need to figure this out so that the user can not clock into the program twice to get double hours and so forth.

    Does it even compile ?Yes, it wouldnt, not even in 1.5
    it needs to just get a
    count to see if they have any entries that have 0 in the hoursworked column
    and if so then it needs to just display the clock out if not then just the clockin button needs to be displayed in which case,
    1. your sql is not correct.
    2. session.getAttribute("attrName") returns an Object - is the IDNUM column of type number
    (going by the fact that you have not enclosed the value in single quotes '')
    Assuming that you have a column called 'hoursworked' in table 'timesheet' and
    IDNUM is of type NUMBER
    <%
         Integer idNum = (Integer)session.getAttribute("IDNUM");
         //from the OP ::  get a count to see if they have any entries that have 0 in the hoursworked column
         String statement = "select count(*) as CNT from TIMESHEET where IDNUM = " + idNum + " and HOURSWORKED = 0 ";
         //remaining stuff :: Look out for the error pointed out by Pgeuens
         cheers,
    ram.

  • Changing Release Stratergy will affect the current PO approval flow

    Hi Friends,
    I have set the release Stratergy for PO and now I have to change the release stratergy, in this case will I face any issue for the previous PO which is the flow of approval.
    Thanks.
    Dhan

    Go through: SPRO-Material ManagementPurchase OrderRelease procedure for PODefine release procedure for PORelease Indicator.
    In this you will have changeability field, here you have different strategy for changes in release strategy for mapping of the new strategy,value change, etc...
    Please also check the Release Strategies where in, which final release ID is mapped.
    This will gives you idea about what will be possibility for mapping of new release strategy..
    Hope it will help you.
    Regards
    Vikrant

  • I'm running firefox 3.6.18 and after the latest windows xp update, I do not get a new tab when I click on the "+" button to get a new tab. A new tab is inserted when I open clik on a link form something in the current window.

    windows xp pro version 2002 SP 3.
    firefox 3.6.18

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    Your system details show that toolbar in the user agent as AskTbAD2/3.12.2.16749
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Problem accessing child object and changing its appearance (color)

    For a program, I need to be able to access a child object (in this case a box) after adding it to a transform group and change its appearance, for example the color of its top face. I have included a small code example to show my problem. The box is the only child I have added to the TransformGroup, but when I call getChild(), it returns a node, and thus I can't then call getShape() to get the top face and change its appearance. What am I doing wrong?
    public BranchGroup createSceneGraph() {
         BranchGroup objRoot = new BranchGroup();
         Transform3D rotate = new Transform3D();
         Transform3D tempRotate = new Transform3D();
    rotate.rotX(Math.PI/4.0d);
         tempRotate.rotY(Math.PI/4.0d);
    rotate.mul(tempRotate);
         TransformGroup objRotate = new TransformGroup(rotate);
         objRoot.addChild(objRotate);
         Appearance ap = new Appearance();
         Appearance app = new Appearance();
         Appearance apr = new Appearance();
         ColoringAttributes colr = new ColoringAttributes();
         ColoringAttributes colg = new ColoringAttributes();
         colr.setColor((float)1, (float)0, (float)0);
         ap.setColoringAttributes(colr);
    colg.setColor((float)0,(float)1, 0);
         apr.setColoringAttributes(colg);
         Box box = new Box((float)0.4, (float)0.4, (float)0.4, app);
         box.getShape(4).setAppearance(ap);
         objRotate.addChild(box);
         objRotate.getChild(0).getShape(4).setAppearance(ap);
    objRoot.compile();
         return objRoot;
    }

    It would help if you gave us the following System information:
    Operating System/version
    Photoshop version number
    Amount of RAM installed
    Hard drive(s) capacity
    Make and model number of video card
    Also try resetting your preferences as described in the FAQ.
    http://forums.adobe.com/thread/375776?tstart=0
    You either have to physically delete (or rename) the preference files or, if using the Alt, Ctrl, and Shift method, be sure that you get a confirmation dialog.
    This resets all settings in Photoshop to factory defaults.
    A complete uninstall/re-install will not affect the preferences and a corrupt file there may be causing the problem.

  • Upgrading from 3.6 to 10, I find that a link opens in the current tab not a new one. I don't see this option in options. How do I enable it?

    In the old version of Firefox 3.6.x, clicking on a link automatically opened a new tab in the current window. You could option whether to switch to it immediately or just keep opening tabs from links in the tab being used.
    Now, in 10, I need to manually open a new tab before I click on a link or it will open in the tab being used.
    No so convenient. I preferred the way it was.

    The default behavior of Firefox (all versions) will open a link or bookmark in the current tab when clicking only with the left mouse button.
    '''To open a link or Bookmark in a new tab''' you can do any of the following:
    *press the mouse scroll wheel on a link or Bookmark
    *hold down the CTRL key while left-clicking the link or Bookmark
    *right-click the link or Bookmark and choose "Open in a New Tab"
    *See:
    **http://www.7is7.com/software/firefox/shortcuts.html
    **https://support.mozilla.org/en-US/kb/Mouse%20shortcuts
    Some Add-ons allow options to open links and/or bookmarks automatically in a new tab by using only the left click button. You may have had such an Add-on in Firefox 3.6 that 1). is out of date and needs to be updated, or 2). is no longer being updated by the developer of the Add-on and is not working in Firefox 10.
    Add-ons:
    *https://addons.mozilla.org/en-US/firefox/addon/open-link-in-new-tab/?src=ss
    *https://addons.mozilla.org/en-US/firefox/addon/tab-utilities-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/tab-utilities/
    *https://addons.mozilla.org/en-US/firefox/addon/tab-mix-plus/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *'''''Adobe Shockwave for Director Netscape plug-in''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • How to get the current view name is displaying?

    Hi Experts,
    I have a requirement that I have to know the current view is displaying. At the header of the page, there is a component (BTCHIST) which is fix and common for the all others. It has a button called Finish. When the user clicks on it, it has a different behavior depending on the current view.
    Does anyone know any method in order to get this information? I searched up in CRM_UI_FRAME, however I didnu2019t find anything.
    Regards,
    André

    Hi,
    You need to redefine the method IF_BSP_WD_HISTORY_STATE_DESCR~GET_STATE_DESCRIPTION of the controller class to change the view description. Unfortunately, the effort is huge and we cannot do it dynamically and needs to be done for each view in question.
    Regards
    Prasenjit

  • Export the current tab on a specific forms (Oebs).

    Hello,
    I have a form (done since "template.fmb") specific OeBS. This form contains several tabs. Function "File-> Export", but it exports that the contents of first tab even if I change.
    How to export the current tab?
    Thank you

    You should try to post your quetsion in the ebusiness-forum OA Framework

  • How to get the Current Directory

    Hi,
    I need to tell the system to read a file in my current directory. How do I tell the system what the current Directory Path is
    Thankx in advance...

    It depends on the current working directory from which you start your JVM.
    From DOS or UNIX shell this is the directory where you have come by "cd".
    On Windows you can do the same from Explorer or other file managers: the directory where you are when starting JVM.exe.
    If you define shortcuts - e.g. on the desktop -, you specify it there as the "working directory".
    You can retrieve this directory by
    System.getProperty( "user.dir" )
    Now with File classes:
    Each file name without path will be interpreted as being in this directory.
    Absolute paths are clear.
    But you can't mix this:
    If you specify "test/debug.ini" or "test\\debug.ini" from debug directory: false!
    If you specify "../debug.ini" or "..\\debug.ini" from debug/test directory: false!
    Do it this way:
    Start from debug directory.
    So you can access file debug/test/debug.ini as
    System.getProperty( "user.dir" ) + "/test/debug.ini"
    Works?

  • Pressing Alt+F4 closes the current window but also chages to tty4.

    Hello, I don't know what may be causing this, but I've just realized that pressing Alt+F4 changes to tty4 besides closing the current window.
    I'm running Gnome here, does anybody happen to come across this?

    MickST wrote:I thought the way to change to the different tty was Ctrl+Alt+Fn, I don't recall pressing Alt+F4 and going to a tty before :S.
    It is. Pressing Alt+F4 while in X session shouldn't bring you to tty.

Maybe you are looking for

  • Ultranav won't install after upgrade to Win 7

    I upgraded from XP to Win 7 Ultimate. When I try to install the Win 7-compliant driver from the Lenovo site, the OS tells me that it's not compliant and "fixes" the problem by installing generic drivers that, of course, don't allow me to modify the U

  • Can I FaceTime ipad3 with imac

    Can I do a Facetime call from my ipad 3  to my iMac and vice versa Do I have to "trick it with a call # ( if I use the same e-mail ) example My ipad will be in Portland and my iMac in OKC iMac is Mountain Lion iPhone to iMac and iPad to iPhone work f

  • Integrate reports with Jdeveloper

    Hi, Can anyone please tell me how to integrate Jasper reports with Jdeveloper.I need to create reports and Graphs in my application. Thanks

  • Capture Last ten Shots (Shift Registers)?

    Situation: - I am continuously acquiring data on 4 channels of the DAQ card using conditional triggering. Each loop captures 2000 samples, which are stored in 2-D waveform arrays containing each scan of each channel. The data is continually updated o

  • Text linkages from material master to purchase requisition

    I already set the text linkage between basic data text in material master with item text in PR. I left fix indicator blank since I want the text to be adopted automatically. I run MRP and create planned orders. Then I convert planned order to purchas