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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with JS code for an animation

    hey,

    I need help with javascript code,

    I have a information on a page, where the user selects a few things from drop down menu's,which is linked to a database, and then the things the user has selected must appear on the second page, which is fine, i've done that,

    BUT

    I also need to create a code that will change the information displayed on the second page

    I need to create a script that causes the values to change position from their original sequence in the form to alphabetical order ten seconds after the page has loaded


    I just don't know where to start or what to do, I have done other animation before on a page, where the text will appear after 5 seconds etc.

    but nothing to this extent

    can anyone help me please?


    Thanks

  • #2
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,518
    Thanks
    3
    Thanked 506 Times in 493 Posts
    this does not sound too much of a problem

    1) collect the elements in an array

    2) remove from parent node

    3) sort the array

    4) replace in parent

    but will need an example of original items(elements)
    Last edited by vwphillips; 06-02-2006 at 10:17 AM.
    Vic

    God Loves You and will never love you less.

    http://www.vicsjavascripts.org/Home.htm

    If my post has been useful please donate to http://www.operationsmile.org.uk/


  •  

    Posting Permissions

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