How do I set document property with delay using jquery?

56     $("#DivStage2").delay(11000).fadeIn(1000);
57     $("#DivStage2").delay(56000).fadeOut(1000); //11000 to 69000
58     < need code here > 
  I have document item as defined below
  document.getElementById('2').setAttribute("style", "color: #FFF;");
I want this to run on line 58 above with a delay before it of 4 seconds after line 56 starts.
Please can anyone advise.
Thank you in advance for any feedback and for everyone who has helped me so far on previous enquiries.
I've ordered a jquery book which might help me, but I'm still learning.
Terry

terryfoster wrote:
Okay I have
   <div id="DivStage2" >
    <h2 id="1" style="color: #707070;">Topic1</h2>
    <h2 id="2" style="color: #707070;">Topic2</h2>
  </div>
Now in the function above I have...
$("#DivStage2").delay(1000).fadeIn(1000);              // delay 1 sec then fade in for 1 sec
$("#DivStage2").delay(56000).fadeOut(1000);         // keep this div onscreen for 56 secs then fadeout 1 sec
Now after 20 seconds I want to turn Topic2 white as this is the one I want to focus on.....
and topic1 grey again
I would have thought......
         $("h2 #2").delay(20000).css("style", "color: #FFF;").delay(20000);
would have turned the second topic white but No.... It does nothing at all
(hmm why does everything I cut and paste end up in a table here now!!! What a bother editing!)
Thank you
It wont do anything because that function will only be executed after the <div> has faded out if it comes after
$("#DivStage2").delay(56000).fadeOut(1000);

Similar Messages

  • How do I set ClientCredentials property to windows credentials?

    As per MSDN
    http://technet.microsoft.com/en-us/library/92a9678c-bc4f-4d7a-ba44-85989bfe27ca
    Building Applications Using the Reporting Web Service and the .NET Framework we have to set Credentials as below
    ReportingService2010 rs = new ReportingService2010();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    However, after creating the proxy I don't see proxy has Credentials property as MSDN says. The proxy has ClientCredentials property but it is not derived from ICredentials
    I'm using http://serverurl/ReportServer/ReportService2010.asmx
    How do I set ClientCredentials property to windows credentials in this case?

    But i dont see "Add web reference" option.
    Have you read the link I posted? "Add Service Reference" => button "Advanced" => "Add Web Reference"
    to check if the folder already exists
    Sure, with
    ReportingService2010.ListChildren
    Method
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How can I set a property when an event happens? (selection changed on datagrid)

    I have a datagrid, I would like to change the backgrund of the datagrid when the selection changed event is fired.
    I can not use data trigger, because is in the case that I expected a value, but in this case is when change, to any value.
    An option is to use an event trigger, but all the examples that I have found is to use with an actions, and I just want to set a property.
    How could I do that?
    I am using MVVM pattern, so I would like to avoid the use in code-behind.
    Thank so much.

    You could use an event trigger and implement your own TriggerAction<T> that sets the background property. There is an example of how to create a custom TriggerAction available here:
    http://stackoverflow.com/questions/942548/setting-a-property-with-an-eventtrigger.
    The following example sets the Background property of the DataGrid to a red SolidColorBrush when the SelectionChanged event is fired. It should give you the idea:
    <DataGrid x:Name="dgrid"
    xmlns:local="clr-namespace:WpfApplication22">
    <i:Interaction.Triggers>
    <i:EventTrigger EventName="SelectionChanged">
    <local:SetPropertyAction PropertyName="Background" TargetObject="{Binding ElementName=dgrid}">
    <local:SetPropertyAction.PropertyValue>
    <SolidColorBrush>Red</SolidColorBrush>
    </local:SetPropertyAction.PropertyValue>
    </local:SetPropertyAction>
    </i:EventTrigger>
    </i:Interaction.Triggers>
    <DataGrid.Columns>
    namespace WpfApplication22
    public class SetPropertyAction : TriggerAction<FrameworkElement>
    public string PropertyName
    get { return (string)GetValue(PropertyNameProperty); }
    set { SetValue(PropertyNameProperty, value); }
    public static readonly DependencyProperty PropertyNameProperty
    = DependencyProperty.Register("PropertyName", typeof(string),
    typeof(SetPropertyAction));
    public object PropertyValue
    get { return GetValue(PropertyValueProperty); }
    set { SetValue(PropertyValueProperty, value); }
    public static readonly DependencyProperty PropertyValueProperty
    = DependencyProperty.Register("PropertyValue", typeof(object),
    typeof(SetPropertyAction));
    public object TargetObject
    get { return GetValue(TargetObjectProperty); }
    set { SetValue(TargetObjectProperty, value); }
    public static readonly DependencyProperty TargetObjectProperty
    = DependencyProperty.Register("TargetObject", typeof(object),
    typeof(SetPropertyAction));
    protected override void Invoke(object parameter)
    object target = TargetObject ?? AssociatedObject;
    PropertyInfo propertyInfo = target.GetType().GetProperty(
    PropertyName,
    BindingFlags.Instance|BindingFlags.Public
    |BindingFlags.NonPublic|BindingFlags.InvokeMethod);
    propertyInfo.SetValue(target, PropertyValue);
    For more information about how to hook up event triggers and handle events in MVVM, please refer to my blog post:
    http://blog.magnusmontin.net/2013/06/30/handling-events-in-an-mvvm-wpf-application/
    Please also remember to mark helpful posts as answer.

  • I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    I have family plan of 5 iphones and all them have the same apple id, the q. is how I can set each one with their own apple id? please advise...

    See How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • I have 2 Apple iPads with the same Apple account name.  How do I set up one with a different Apple account name?

    I have 2 iPads with the same Apple account name.  How do I set up one with a different Apple name?

    Why is the reason you want a different apple id on them? Need more details to make sure we don't accidently set up the self destruct feature and destory the planet.

  • How can I set document date automatically as system date?

    I use FBV1, FBV2, F-02, FB02. Posting date is automatically set as system date. I want to set document date automatically as system date.
    How can I set document date automaticall as system date?
    Wbr.
    İlker Çokkeçeci
    Computer Engineer
    Ankara, Turkey

    Hi Expert,
    Please refer the below link..
    Document date to be defaulted as system date for all FI transactions
    as there mentioned, please go to T-Code: SHD0.
    Regards,
    GK
    SAP

  • Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??

    Oscar66 wrote:
    Why iCloud only allows store documents created by Pages, Numbers or Key Note ? How can I "iCloud" documents created with Word Mac or Excel mac??
    iwork for ios accepts for upload and also happily opens all your Microsoft office files, from Office97 standard doc/xls/ppt to the 2011 versions of docx,xlsx,pptx and various other of these format extensions.
    Notice : the upload feature in www.icloud.com is only active if you in fact own these apps on your iPhone/Pad/pod. it is not a feature of iWork for the Mac ( iwork09 ) which itself is not icloud capable at all.

  • How to Set "DateOnly" property in DateTimeControl using Javascript.

    How to Set "DateOnly" property in DateTimeControl using JavaScript.

    Is there any specific reason you want to set it through JavaScript ? You can directly set the DateOnly property in the markup itself.
    <SharePoint:DateTimeControl runat=server id="dtControl" DateOnly="true"></SharePoint:DateTimeControl>
    Please can you elaborate on what exactly is the requirement for setting this through javascript?
    Geetanjali Arora | My blogs |

  • How can I set up iCloud with my Apple ID

    i bought an Ipad on an rummage sale.  The iCloud is still registered under the previous owner.  I do not know their password (nor them) and an "find my ipad" is turned on.  How can I set up iCloud with my Apple ID?

    Restore it through iTunes
    Regards,

  • How to create dynamic connection string with variables using ssis.

    Hello,
    Can anyone let me know on how to create dynamic connection string with variables using ssis?
    Any help would be appreciated.

    Hi vinay9738,
    According to your description, you want to connect multiple database from multiple servers using dynamic connection.
    If in this case, we can create a Table in our local database (whatever DB we want) and load all the connection strings.  We can use Execute SQL Task to query all the connection strings and store the result-set in a variable of object type in SSIS package.
    Then use ForEach Loop container to shred the content of the object variable and iterate through each of the connection strings. And then Place an Execute SQL task inside ForEach Loop container with the SQL statements we have to run in all the DB instances. 
    For more details, please refer to the following blog:
    http://sql-developers.blogspot.kr/2010/07/dynamic-database-connection-using-ssis.html
    If there are any other questions, please feel free to let me know.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I have an iphone 5s and my kids have ipods. How do i set up the ipods to use facetime and messaging without it going through my iphone?

    i have an iphone 5s and my kids have ipod touches. How do i set up the ipods to use facetime and messaging without it going through my iphone or rather using my apple id? Is this possible? Does each device need its own apple ID and/or icloud email?

    Try unchecking your phone number and email address (if present) under You can be reached by FaceTime (iMessage) at in Settings>Messages>Send & Receive and Settings>FaceTime on their devices.  Also uncheck their email address (if present) on your phone.
    Otherwise have them use separate Apple IDs for these services (tap the ID, sign out, sign back in with a different ID).  You can do this and still share the same ID for other services such as iTunes.

  • How to under complete document to configure prerequisite using fields both

    Hi,
       When I configure prerequisite under complete document for one substitution but fialed withe syntax error when I tried use the following prerequisite:
    BKPF-BUKRS = 'XXXX' AND
    BSEG-HKONT IN SET1
      But I input this prerequisite under line item it is ok . I am wondering if there is no permit for BSEG table field under prerequisite under complete document. Pls give me some advice on how to under complete document to configure prerequisite using fields both in BKPF and BSEG. Thanks.

    Hi Mohan,
       I did active it at call point3(complete document) but my question is when I configure prerequest I am confused that only BKPF data fields can be used in prerequest. Why field in BSEG can not be used in prerequisite?  Once I input BSEG field in prerequisite there will be syntax error message shown up.

  • How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    Welcome to the Apple Community.
    Create an iCloud account for each of them.

  • How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?

    How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?
    CS 5.0 launches the internet browser.  > TO SLOW I DONT WANT THIS.
    CS 3.0 uses the local help files > I WANT THIS FOR 5.0.

    You're not speaking to the right forum for your request. Help is a Suite-wide feature and here is the forum where the Help application is discussed, and where the proper Adobe people hang out:
    Community Help Application

  • How do I set up a 3GS to use without sim as an ipod touch.

    How do I set up a 3GS to use without sim as an ipod touch.

    You can't, you will need a SIM to use.

Maybe you are looking for