# Search:

Type: Posts; User: wbport

Page 1 of 15 1

1. ## Thread: [RESOLVED] Random number with statistical distribution

by wbport
Replies
1
Views
209

### 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:

<script...
2. ## Thread: [RESOLVED] Random number with statistical distribution

by wbport
Replies
1
Views
209

### [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...
3. ## Thread: Help generating an array to a Sudoku game.

by wbport
Replies
13
Views
730

### 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.
4. ## Thread: [RESOLVED] Using the Enter key to move to the next field

by wbport
Replies
3
Views
579

### I added the following code var j;...

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

by wbport
Replies
3
Views
579

### [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...
6. ## Thread: Loan Amortization Table

by wbport
Replies
8
Views
3,963

### 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...
7. ## Thread: compound interest calculation with regular deposits over different periods

by wbport
Replies
2
Views
1,016

### 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...
8. ## Thread: Scope and Nested Functions

by wbport
Replies
1
Views
812

I looked at "script.js" in your link and line 33 has a warning which appears on mouseover.

by wbport
Replies
2
Views
1,156

var sel = document.getElementsByName("A1");
for (var i=0; i<sel.length; i++) {
if (sel[i].checked ==...
10. ## Thread: modulo on big numbers

by wbport
Replies
8
Views
1,194

### 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...
11. ## Thread: Hiding a <div> based on a specific date...

by wbport
Replies
2
Views
1,175

### 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...

by wbport
Replies
2
Views
1,635

Thank you.
13. ## Thread: Use of "hashtag" in CSS

by wbport
Replies
2
Views
1,635

### Use of "hashtag" in CSS

I have not had to use CSS very often and what I have copied has usually been good enough, but now I am having to come up to speed after inheriting a website. This website: Devenezia round robin...
14. ## Thread: Need help builing a code

by wbport
Replies
5
Views
718

### This "do it yourself" text was created to modify...

This "do it yourself" text was created to modify a text form of music notation, but you should be able to adapt it to work with html. The framework splits lines of text into an array of strings...

by wbport
Replies
1
Views
672

### I took out the hit counter, it seems to fly now.

I took out the hit counter, it seems to fly now.

by wbport
Replies
1
Views
672

### [RESOLVED] "onload" in body isn't working -- slideshow

I have been using the slideshow code from www.codelifter.com several times without a problem. For example, in an orchestra webpage, the picture in the upper left changes every seven seconds and...

by wbport
Replies
3
Views
1,112

### Be sure value and c_name are defined and have a...

Be sure value and c_name are defined and have a value

var exdate=new Date();
var dayWeek = exdate.getDay();
var expiredays = 6 - dayWeek;
if (expiredays == 0) expiredays = 6; ...
18. ## Thread: regular expression in Javascript

by wbport
Replies
3
Views
1,384

### Putting parenthesis "()" around part of a regular...

Putting parenthesis "()" around part of a regular expression is a way to determine it's value and take appropriate action. For example, in the text based music notation system abc, the following...
19. ## Thread: Daily and monthly hit counter

by wbport
Replies
3
Views
3,579

### hitcounterguru doesn't exist anymore.

hitcounterguru doesn't exist anymore.
20. ## Thread: Is it possible to make this search function remove the answers when a new search is s

by wbport
Replies
2
Views
1,684

### McAffee warned me about visiting that site.

McAffee warned me about visiting that site.
21. ## Thread: repeating event calendar

by wbport
Replies
5
Views
1,126

### This is a demo of a script which announces a...

This is a demo of a script which announces a weekly meeting (in this case, Wednesday at noon): nextwed.htm if that helps.

by wbport
Replies
4
Views
1,228

### This might give you some ideas: function...

This might give you some ideas:
var sel = document.getElementsByName("S"+(6-parm));
for (var i=0; i<sel.length; i++) {
if (sel.checked == true) return i;
}...
23. ## Thread: Integer array question

by wbport
Replies
2
Views
875

### What have done so far? Did you get any clues...

What have done so far? Did you get any clues from the textbook, handouts, or lecture?
24. ## Thread: [RESOLVED] Calling parent with new parameters.

by wbport
Replies
1
Views
1,199

### I didn't solve the problem, just evaded it. The...

I didn't solve the problem, just evaded it. The Principal-Interest (P.I.) window now has line numbers which can be used (after closing the window) to initialize the original screen with the...
25. ## Thread: Calculate Day (as in Monday or Tuesday etc) from Date

by wbport
Replies
7
Views
1,585

### Or let the computer do even more work: var...

Or let the computer do even more work:

var dayname = new Array ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
......................................
x =...
Results 1 to 25 of 359
Page 1 of 15 1