/    Sign up×
Community /Pin to ProfileBookmark

Hey guys,
I am trying to recreate something like this. I am a big noob when it comes to javascript, so any detailed help would be wonderful. Thanks.

[url]http://img146.imageshack.us/my.php?image=multiplicationsh5.jpg[/url]

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@rnd_meNov 25.2008 — [CODE]Array.prototype.times = (function () {
function obSubl(ob) {var r = [];var i = 0;for (var z = 0; z < ob.length; z++) {r[z] = z;}return r;};function obValsl(ob) {try {if (ob && ob.length) {var r = [], i = 0, mx = ob.length;for (var z = 0; z < mx; z++) {r[z] = ob[z] || undefined;}}} catch (yy) {alert(yy);}return r;}
var r = [];var t = "";var mx = this.length;var v = obValsl(this);var s = obSubl(this);r[0] = "x\*/yt" + v.join("t");for (var z = 0; z < mx; z++) {var n = [];for (var i = 0; i < mx; i++) {n[n.length] = v[i] * v[z];}r[r.length] = v[z] + ":t" + n.join("t");}return r.join("n");})

alert([1,2,3,4,5,6,7,8,9].times())[/CODE]
Copy linkTweet thisAlerts:
@sunkentheoryauthorNov 25.2008 — Hey! Thanks for your help! I entered it into dreamweaver. Is there anyway we could make it prompt the user to enter a number (say 8 or 9) and it will make a multiplication chart like the one above?
×

Success!

Help @sunkentheory spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...