Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with code (fade in fade out)

    I got some simple code which is suppose to make an image appear. Move it to a place on the screen with a duration set and then make it fade out straight away.

    Code:
    function MoveAndFade(200, 100)
    {
        $('.laser').fadeIn('slow', function ()
        {
            $(this).animate({ left: 200px}, 'slow', 'swing', function ()
            {
                $(this).fadeOut();
            });
        })    
    }
    However this code is not working. Any help? If u got anther way to right it i could try that and see if it works.

    Thanks again for the help

  • #2
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    What do you mean by "code is not working"? Can't really help troubleshoot with that.

    Are there any messages appearing in the error console?
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #3
    Senior Coder
    Join Date
    Dec 2010
    Posts
    2,396
    Thanks
    12
    Thanked 569 Times in 562 Posts
    At least I can say for sure that "200" and "100" are not legal parameter names. Surely you wanted to use regular variable names for this and then use those parameter variables somewhere ... or what should be the purpose of (200, 100)?

  • #4
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    Good eye! I completely flaked on that one.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • #5
    New to the CF scene
    Join Date
    May 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by devnull69 View Post
    At least I can say for sure that "200" and "100" are not legal parameter names. Surely you wanted to use regular variable names for this and then use those parameter variables somewhere ... or what should be the purpose of (200, 100)?
    Hi mate thanks for that but could you please give me an example iam new to all of this u see


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •