Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   HTML (https://www.askmehelpdesk.com/forumdisplay.php?f=446)
-   -   Ordering the number (https://www.askmehelpdesk.com/showthread.php?t=136522)

  • Oct 3, 2007, 02:27 AM
    nur
    ordering the number
    hi,

    I have made an HTML page which shows a dice game.

    but the only difficult thing is putting the random numbers in order from the highest to the lowest:(

    I hope that you can answer my question

    thank you
  • Oct 10, 2007, 11:11 AM
    aaii
    You would have to use JavaScript to do this.

    Take a look at sort function

    Then you would have to use the DOM to change (.innerHTML property) the elements data (such as using a DIV).

    Hope that helps.

  • All times are GMT -7. The time now is 12:55 PM.