Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2012, 08:00 PM   PM User | #1
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
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
farmlord is offline   Reply With Quote
Old 11-26-2012, 08:05 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 946
Thanks: 7
Thanked 97 Times in 97 Posts
WolfShade is an unknown quantity at this point
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".
WolfShade is offline   Reply With Quote
Old 11-26-2012, 08:29 PM   PM User | #3
devnull69
Senior Coder

 
Join Date: Dec 2010
Posts: 2,245
Thanks: 10
Thanked 531 Times in 525 Posts
devnull69 will become famous soon enough
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)?
devnull69 is offline   Reply With Quote
Old 11-26-2012, 08:39 PM   PM User | #4
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 946
Thanks: 7
Thanked 97 Times in 97 Posts
WolfShade is an unknown quantity at this point
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".
WolfShade is offline   Reply With Quote
Old 11-26-2012, 08:52 PM   PM User | #5
farmlord
New to the CF scene

 
Join Date: May 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
farmlord is an unknown quantity at this point
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
farmlord is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:15 PM.


Advertisement
Log in to turn off these ads.