Spry 2.0 --  over state question

I am using the adobe widget browser for a horizontal spry menu for the first time and can't seem to get an over state to work. Can anyone post code to get this working? And is there a way to make the over states work when putting the menu in an include or library?
Thanks

Add the following to your document
<script type="text/javascript" language="javascript">
function InitPage(){
Spry.$$('#MenuBar li').forEach(function(node){ /* for FF Chrome etc  */
     var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
     if(a.href == window.location){
          Spry.Utils.addClassName(node,"activeMenuItem");
Spry.$$('#MenuBar div.MenuItemContainer').forEach(function(node){ /* for IE */
     var a=node.getElementsByTagName("a")[0]; // finds all a elements inside the li, but we only want the first so [0]
     if(a.href == window.location){
          Spry.Utils.addClassName(node,"activeMenuItem");
Spry.Utils.addLoadListener(InitPage);
</script>
and the style rules for activeMenuItem
<style>
#MenuBar .activeMenuItem .MenuItem .MenuItemLabel {
     background-color: #592f8b; /* consider exposing this prop separately*/
     color: #ffffff;
</style>
Gramps

Similar Messages

  • Sorting question over state...

    Hi there,
    Anyone know where you amend the over state / hover of an option in a sorting question ???
    Been looking in the object style manager but can't find it in there...
    Thanks in advance...

    You are talking about the partially transparent grey bar that appears when hovering over an answer in the Sequence type of questions. There is no style that can be customized AFAIK. It is not even changing with the included themes. Same is valid for the connecting lines in matching questions that are always black, color cannot be changed for them neither. It is a pity, would recommend you enter a feature request to be able to customize the color of both the hover bar and those lines.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Lilybiri

  • Over State and actions not working with buttons in Flash cs4

    Hi - I am working on a Flash file and some of the buttons in the document are not working.When I test the movie the hand cursor appears when I hover over the buttons they don't change colour (as specified in the over state) and the actions don't work. Not sure what is going on here as I created other buttons in the same document the same way and they work fine. Thanks in advance.

    If you remove the code from the buttons do they react properly to a mouse over interaction?
    What is the code that is in place?

  • Over state for nav bar using liquid positioning

    Hi everyone, I have a navigation menu in a website I'm making
    that uses liquid positioning. I was wondering what the best
    technique for adding an "over" state (rollover) to my nav menu is.
    I was thinking about making the nav menu a background image for one
    of my divs, then placing an ap div over that with my rollover
    images inside, placing image maps on top of those, and then doing a
    show/hide behavior for each image. This is not working out too well
    and I'm sure there is an easier way. Also, I am new at this and am
    having trouble understanding how to center objects using a liquid
    layout. Can someone please help me?

    Why not use the menu widget? Image maps are a pain.
    I must admit I don't understand "liquid positioning."

  • I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it.

    I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it. When I double click on the question mark nothing happens. Has the link to YNAB been broken with the update? Has this happened to anyone else?

    Check the Application folder.
    If it is not there, contact YNAB Finance for a OS X Yosemite compatible version of the application.
    Best.

  • How to retain the button over state while scrolling over a Pop-up Menu

    Are there updated instruction for Fireworks 8?
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15926&sliceId=1

    I just wouldn't use those menus at all - there are much
    better ways. Have
    you considered them?
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "turpya" <[email protected]> wrote in
    message
    news:f2ilfs$7gr$[email protected]..
    > Hi,
    >
    > I am trying to work out how to retain button over state
    while scrolling
    > over a
    > pop-up menu. By default the button changes back to mouse
    out state, when
    > scrolling over menu items for that button.
    >
    > I have tried to follow the advice in the below technote
    (see link below),
    > but
    > it seems the instructions are incorrect.
    >
    > I am using Fireworks 8 - it appears the instructions are
    for a prior
    > version.
    > I cannot find function fwLoadMenus() mentioned in Step 3
    (number 6.).
    >
    > Has anyone accomplished this in Fireworks 8, that could
    provide me with
    > instructions?
    >
    > Thanks in advance,
    >
    > turpya.
    >
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926
    >

  • Retain button over state with Pop-up Menu

    Hi,
    I am trying to work out how to retain button over state while
    scrolling over a pop-up menu. By default the button changes back to
    mouse out state, when scrolling over menu items for that button.
    I have tried to follow the advice in the below technote (see
    link below), but it seems the instructions are incorrect.
    I am using Fireworks 8 - it appears the instructions are for
    a prior version. I cannot find function fwLoadMenus() mentioned in
    Step 3 (number 6.).
    Has anyone accomplished this in Fireworks 8, that could
    provide me with instructions?
    Thanks in advance,
    turpya.
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926

    I just wouldn't use those menus at all - there are much
    better ways. Have
    you considered them?
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "turpya" <[email protected]> wrote in
    message
    news:f2ilfs$7gr$[email protected]..
    > Hi,
    >
    > I am trying to work out how to retain button over state
    while scrolling
    > over a
    > pop-up menu. By default the button changes back to mouse
    out state, when
    > scrolling over menu items for that button.
    >
    > I have tried to follow the advice in the below technote
    (see link below),
    > but
    > it seems the instructions are incorrect.
    >
    > I am using Fireworks 8 - it appears the instructions are
    for a prior
    > version.
    > I cannot find function fwLoadMenus() mentioned in Step 3
    (number 6.).
    >
    > Has anyone accomplished this in Fireworks 8, that could
    provide me with
    > instructions?
    >
    > Thanks in advance,
    >
    > turpya.
    >
    >
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15926
    >

  • Maintaining over state on pop-up menus

    I've just recently switched from MX to 8. My pop-up menus are
    all done using the new CSS function and I can't figure out how to
    keep the over state when viewing sub menus (I have two levels of
    sub-menus, if there's a way to keep the over state for both that
    would be awesome!!).
    I had done it previously in MX using the instructions
    available on the web, but they're no longer applicable.
    Please help

    jtambo wrote:
    > I've just recently switched from MX to 8. My pop-up
    menus are all done using
    > the new CSS function and I can't figure out how to keep
    the over state when
    > viewing sub menus (I have two levels of sub-menus, if
    there's a way to keep the
    > over state for both that would be awesome!!).
    > I had done it previously in MX using the instructions
    available on the web,
    > but they're no longer applicable.
    > Please help
    >
    I think you might get more/better help if you post a link to
    the page so
    folks can see your code.
    Bonnie in California
    kroko at
    pixelplum dot com
    http://www.theanimalrescuesite.com/cgi-bin/WebObjects/CTDSites.woa

  • Buttons in imagen in a 'over state'

    hello!
    i'm trying to make a few buttons on my menu. i have a menu that is a clip and is always playing and i want some areas of the video clip to works as buttons. what i want for the buttons is that when the mouse is over it to appear an image on top of the video clip and when i clip it to go to another track. i want the buttons to work like in flash, to have an 'over state' and when i'm over it i can see an image with the name of the film i want to see, and that with all the other buttons.
    i don't know if i made myself clear, but i would like to know if that is possible in dvd studio pro because it seems a very simple thing to do like in flash.
    thanks

    One thing to keep in mind is DVDs are not Director/Flash.
    To do what you want is not easy, nor will it be the same as effect as Director/Flash. One approach is to make the entire background a movie than make an overlay for the buttons. The buttons themselves will not be full color, but mapping 4 colors. There is the normal, selected and activated states.
    This is a mapping example
    http://dvdstepbystep.com/newmap.php
    There are other ways to try to fake the effect, but none would be what I think you are describing

  • Hover over states dont work on ipads

    In the latest version of muse the hover over state or even mouse down state in photshop buttons dont work on ipads or iphones. But yet a website i made in an earlier version doesHover over doesn work on iphones or ipads devices

    I Used the same effect in this site by inserting a photoshop state button in an older version of muse but now in the newer version of muse I've used the same effect on a different site and it doesn't work. This is the site it worked on
    The Team

  • Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the sub

    Can Dropdown menu item stay on the "roll over" state while the user's mouse is hoving over the parent's sub-menus?
    Thanks

    Thanks for the response. My main goal here is to get the drop
    down menu word "Overview" to remain red once it reaches the frame
    "WhoWeAre" or "OurMission" on the main timeline. If I turn the
    button inside the movie clip into an MC to do this, the drop down
    menu no longer works. Any thoughts on how to get this drop down
    menu to do this?

  • Button "Over" State Not Working Within Visible MovieClip

    Hi Folks,
    My button states aren't working right, and I'm pulling my hair out:
    http://www.miklas.org/test/test.htm
    The desired behavior is under the "Design..."  button--notice how when you mouseover the "Our Philosophy" link it turns blue? Why isn't  this happening for the "What We Can Do For You" and "Our Process" buttons in the other movieclips?
    The document is structured as follows:
    MovieClip 1: Design: Your Silent Salesperson
    ---Text
    ---Images
    ---Button: Our Philosophy
    MovieClip 2: Who Owns Your Brand
    ---Text
    ---Images
    ---Button: What We Can Do For You
    MovieClip 3: What's Your Brand's Persona
    ---Text
    ---Images:
    ---Button: Our Process
    DETAILED EXPLANATION:
    I have three separate movie clips with a bunch of objects. Using AS3,  I  tween their alpha value from 0 to 1 to make them visible depending on a  user mouseover. As part of each movieclip I have a button. It is text  with an underline; made to look like a hyperlink. When the user mouses  over the text, I want it to change color from orange to blue. This works  on the first movieclip, but doesn't on the second and third! What's  weird is that if I cut-and-paste the button from the second or third  movieclip to the first, the over state works fine. If I set Control  -> Enable Simple Buttons, the over state works fine. But when I  export it to .swf, it doesn't work!?
    tyvm!

    OK I finally got it! My layers were indeed out of whack--the entire problem was solved by the"setChildIndex" function.
    Basically, when the user mouses over the buttons, I fade in the new clip, and set the depth above the other movie clips. Here's the code:
    buttons_movieClip.whyDesign_button.addEventListener(
      MouseEvent.MOUSE_OVER,
      function(evt:MouseEvent):void
          if (active != whyDesign_movieClip)
            fade(whyDesign_movieClip);
            setChildIndex(whyDesign_movieClip,3);
            setChildIndex(whoOwns_movieClip,2);
            setChildIndex(persona_movieClip,1);
    There is a black background at depth 0. The following forum post helped a lot:
    http://www.smithmediafusion.com/blog/?p=435
    tyvm!

  • Spry Collapsible Menus open state

    I am a bit stuck. I have the collapsible Menu widget in a PHP
    page which is included in all the other pages. When I go from
    one page
    to another the include is reloaded and the menu returns to
    it's default
    state. What I really want is for the menus to be collapsed
    when the user
    first enters the site and then to remember and restore it's
    current open
    or closed state when moving between pages. I looked through
    the info
    above and it suggests to me that it can be done but I have
    not been able
    to get it so far, any examples/suggestions would be great.
    Thanks

    its becouse your browser cant store JAVASCRIPT / AJAX states
    in the HISTORY.
    thats why everytime u refresh the page. or go back to it, its
    on its default set state.
    There are some hacks for it. like "really simple history" @
    http://code.google.com/p/reallysimplehistory.
    I have also knocked on this problem. And i hope SPRY is gonna
    build there own BOOKmark and history controller. by using the
    URLparm and the new spryDOM.
    I hope that awnsers your question.

  • SQL statement question

    I'm trying compare two table in Oracle and with a firstname and
    lastname
    matches fill-in a pager pin number.
    This is the sql statement I'm running
    update addressbook2 set pin =
    (select pin from phonebook where
    phonebook.firstname=addressbook2.firstname
    and
    phonebook.lastname=addressbook2.lastname)
    where addressbook2.firstname IN (select firstname from phonebook)
    and addressbook2.lastname IN (select lastname from phonebook)
    but I get an error message saying:
    ORA-01427: single-row subquery returns more than one row
    My question is can I update the table even when there are
    duplicates in the tables. The query runs perfect when both
    tables are unique.
    Thank you for any help.
    MN
    null

    I presume you are trying to update the pin of only those people
    in the addressbook table that also exist in the phonebook table.
    The following will work:
    update addressbook a
    set a.pin = (
    select f.pin from phonebook f
    where f.fname = a.fname
    and f.lname = a.lname
    ie remove the last two lines from your DML statement.. be aware
    that you are using a denormalised design (pin is not normalised
    on the primary key) and the use of first and last names as a
    method of identifying people is not a good idea (does 'smith' =
    'smyth'?)
    MN (guest) wrote:
    : I'm trying compare two table in Oracle and with a firstname and
    : lastname
    : matches fill-in a pager pin number.
    : This is the sql statement I'm running
    : update addressbook2 set pin =
    : (select pin from phonebook where
    : phonebook.firstname=addressbook2.firstname
    : and
    : phonebook.lastname=addressbook2.lastname)
    : where addressbook2.firstname IN (select firstname from
    phonebook)
    : and addressbook2.lastname IN (select lastname from phonebook)
    : but I get an error message saying:
    : ORA-01427: single-row subquery returns more than one row
    : My question is can I update the table even when there are
    : duplicates in the tables. The query runs perfect when both
    : tables are unique.
    : Thank you for any help.
    : MN
    null

  • View State question - changing states and custom states

    Hi all,
    I'm working on an application that lets a user register for an event. Each event has associated child information: conferences, tickets, etc. associated with it. What I'm trying to do is create some sort of checkbox list so that, when a user clicks on an event to add it to his registration, the associated child information appears in the display so he can choose all this information at once. I have the list working and I've been trying to use a custom ItemRenderer to pop in the extra info for the user to select when he clicks on an event. The problem I'm having is that, when the user goes to click on a child to add it to his registration, my state is changing back from "selected" to "normal" and the child information disappears. So I guess I have two questions. One, am I even remotely on the right track here? If not, can someone suggest a better approach? Two, if this is the right approach, how do I solve the "disappearing child" problem? I tried creating a custom state that would set everything to visible, but I can't seem to figure out how to get into it...I tried just putting a click event on it and just doing an Alert.show(currentState) to see if I was even getting into my custom state, but I just kept switching between "normal" and "selected."
    Code:
    ItemRenderer:
    <s:ItemRenderer name="eventItemRenderer"
    xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    focusEnabled="false" xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:registrationapi="services.registrationapi.*">
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    //this gets my data to populate the dropDown list when the parent event is selected
    protected function checkbox1_clickHandler(event:MouseEvent, selectedEventCode:String):void
    showPrimaryConferences = true;
    getEventConferencesResult.token = registrationAPI.getEventConferences(selectedEventCode.name);
    protected function comboBox_creationCompleteHandler(event:FlexEvent):void
    getEventConferencesResult.token = registrationAPI.getEventConferences(data.EventCode);
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="normal"/>
    <s:State name="hovered"/>
    <s:State name="selected"/>
    </s:states>
    <s:Rect top="0" left="0" right="0" bottom="0">
    <s:fill>
    <s:SolidColor id="backgroundColor" color="0xFFFFFF" />
    </s:fill>
    </s:Rect>
    <!-- checkmark -->
    <s:Path data="M 3.5 6.5 l 2 2 l 6 -7" includeIn="selected" right="2" verticalCenter="1">
    <s:stroke>
    <s:SolidColorStroke weight="2" caps="square" color="0x000000" />
    </s:stroke>
    </s:Path>
    <fx:Declarations>
    <s:CallResponder id="getEventConferencesResult"/>
    <registrationapi:RegistrationAPI id="registrationAPI" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    </fx:Declarations>
    <s:VGroup left="3" right="10" top="3" bottom="3">
    <s:CheckBox name="{data.EventCode}" label="{data.EventTitle}" id="selectedEventCode" fontWeight="bold" click="checkbox1_clickHandler(event, selectedEventCode.name)" />
    <s:Label text="{data.EventTitle}" id="selectedEventCodeLabel" fontWeight.selected="bold"  />
    </s:VGroup>
    </s:ItemRenderer>
    Thanks in advance for any suggestions!
    ~ amanda

    I simplified the problem to it's essence and came up with this:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"
        creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                public var lProvider:ArrayCollection;
                private function init():void
                    var la:Array = [{label: "Conference", checked: true},
                                    {label: "Tickets", checked: false}];
                    lProvider = new ArrayCollection(la);
            ]]>
        </mx:Script>
        <mx:List id="cList" width="200" dataProvider="{lProvider}" itemClick="lProvider.refresh()">
            <mx:itemRenderer>
                <mx:Component>
                    <mx:HBox width="100%">
                        <mx:CheckBox selected="{data.checked}" click="data.checked = event.target.selected"/>
                        <mx:Label text="{data.label}"/>
                    </mx:HBox>
                </mx:Component>
            </mx:itemRenderer>
        </mx:List>
        <mx:VBox width="600">
            <mx:Panel title="Conference component" width="100%" height="200"
                    visible="{lProvider.getItemAt(0).checked}"
                    includeInLayout="{lProvider.getItemAt(0).checked}"/>
            <mx:Panel title="Ticket component" width="100%" height="200"
                    visible="{lProvider.getItemAt(1).checked}"
                    includeInLayout="{lProvider.getItemAt(1).checked}"/>
        </mx:VBox>
    </mx:Application>
    Does this help?
    Dany

Maybe you are looking for

  • Apple Mini-DVI to Video Adapter

    I have just purhased a new Macbook. My first mac ever My question is regardng the Apple Mini-DVI to Video Adapter. Do I read that correctly that I can hook my macbook up via rca and s-video but not composite? Does Apple make one cable that will do bo

  • RFC Connection error in BW

    Hi, Source system error. BW RSA1Source System (Context Menu) Check Error: RFC Connection Check failed Diagnosis                                                                   You tried to logon to check the connection to the source system. This

  • PL/SQL Server Pages (PSPs) and CSS

    Hi, I am used to creating standards compliant websites using XHTML and CSS and some other application language for dynamic content. I have recently started working with PL/SQL and want to create an application using PSPs. I was wondering the best way

  • Can no longer connect to Photostream after installing Photos

    Photos has deleted my iPhoto Photostream and Shared photos sidebar items. iPhoto can no longer connect to iCloud photos. Does anyone know if this is because the Photos app has made this feature incompatible now? I am concerned I'll not be able to get

  • Enable track for record

    Just bought a new cheapie USB mic at work to do temp VO narrations.  Running latest version of CC 14 and Mavericks.  The OS recognizes the mic, as does Audition, but in Premiere, I'm unable to select the "R" button to arm a track to record.  Any idea