Hello and welcome to our community! Is this your first visit?
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
    Thanked 0 Times in 0 Posts

    Help with JS code for an animation


    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,


    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?


  • #2
    Senior Coder
    Join Date
    Mar 2005
    Portsmouth UK
    Thanked 513 Times in 500 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 11:17 AM.

    God Loves You and will never love you less.


    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