Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Programming Equivalents
JavaScript can help you find programming equivalents.
Binary:
Ternary:
Quintal:
Octal:
Decimal:
Hexadecimal:
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Cut-N-Paste JavaScript <!-- Begin var hex; function MakeArray() { this.length = 16; return this; } function Populate() { hex = new MakeArray(); hex[1] = "0"; hex[2] = "1"; hex[3] = "2"; hex[4] = "3"; hex[5] = "4"; hex[6] = "5"; hex[7] = "6"; hex[8] = "7"; hex[9] = "8"; hex[10] = "9"; hex[11] = "A"; hex[12] = "B"; hex[13] = "C"; hex[14] = "D"; hex[15] = "E"; hex[16] = "F"; } function DecimaltoAnother(N, radix) { s = ""; A = N; while (A >= radix) { B = A % radix; A = Math.floor(A / radix); s += hex[B+1]; } s += hex[A+1]; return transpose(s); } function transpose(s) { N = s.length; t = ""; for (i = 0; i < N; i++) t = t + s.substring(N-i-1, N-i); s = t; return s; } function EvalB(form) { if (form.b.value.length != 0) M = parseInt(form.b.value, 2); else M = 0; form.t.value = DecimaltoAnother(M, 3); form.q.value = DecimaltoAnother(M, 5); form.o.value = DecimaltoAnother(M, 8); form.h.value = DecimaltoAnother(M, 16); form.d.value = M; } function EvalT(form) { if (form.t.value.length != 0) M = parseInt(form.t.value, 3); else M = 0; form.b.value = DecimaltoAnother(M, 2); form.q.value = DecimaltoAnother(M, 5); form.o.value = DecimaltoAnother(M, 8); form.h.value = DecimaltoAnother(M, 16); form.d.value = M; } function EvalQ(form) { if (form.q.value.length != 0) M = parseInt(form.q.value, 5); else M = 0; form.b.value = DecimaltoAnother(M, 2); form.t.value = DecimaltoAnother(M, 3); form.o.value = DecimaltoAnother(M, 8); form.h.value = DecimaltoAnother(M, 16); form.d.value = M; } function EvalO(form) { if (form.o.value.length != 0) M = parseInt(form.o.value, 8); else M = 0; form.b.value = DecimaltoAnother(M, 2); form.t.value = DecimaltoAnother(M, 3); form.q.value = DecimaltoAnother(M, 5); form.h.value = DecimaltoAnother(M, 16); form.d.value = M; } function EvalH(form) { if (form.h.value.length != 0) M = parseInt(form.h.value, 16); else M = 0; form.b.value = DecimaltoAnother(M, 2); form.t.value = DecimaltoAnother(M, 3); form.q.value = DecimaltoAnother(M, 5); form.o.value = DecimaltoAnother(M, 8); form.d.value = M; } function EvalD(form) { if (form.d.value.length != 0) M = parseInt(form.d.value, 10); else M = 0; form.b.value = DecimaltoAnother(M, 2); form.t.value = DecimaltoAnother(M, 3); form.q.value = DecimaltoAnother(M, 5); form.o.value = DecimaltoAnother(M, 8); form.h.value = DecimaltoAnother(M, 16); } //-- End --> </SCRIPT>
Insert into <BODY>
<BODY onLoad="Populate()"> <FORM method="post"> <TABLE border=0 align=center> <TR> <TD align=right> <p>Binary:</p> </TD> <TD> <input name="b" value="0" onChange="EvalB(form)" size=27></input> </TD> </TR> <TR> <TD align=right>Ternary:</TD> <TD> <input name="t" value="0" onChange="EvalT(form)" size=21></input> </TD> </TR> <TR><TD align=right>Quintal:</TD> <TD> <input name="q" value="0" onChange="EvalQ(form)" size=16></input> </TD> </TR> <TR> <TD align=right>Octal:</TD> <TD> <input name="o" value="0" onChange="EvalO(form)" size=12></input> </TD> </TR> <TR> <TD align=right>Decimal:</TD> <TD> <input name="d" value="0" onChange="EvalD(form)" size=11></input> </TD> </TR> <TR> <TD align=right>Hexadecimal:</TD> <TD> <input name="h" value="0" onChange="EvalH(form)" size=8></input> </TD> </TR> </TABLE> </FORM>
Other Options