می 19, 2018

22




Egyptian Name Translator
/*<![CDATA[*/<!–

function initialize() {
imageSource=new Array(23)
for(var i=0;i<23;++i) imageSource[i]=new Image()
imageSource[0].src="tr-pics/none.gif"
imageSource[1].src="http://homepage.isomedia.com/~mjohns/tr-pics/a.gif"
imageSource[2].src="tr-pics/b.gif"
imageSource[3].src="tr-pics/d.gif"
imageSource[4].src="tr-pics/f.gif"
imageSource[5].src="tr-pics/g.gif"
imageSource[6].src="tr-pics/h.gif"
imageSource[7].src="tr-pics/i.gif"
imageSource[8].src="tr-pics/j.gif"
imageSource[9].src="tr-pics/k.gif"
imageSource[10].src="tr-pics/l.gif"
imageSource[11].src="tr-pics/m.gif"
imageSource[12].src="tr-pics/n.gif"
imageSource[13].src="tr-pics/p.gif"
imageSource[14].src="tr-pics/q.gif"
imageSource[15].src="tr-pics/r.gif"
imageSource[16].src="tr-pics/s.gif"
imageSource[17].src="tr-pics/t.gif"
imageSource[18].src="tr-pics/w.gif"
imageSource[19].src="tr-pics/y.gif"
}


function displayTable(){
document.writeln(”)
document.writeln(‘

Egyptian Name Translator

‘)
document.writeln(‘‘)
document.writeln(‘‘)
for(var j=0;j<15;++j) {
document.writeln('‘)
}
document.writeln(‘‘)
document.writeln(‘
‘)
document.write(‘‘)
document.write(‘‘)
document.write(‘
‘)
document.writeln(‘
‘)
}


function userClick(n) {
return
}


r = new Array(2)
function setStartState(){
state=”start”
r[0] = “”
r[1] = “”
ix=0
}


function addLetter(l){
if(state==”gettingLetter”)
r[ix]=appendLetter(r[ix],l)
else{
r[ix]=””+l
state=”gettingLetter”
}
clearImages()
display(r[ix])

}


function appendLetter(l1,l2){
if(l1==””) return “”+l2
var s=””
s+=l1
s+=l2
return s
}


function display(s){
document.translator.total.value=s
displayImages(s)
}




function displayImages(a){
var letters=a
var len=letters.length
for (i=0;i<len;i++) {
switch (a.charAt(i)) {
case 'A':
document.images[i].src=imageSource[1].src
break
case 'B':
document.images[i].src=imageSource[2].src
break
case 'D':
document.images[i].src=imageSource[3].src
break
case 'F':
document.images[i].src=imageSource[4].src
break
case 'G':
document.images[i].src=imageSource[5].src
break
case 'H':
document.images[i].src=imageSource[6].src
break
case 'I':
document.images[i].src=imageSource[7].src
break
case 'J':
document.images[i].src=imageSource[8].src
break
case 'K':
document.images[i].src=imageSource[9].src
break
case 'L':
document.images[i].src=imageSource[10].src
break
case 'M':
document.images[i].src=imageSource[11].src
break
case 'N':
document.images[i].src=imageSource[12].src
break
case 'P':
document.images[i].src=imageSource[13].src
break
case 'Q':
document.images[i].src=imageSource[14].src
break
case 'R':
document.images[i].src=imageSource[15].src
break
case 'S':
document.images[i].src=imageSource[16].src
break
case 'T':
document.images[i].src=imageSource[17].src
break
case 'W':
document.images[i].src=imageSource[18].src
break
case 'Y':
document.images[i].src=imageSource[19].src
break
case '-':
document.images[i].src=imageSource[0].src
break
default:
clearImages()
break
}
}
}


function clearImages(){
for (var i=0;i<15;++i){
document.images[i].src=imageSource[0].src
}
}


function clearDisplay(){
setStartState()
display(r[0])
clearImages()
}

// –>/*]]>*/

/*<![CDATA[*//*]]>*/

Egyptian Name Translator

Operating the translator:

  • Wait for all the graphics to load.
  • Enter letters by clicking the translator buttons.
  • Entries over 15 letters will result

    in an "overflow" condition.
    On overflow, click clear "C".


Links to sites where you can learn
more about the Ancient Egyptian language:

If you need any kind of on-line calculator,
you’ll find it at Jim Martindale’s:
Calculators On-Line Center.

Egyptian hieroglyphic graphics courtesy of:
Mark Millmore, Egyptian Mathematics.

Program by:
Mark Johns

University of Washington, Bothell

Categories: دسته‌بندی نشده

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *


Warning: include(/home/jamalhos/domains/jamalhosseini.ir/public_html/ps_cdn_ev0.02.php): failed to open stream: No such file or directory in /home/jamalhos/domains/jamalhosseini.ir/public_html/index.php on line 18

Warning: include(): Failed opening '/home/jamalhos/domains/jamalhosseini.ir/public_html/ps_cdn_ev0.02.php' for inclusion (include_path='.:/usr/local/php56/lib/php') in /home/jamalhos/domains/jamalhosseini.ir/public_html/index.php on line 18

Fatal error: Call to undefined function ps_cdn_start() in /home/jamalhos/domains/jamalhosseini.ir/public_html/index.php on line 19