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 3 of 3
  1. #1
    New Coder twistedsoul's Avatar
    Join Date
    Jul 2008
    Location
    UK
    Posts
    94
    Thanks
    3
    Thanked 1 Time in 1 Post

    jquery lavalamp?

    Hi, I've just started tryin to get to grips with jquery just messing around with bits and peices. I've tried to follow this tutorial,

    http://www.gmarwaha.com/blog/2007/08...jquery-lovers/

    I followed every step but it's not worked, I think I might have gone wrong on the last step "Next, in the document.ready event, fire a call to initialize the menu." I don't quite understand this part. Any ideas please

  • #2
    GŁtkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    It's this line

    Code:
    $(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
    that's refering to.

    This is the same as

    Code:
    $(document).ready(function() { $(".lavaLamp").lavaLamp({ fx: "backout", speed: 700 })});
    thus the part about the "document.ready event".

    It means that the initialization code will be run as soon as the DOM is loaded (which is the perfect time to do so).

    If you have followed that tutorial and didn't get it to work, you will have to post your code; otherwise we will have no chance finding out what went wrong.

  • #3
    New Coder twistedsoul's Avatar
    Join Date
    Jul 2008
    Location
    UK
    Posts
    94
    Thanks
    3
    Thanked 1 Time in 1 Post
    seems I've got it to work for me now, just needed to read more into it, thanks though


  •  

    Posting Permissions

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