www.webdeveloper.com

Search:

Type: Posts; User: wbport

Page 1 of 15 1 2 3 4

Search: Search took 0.04 seconds.

  1. function playOne() { var randSum=0; for...

    function playOne() {
    var randSum=0;
    for (var i=0; i < 20; i++)
    randSum+= Math.random();
    return (randSum * 0.7748) - 7.748;
    } might work
  2. Replies
    6
    Views
    1,704

    Sorry, I missed the [i] in the original post.

    Sorry, I missed the [i] in the original post.
  3. Replies
    6
    Views
    1,704

    Are you getting your checkboxes and radio buttons...

    Are you getting your checkboxes and radio buttons mixed up? Checkboxes are stand alone as to whether they are checked or not but radio buttons come in sets. This round robin generator has several...
  4. Replies
    2
    Views
    505

    Try this resourse:...

    Try this resourse: www.codelifter.com/main/javascript/slideshow2.html I use it for a slideshow of cats: cats on a garden chessboard.
  5. Changing it to "onkeydown" seemed to do it as the...

    Changing it to "onkeydown" seemed to do it as the quirksmode website suggested--that was the same thing as in the sudoku puzzle. Guyon Roche wrote the webpage--I only have a few tweaks in his code...
  6. [RESOLVED] onkeypress works in Firefox, not I.E.

    I am trying to get the following to work in a timesheet page:

    document.onkeypress = keyHit;
    function keyHit(evt) {
    var e = evt || window.event;
    if (document.timeform.DeBugging.checked==false) {...
  7. This is one idea: var Characters =...

    This is one idea:
    var Characters = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZOI"
    var PassWord=""
    for (var i=0; i < 8; i++) {
    var rnd = Math.floor(Math.random() *...
  8. Replies
    6
    Views
    806

    This a working example in a Sukolu solver...

    This a working example in a Sukolu solver. It shows start, details, solver, and about with only one div showing at a time.
  9. What do you have in (body onload="???") Works...

    What do you have in (body onload="???") Works fine here: cats.
  10. Replies
    4
    Views
    857

    If I were a teacher I'd probably have access to...

    If I were a teacher I'd probably have access to better ways to display formulas like that, but just saving room for the (new) first term after the equal sign was tricky enough.
  11. Replies
    4
    Views
    857

    Many thanks! The whole (new) page is...

    Many thanks! The whole (new) page is InterestTheory.html.
  12. Replies
    4
    Views
    857

    Canceling a superscript in a table.

    In the following code snippet:
    html>
    <head>
    <title>Calculating Loan Payments</title>
    </head>
    <body>
    <center><h1>Calculating Loan Payments</h1></center>
    <center><table style="font-size:...
  13. Replies
    3
    Views
    443

    Code could also be added to the script the submit...

    Code could also be added to the script the submit button triggers to check for filled out fields first.
  14. Replies
    3
    Views
    893

    How to change font size inside a table.

    I have a webpage that shows the math behind the payment for a loan InterestTheory.html. I am able to change the type size for ordinary text but how can I change it for the table entries where I show...
  15. Got it. I ran the random function 20 times,...

    Got it. I ran the random function 20 times, summing the results. After tweaking the factor by running it 100,000 times, I got:

    <html><head><title>Rubato test</title>
    <script...
  16. [RESOLVED] Random number with statistical distribution

    I need help converting a Math.random() number into something that would simulate the distribution curve. For example, if the mean were 10.0 and a standard distribution was 1.0, the returned random...
  17. Replies
    13
    Views
    3,249

    I have a few minor tweaks to a program Guyon...

    I have a few minor tweaks to a program Guyon Roche wrote a few years back: sudoku.htm.
  18. I added the following code var j;...

    I added the following code
    var j;
    document.onkeypress = keyHit;
    function keyHit(evt) {
    var e = evt || window.event;
    if (document.timeform.DeBugging.checked==false) {
    j=0;
    return true; }...
  19. [RESOLVED] Using the Enter key to move to the next field

    I have a simple timesheet calculator and, since it would be used with the numeric keypad on the right, how could I produce intermediate results and go to the next field when the Enter or + key was...
  20. Replies
    8
    Views
    8,851

    I have been tweaking the following for several...

    I have been tweaking the following for several years now. The amortization table will be created by the P.I. button after the monthly amount has been created. mortgage.htm. The monthly amount is...
  21. To do simple interest for a year, the formula is...

    To do simple interest for a year, the formula is trivial. Convert the interest from percent to decimal (e.g., 5% = 0.05) and the formula is (1 + i) * amount to be compounded. For more years...
  22. Replies
    1
    Views
    5,654

    I looked at "script.js" in your link and line 33...

    I looked at "script.js" in your link and line 33 has a warning which appears on mouseover.
  23. Replies
    2
    Views
    4,723

    This code can read and return the selected radio...

    This code can read and return the selected radio button:

    function readStrum() {
    var sel = document.getElementsByName("A1");
    for (var i=0; i<sel.length; i++) {
    if (sel[i].checked ==...
  24. Replies
    8
    Views
    7,219

    Remember how you were taught long division as a...

    Remember how you were taught long division as a youngster? Try writing a program to do the same thing. If it will work on smaller numbers you can verify with the modulo operator, it should work on...
  25. Replies
    2
    Views
    6,103

    This is my entry: function...

    This is my entry:
    function eventTable(eYr,eMo,eDa,eText) {
    this.date = new Date(eYr, eMo-1, eDa, 15, 0); // Time set at 3pm. In JavaScript, months are from 0 (Jan) to 11 (Dec) so 1 is...
Results 1 to 25 of 373
Page 1 of 15 1 2 3 4
HTML5 Development Center



Recent Articles