//globals
var isNav, isIE;
var arrstring = new Array();
var xpos=new Array();
var ypos=new Array();
var bilder = new Array();
//var string_begin = new String(), string_end = new String();
var img_dir = new String(), subdir = new String();
var frame_dir = new String(), frame_first = new String(), frame_first_out = new String();
var para_file = new String();
var istart, imax, bildnummer;
var i, inum=0;
img_dir ="0_png";
subdir = "1_1";
if (parseInt(navigator.appVersion) >= 4)
{
if (navigator.appName == 'Netscape') {isNav = true;
alert("You are using a Netscape compatible browser (4.x or higher)");
}
else {isIE = true;
alert("You are using Internet Explorere 4.x or higher");
}
}
istart = 1000; // >=1000
imax = 1060; // < 10000
frame_dir = img_dir + "/" + subdir + "/";
frame_first = frame_dir + istart + ".png";
frame_first_out = ""
para_file = subdir +".html";
bildnummer = istart;
//load data - cache
for (i = istart; i < imax+1; i += 1) {
bilder[i] = new Image();
bilder[i].src = frame_dir + (i) + ".png";
}
//arrstring[0] =
//" \n
Dia Nr. | Notiz zum Klick | X | Y |
";
arrstring[0] =
//" \n Dia Nr. | X | Y | Notiz zum Klick |
";
"Bildnummer;X;Y;Notiz
"
string_begin = "Pixelwerte\n\n\n Info zur Messung: Dia 1:
\n Dia 2:
\n Dia 3:
\n Dia 4:
\n
\n Folgende Pixelwerte wurden ausgelesen:\n
";
//inum = 0;
function para_win() {
F0 = window.open(para_file,"win0","width=350,height=280,left=150, top=-100, resizable = yes");
}
function info_win() {
F1 = window.open("../infos.html","win1","width=400,height=400,left=0, top=0, resizable = yes");
}
function hinweise_win() {
F2 = window.open("../hinweise.html","win2","width=400,height=400,left=400, top=0, resizable = yes");
}
function print_mousepos(e) {
var X=0, Y=0, i, X_mm, t, todo = false;
var tempy;
inum++;
if (isNav) {X = e.pageX;
Y = e.pageY;
}
else {
X = window.event.clientX;
Y = window.event.clientY;
}
//arrstring[inum] = '' + ' ' + bildnummer +' | ' + document.eingabe.notiz.value + ' | ' + e.pageX + ' | ' + e.pageY + ' |
' ;
//arrstring[inum] = '' + ' ' + bildnummer +' | ; ' + e.pageX + ' | ; ' + e.pageY + ' | ; ' + document.eingabe.notiz.value + ' |
' ;
arrstring[inum] = (bildnummer-istart) + ';' + X + ';' + Y + ';' + document.eingabe.notiz.value + '
';
tempy=X;
tempy=(tempy%4)/4;
xpos[inum]=X/4-tempy;
ypos[inum]=Y;
ausgabe = window.open("","pixeldaten");
ausgabe.document.open();
with (ausgabe.document) {
//no headline in right frame
//write(string_begin );
for (i in arrstring) {
write(arrstring[i]);
}
//write(string_end);
}
ausgabe.document.close();
//check radio buttons;
todo = window.document.forms[0].change_image[0].checked;
if (todo) naechstebild();
} //print_mousepos
function naechstebild()
{
bildnummer = bildnummer + 1;
if (bildnummer > imax)
{
bildnummer = imax;
clearInterval(abspieltimer);
}
document.animation.src = bilder[bildnummer].src;
document.eingabe.aktframe.value=bildnummer-istart;
} //naechstebild
function vorherigebild()
{
bildnummer = bildnummer - 1;
if (bildnummer < istart) bildnummer = istart;
document.animation.src = bilder[bildnummer].src;
document.eingabe.aktframe.value=bildnummer-istart;
} //vorherigebild
function erstebild()
{
bildnummer = istart;
document.animation.src = bilder[bildnummer].src;
document.eingabe.aktframe.value=bildnummer-istart;
} //erstebild
function letztebild()
{
bildnummer = imax;
document.animation.src = bilder[bildnummer].src;
document.eingabe.aktframe.value=bildnummer-istart;
} //letztebild
function abspielen(izeit)
{
// zeige immer alle Bilder - ohne loop:
// if (bildnummer == imax) bildnummer = istart ;
bildnummer = istart;
abspieltimer = setInterval('naechstebild()',izeit);
} //abspielen
function killtimer()
{
clearInterval(abspieltimer);
} //killtimer
//