Delay and fade in

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function($){
$('#a').delay(5000).fadein(2200)
$('#b').delay(8000).fadein(2200)
</script>
<style type="text/css">
.a{
text-align:left;
.b{
text-align:center;
</style>
</head>
<body>
<p id="a"> Hello</p>
<p id="b" align="center"> Hello</p>
</body>
</html>
This is the code.. but for some reasin the thing doesnt seem to be working,,Pl ease help

Where did you learn it from?? And no the semicolons are not making a difference, the same thing is happening!
This is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function($){
    $('#a').delay(5000).fadeIn(2200);
    $('#b').delay(8000).fadein(2200);
</script>
<style type="text/css">
.a{
text-align:left;
.b{
text-align:center;
</style>
</head>
<body>
<p id="a"> Hello</p>
<p id="b" align="center"> Hello</p>
</body>
</html>

Similar Messages

  • Flash and fade effect on table cell

    is there any website that shows an example of this?
    basically i want to have the cell flash when it gets updated
    and color fades away
    i tried setting backgrounds to different alpha of the color
    but i guess computer are too fast, so i only see the last color =)

    yeah, you have to change the color and then delay and change the color, then delay.
    For this, you'd have a thread to change the color, call repaint, sleep,etc til done.

  • My firefox stops responding and fades for about a half min almost every hour, OR MORE often

    My firefox stops responding and fades for about a half min almost every hour, OR MORE often.
    I am typing a message or information, the screen fades to about half bright. the curser freezes in place and no key responds.
    The information bar at the top of the page says "firefox not responding" in about 30 seconds it restores and continues as tho nothing happens.

    I might have discovered the solution without starting over with all your places and bookmarks.
    Right after i installed 7.0.1 over a week ago,every 10-30 min When i would be watching videos online, it would freeze for 20-30 seconds. Firefox would say ( Not responding) both firefox and the plugin container process would be very large memory files. I tried to go back to Firefox 5.0. No avail it would still freeze.I tried to disable the plugin container . no good. I tried to adjust memory or cache or plugin settings in “about:config”.Nothing fixed it!
    I finally discovered why my Firefox 7.01 was periodic hanging fix. It is something to do with some of your personal files. download this this add on and install it
    https://addons.mozilla.org/en-US/firefox/addon/places-maintenance/
    or you can Google "places maintenance Firefox"
    After you install the add on, restart Firefox.go to "tools", then "add ons" and then click “extensions” tab ,then click' options" on the "places maintenance" entry. choose "ALL' or just "expire" and hit "execute", then wait until its done., restart Firefox. should be fine then and all my bookmarks, customizations ,settings, and history stays untouched!
    After i did this my Firefox did not freeze once for over 3 days straight. Might not work for everyone. I already read that Mozilla is aware of the problem and are working on a fix it in the full version of 8( the 8 beta did not fix the problem for me) . But they said this is a good temporary fix at least,( might be permanent)
    For me at least ,Firefox works fine in 7 now. perfect actually.And many people i saw on similar forums had similar problems.
    Enjoy. Hope this helped

  • How can I have an object toggle between fade out and fade in with button?

    Hello all,
    I have a problem and I was hoping someone out there could help me out with it.
    I have smart shape that is set to show for "rest of project" on one of my early slides.  It is not visible in output in the properties, but when a user clicks a button in the project, it should fade in and then stay visible.  If the user clicks the same button again, it should fade out and stay hidden.  So rather than toggle between show and hide, which I know how to do, I want it to toggle between fade in and fade out.  I am having trouble with this.  Setting its transition to fade in and fade out in the properties of the smart shape doesn't help...
    Here is the advanced action I have attached to the button that should allow the user to toggle between fade in and fade out.  The "if" parts works -- the object fades in and then finally "shows" at 100% the "else" part almost works.  It fades out, disappears, but then shows again, which I obviously dont want it to do.  I want it to stay hidden.
    If you can help, it would be great!! 

    I Don't
    But as a work around you could try increasing the canvas size to match the illustrator file, paste in the object then crop off the excess canvas in photoshop

  • I have adobe Premiere Elements 13. It will not let me delete audio or have it fade in or out. I can move the yellow line all the way down till the volume reads -0.0, but the sound is still there on playback. I can click on fade in and fade out and the yel

    I have adobe Premiere Elements 13. It will not let me delete audio or have it fade in or out. I can move the yellow line all the way down till the volume reads -0.0, but the sound is still there on playback. I can click on fade in and fade out and the yellow line that graphs volume takes a sharp raise or dip at the beginning or end of the clip, but there is no change in volume when I play back. What am I doing wrong?

    rickeyt
    Thanks for the reply. Great news about the volume adjusts.
    Now about those fades for the volume. How are you doing that?
    1. Right click the Timeline video audio and select Fade and then
    see the Fade options (I had a video with audio file, so I saw the choices as shown in the screenshot)
    2. You can also create two volume keyframes at each end of the Timeline audio clip rubberband (orange line that goes horizontally across the middle of the audio clip). At the position of the Timeline Indicator, click the Add/Remove Keyframe icon, and then with the mouse cursor position the white dots (volume keyframes) to achieve the Fade In and Fade Out audio. In the screenshot below I have moved the Timeline Indicator so that you could better see the white dots (volume keyframes).
    Please let us know if any of the above works for you with regard to the audio fades.
    Thank you.
    ATR

  • When I play movies on MPlayerX the audio delays and when on VLC its pixilated?, When I play movies on MPlayerX the audio delays and when on VLC its pixilated?

    When I play movies on MPlayerX the audio delays and when on VLC its pixilated?, When I play movies on MPlayerX the audio delays and when on VLC its pixilated?
    My Macbook Pro is 15-inch, Early 2011
    4 GB 1333 MHz DDR3
    Intel HD Graphics 3000 384 MB
    running on OS X 10.9.1
    100GB free

    Willy, the procdedure you describe works perfectly for AppleTV G1. In fact, I frequently play DTS music discs ripped to my iTunes library as Apple Lossless (ALAC) and synched to the ATV. What happens is that, as far as iTunes and the ATV are concerned, a conventional stereo 16/44 audio file is being played; however my reciever detects the DTS data stream, and instead of outputting static, it decodes the 5.1 channels correctly. This process parallels the way DTS discs were designed to be played back: a conventional CD player is connceted, via digital out, to a DTS-aware reciever/pre-amp and the two channels of static are recognized as 6 channels of DTS-encoded audio.
    However this process will only work if the player (CD, ATV, PC, etc.) sends a "bit-perfect" 16 bit/44.1 khz data stream to the decoding device. In the case of ATV G2 and G3, as has been discussed elsewhere, the unit resmaples all audio - including 16/44 PCM (Redbook CD)  - to 16/48. While this is not a big deal for conventional audio CDs, MP3s, and AAC files, it mangles the fragile DTS datastream and renders it undecodable. The resulting static that you hear is just like the static you would hear if you played a DTS CD on a non-DTS capable system.
    Sadly, I'm not aware of any easy way around this. You could use a program like Foobar (and the DTS plugin) to convert your DTS CDs to 6-ch .wav or .flac file. From there you could transcode the file to AC-3 and then mux it into a video container that ATV supports. You may need add a dummy video track, for iTunes/AppleTV to be ok with the file, though I'm not sure. This may be a lot of work.
    Sorry for the bad news. I wish that the iTunes/ATV ecosystem had better multi-channel audio support.
    Steven

  • Impact on Packet delay and Jitter due to IPSec

    We are planning to use IPSec between two 7604 routers. And IPSec actually adds more overhead to the packet there will be impact on the traffic. We would like to know the impact on Packet delay and Jitter due to IPsec on 7604 or 7606 routers.

    Hi Jger, is this for something like a message of the day? What are you using UDP 17 for?  UDP is still best effort which the switch may not necessarily be faulted for. You may try something such as turning off spanning tree on the ports to see if that can help somehow.
    -Tom
    Please mark answered for helpful posts

  • How can I play only part of a song (stop the song short) during a slideshow in iphoto and fade into the next song?

    I am making a slideshow and I only want to play half of one song and fade into the next. How can I do this?

    You need an slideshow app that gives you more control over the Soundtrack.
    Alternatives to iPhoto's slideshow include:
    iMovie, on every Mac sold.
    Others, in order of price:  PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Express  $199
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs.  However, there is no doubt that Final Cut Express is the most capable app of them all. You get what you pay for.

  • How to fade in and fade out audio in the new version of Imovie?

    Please help me!
    how to fade in and fade out audio in the new version of Imovie?

    There is a tiny dot at the beginning and ending of an audio clip that can be moved to adjust fade in and fade out.

  • Packet-Delay and Reordering with a SG200-18-Switch

    Sometimes we see an issue that the switch delays a fragment up to one millisecond. And the delay may cause reordering...
    We are using a "SG200-18 18-Port Gigabit Smart Switch" with the following Version:
    Software Information
    Firmware Version (Active Image):    1.3.2.02
    Firmware MD5 Checksum (Active Image):    4e5ee4d4fcc4f6ee86f4cf39e015e362
    Boot Version:    1.1.0.6
    Boot MD5 Checksum:    01eac6cfe0267f6c28a302c0082b7086
    Here is an extract from capture-files showing the issue. You see that the red-marked fragment is in order when it enters the switch. When it leaves the switch the red-marked fragment is delayed and reordered:
    Capture on the Interface "before" the switch:
    10:18:52.348867 IP (tos 0x0, ttl  15, id 49508, offset 2960, flags [none], proto: UDP (17), length: 306) 192.168.20.13 > 229.2.1.3: udp
    10:18:52.348868 IP (tos 0x0, ttl  15, id 49509, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.20.13.35917 > 229.2.1.3.5503: UDP, length 3238
    10:18:52.348871 IP (tos 0x0, ttl  15, id 49509, offset 1480, flags [+], proto: UDP (17), length: 1500) 192.168.20.13 > 229.2.1.3: udp
    10:18:52.348873 IP (tos 0x0, ttl  15, id 49509, offset 2960, flags [none], proto: UDP (17), length: 306) 192.168.20.13 > 229.2.1.3: udp
    10:18:52.348875 IP (tos 0x0, ttl  15, id 49510, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.20.13.35917 > 229.2.1.3.5503: UDP, length 3238
    Capture on the Interface "after" the switch:
    09:37:42.438678 IP (tos 0x0, ttl  15, id 49508, offset 2960, flags [none], proto: UDP (17), length: 306) 192.168.20.13 > 229.2.1.3: udp
    09:37:42.438680 IP (tos 0x0, ttl  15, id 49509, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.20.13.35917 > 229.2.1.3.5503: UDP, length 3238
    09:37:42.438681 IP (tos 0x0, ttl  15, id 49509, offset 2960, flags [none], proto: UDP (17), length: 306) 192.168.20.13 > 229.2.1.3: udp
    09:37:42.438727 IP (tos 0x0, ttl  15, id 49510, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.20.13.35917 > 229.2.1.3.5503: UDP, length 3238
    09:37:42.439077 IP (tos 0x0, ttl  15, id 49522, offset 2960, flags [none], proto: UDP (17), length: 306) 192.168.20.13 > 229.2.1.3: udp
    09:37:42.439313 IP (tos 0x0, ttl  15, id 49509, offset 1480, flags [+], proto: UDP (17), length: 1500) 192.168.20.13 > 229.2.1.3: udp
    09:37:42.458090 IP (tos 0x0, ttl  15, id 49523, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.20.13.35917 > 229.2.1.3.5503: UDP, length 3238
    We looked in the configuration of the switch but we can't find something, so we assume that it might be a bug in the switch...
    It is also remarkable that sometimes the same fragment is delayed by two  different Cisco switches in the setup; so it may be be something about  the content of the packet...
    Any suggestions, what it can be? Thanks in advance!

    Hi Jger, is this for something like a message of the day? What are you using UDP 17 for?  UDP is still best effort which the switch may not necessarily be faulted for. You may try something such as turning off spanning tree on the ports to see if that can help somehow.
    -Tom
    Please mark answered for helpful posts

  • Can you fade in and fade out the same layer in the same page state?

    I am simulating a lot of touch interactions, and have a hand object that moves over the simllated screen. I want to add small "taps" under the hands to show touch; I can see how its easy to fade IN an object (say a small circle) that represents the touch; but how do I fade OUT that same object?
    Any help appreciated!
    Rob

    Hey Rob,
    I think you can achieve the effect you're looking for by using 'on click' interactions in conjunction with action sequences.
    I just made a simple example, here are the steps:
    1) Select the component you'd like to react on 'tap'
    2) In the Interactions panel, click 'Add Interaction', and select 'play action sequence'
    3) The timelines panel should now be given focus, and display the new 'on click' action sequence
    4) Select the "circle" you'd like to make the fade in followed by fade out effect.  If their opacity is set to 0 at this point, use the layers panel to select them.
    5) With the circle selected, in the timelines panel click 'add action', located at the bottom.
    6) Select 'fade' from the options available.
    7) In the properties panel, define the fade properties (for fade in, obviously set 'from' to be 0, and 'to' to be 100)
    8) Repeat steps 5 through 7, but choose from=100 and to=0
    9) Arrange the fade in, and fade out events on the timeline to get the timing choreography right.
    10) If you haven't done so already, set the opacity of your circles to be 0.
    Does this work for you?
    Is this what you were looking for?
    Let me know if you need clarification on any of the steps.
    Thanks for posting, great question!
    Tara

  • Compressing (mpeg4?) a movie with static images and fades. Best settings?

    Hey there,
    I'm using compressor with Final Cut HD and a Powermacg5.
    I have a movie made mostly of static images (experimental piece with landscapes) and fades between them.
    Firstly, does anyone have any great tips for compressing a quicktime movie for the web (so probably mpeg 4) that works well with images that are mostly still? The mpeg4 setting with h264 are okay (ntsc image size, 30fps), but every so often there's sudden blocky-ness when there is a little bit of motion in the frame. Any ideas?
    Secondly, the images go really chunky when there is a slow dissolve between the images, any compression ideas there?
    I'll be experimenting myself but I thought it best to ask you guys first ... any tips?
    Thanks
    Richard

    Hi everyone
    Is it possible to compress a movie ( 83 minutes long
    ) for a Single DVD without any pixellations ?
    If so I need to know what is the best settings...
    I keep compressing with a bit rate about 6 and my dvd
    still looks bad (pixels on transitions and sometimes
    pauses).
    I don't know what I could have done wrong !!!
    I don't want to use double layer and I can't split my
    movie into 2 dvds.
    Can someone walk me through this step by step ?
    Many thanks
    I think it should be, the setting I always use are:
    Vide: 7.4Mbps, One pass, Motion Estimation: Best
    Audio:Dolby 2.0 Datarate 256 kbps.
    I have tried a lot of combos but this is the only settings I can get with no pixellations. I'm always happy with the result and its fast! You might need to knock back the data rate to make 83 mins fit.

  • Simultaneous fade out and fade in and image

    I currently have code that fades out on canvas of a view
    stack and fades in a second canvas of the view stack. However, my
    desired behavior is that the fade out happens as the fade in
    happens so it would simulate a tween effect like when making
    animated gif's. Is there a way to do this, and if so does anyone
    have any sample code to do this?

    so the fade out and fade in are working like you said,
    however I want then to be in the same position on the page. I would
    like each canvas to be at coordinates (0,0). Here is my code, but
    the canvas' are stacked vertically? Is what I want to do possible?
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initApp();">
    <mx:Style>
    Application {
    backgroundColor: #ffffff;
    backgroundGradientColors: #ffffff, #ffffff;
    </mx:Style>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    [Bindable] private var homePageImageId:int = 0;
    [Bindable] public var intervalId:uint;
    [Embed(source="images/3_1813714899.jpg")]
    [Bindable] public var imgClass3:Class;
    [Embed(source="images/5_2065488856.jpg")]
    [Bindable] public var imgClass5:Class;
    [Embed(source="images/6_717433985.jpg")]
    [Bindable] public var imgClass6:Class;
    [Embed(source="images/9_263548684.jpg")]
    [Bindable] public var imgClass9:Class;
    function initApp():void {
    checkDelayCounter();
    intervalId = setInterval(checkDelayCounter,4000);
    function checkDelayCounter():void {
    if ( homePageImageId == 0 ) {
    canvas0.visible = false;
    canvas1.visible = true;
    homePageImageId = 1;
    } else if ( homePageImageId == 1 ) {
    canvas1.visible = false;
    canvas2.visible = true;
    homePageImageId = 2;
    } else if ( homePageImageId == 2 ) {
    canvas2.visible = false;
    canvas0.visible = true;
    homePageImageId = 0;
    ]]>
    </mx:Script>
    <mx:Fade id="fade_in" duration="750" alphaFrom="0"
    alphaTo="1"/>
    <mx:Fade id="fade_out" duration="750" alphaFrom="1"
    alphaTo="0"/>
    <mx:Canvas id="canvas0" showEffect="fade_in"
    hideEffect="fade_out" visible="true" alpha="0" x="0" y="0">
    <mx:Image id="homePageImage6" source="{imgClass6}"
    width="990" height="400" x="0" y="0"/>
    </mx:Canvas>
    <mx:Canvas id="canvas1" showEffect="fade_in"
    hideEffect="fade_out" visible="false" alpha="0" x="0" y="0">
    <mx:Image id="homePageImage3" source="{imgClass3}"
    width="990" height="400" x="0" y="0"/>
    </mx:Canvas>
    <mx:Canvas id="canvas2" showEffect="fade_in"
    hideEffect="fade_out" visible="false" alpha="0" x="0" y="0">
    <mx:Image id="homePageImage5" source="{imgClass5}"
    width="990" height="400" x="0" y="0"/>
    </mx:Canvas>
    </mx:Application>

  • Lately I've noticed that videos on my iTunes aren't syncing sound with picture - lots of delay and pausing.  Any suggestions?

    Lately I've noticed that videos on my iTunes aren't syncing sound with picture - lots of delay and pausing.  Any suggestions?

    You migh give resetting your NVRAM a try:
    http://support.apple.com/kb/ht1379

  • When using FaceTime the picture is delayed and goes black ever since I updated to iOS6.0.1???

    Since I updated to iOS 6.0.1 when using FaceTime the picture is delayed and goes black???

    The <b>authorize<i></i>.net</b> website is using autocomplete=off to prevent Firefox from saving and filling the name and password.
    You can remove autocomplete=off with a bookmarklet to make Firefox save the name and password.
    *http://kb.mozillazine.org/User_name_and_password_not_remembered
    *https://support.mozilla.org/kb/Username+and+password+not+remembered

Maybe you are looking for

  • How do I move an action from one computer to another?

    I have created a rather complex action on my laptop computer, and I'd like to copy it and move it to my desktop machine. How can I do that?

  • How to assign default Title in DIS?

    Hi all.. When we paste the document in DIS,it takes the document name as a default value for the 'Title'. But I want to assign it a default value rather than name of the document. How can I implement this? Regards, Yogita

  • Same problem as Mr. Satten

    when I try and log onto the music store it brings up a message saying that I should check my network connections even though I am logged onto aol broadband and it is error 403. We just got broadband back today and I downloaded itunes6 today and I hav

  • Nokia 101 will not access Contacts on either SIM c...

    Each SIM card operates for calls or SMS. Phone will not touch (read or create) Contacts on either SIM card, says "SIM card not available" end of story. Phone has no USB socket of any kind, menus do not mention BlueTooth, so I cannot relay Contacts vi

  • Channel stopped polling

    Hi, I have two channel configured that uses file adapter to pull files from a ftp server.The general settings in both the channel -FTP parameters,Processing parameters with a polling interval of 300 secs, are same.Both differs only in the specific se