Script Categories













Page Details >>> Roman Numerals.

This script helps you write the copyright statements on your page. It outputs the correct Roman Numerals for any year you want, including the current year.


or use the current year...

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
var LMDate = new Date( document.lastModified );
year = LMDate.getYear();
if (year < 1900) { year +=1900; }

function Init() {
this.length = Init.arguments.length;
for ( var i = 0; i < this.length; i++ ) this[ i + 1 ] = Init.arguments[ i ];
}
function Roman(number) {
if (number < 1) { alert(number+" is too small\nMinumum value is 1"); number = 1; }
if (number > 5999) { alert(number+" it too big\nMaximum value is 5999"); number = 5999; }
var roman_unit = new Init("","I","II","III","IV","V","VI","VII","VIII","IX");
var roman_tens = new Init("","X","XX","XXX","XL","L","LX","LXX","LXXX","XC");
var roman_hund = new Init("","C","CC","CCC","CD","D","DC","DCC","DCCC","CM");
var roman_thou = new Init("","M","MM","MMM","MMMM","MMMMM");

var v = 0; var w = 0; var x = 0; var y = 0;
v = ((number - (number % 1000)) / 1000) + 1;
number = (number % 1000);
w = ((number - (number % 100)) / 100) + 1;
number = (number % 100);
x = ((number - (number % 10)) / 10) + 1;
y = (number % 10) + 1;
return ("© " + roman_thou[v] + roman_hund[w] + roman_tens[x] + roman_unit[y]);
}
//  End -->
</script>
<pre>
<script>
document.write("<b>1963 = " + Roman(1963) + "<br>");
document.write("1872 = " + Roman(1872) + "<br>");
document.write("1999 = " + Roman(1999) + "<br>");
</script>
</pre>

or use the current year...
<script>
document.write(Roman(year) +'</b>');
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

http://www.cashadvance-loans.net/indiana/cash-advance-mishawaka-in/ . Bitcoin Dice - Crypto Casino


©