for (var o = 0; o < menunodes.length; o++) {
otext += nodeValue(menunodes[o]);
}
+ otext = otext.substr(0,15) + '...';
list.options[list.length] = new Option(n + ' : ' + otext, n);
}
}
-
+/*
function currentSlide() {
var cs;
if (document.getElementById) {
} else {
cs.style.visibility = 'visible';
}
-}
+}*/
function go(step) {
if (document.getElementById('slideProj').disabled || step == 0) return;
ce.style.visibility = 'hidden';
ne.style.visibility = 'visible';
jl.selectedIndex = snum;
- currentSlide();
+ //currentSlide();
number = 0;
}
var slideColl = GetElementsWithClassName('*','slide');
var slides = document.getElementById('slideProj');
var outline = document.getElementById('outlineStyle');
+ var controls = document.getElementById('controls');
if (!slides.disabled) {
slides.disabled = true;
outline.disabled = false;
var slide = slideColl[n];
slide.style.visibility = 'visible';
}
+ document.getElementById("toggle").value = "Lista slajdów";
+ addClass(controls, 'hideme');
+ showHide('h');
} else {
slides.disabled = false;
outline.disabled = true;
slide.style.visibility = 'hidden';
}
slideColl[snum].style.visibility = 'visible';
+ document.getElementById("toggle").value = "Ciągły tekst";
+ showHide('s');
}
}
function createControls() {
var controlsDiv = document.getElementById("controls");
if (!controlsDiv) return;
- var hider = ' onmouseover="showHide(\'s\');" onmouseout="showHide(\'h\');"';
+ /*var hider = ' onmouseover="showHide(\'s\');" onmouseout="showHide(\'h\');"';
var hideDiv, hideList = '';
if (controlVis == 'hidden') {
hideDiv = hider;
} else {
hideList = hider;
- }
- controlsDiv.innerHTML = '<form action="#" id="controlForm"' + hideDiv + '>' +
- '<div id="navLinks">' +
- '<a accesskey="t" id="toggle" href="javascript:toggle();">Ø<\/a>' +
- '<a accesskey="z" id="prev" href="javascript:go(-1);">«<\/a>' +
- '<a accesskey="x" id="next" href="javascript:go(1);">»<\/a>' +
- '<div id="navList"' + hideList + '><select id="jumplist" onchange="go(\'j\');"><\/select><\/div>' +
- '<\/div><\/form>';
- if (controlVis == 'hidden') {
+ }*/
+ controlsDiv.innerHTML = '' +
+ '<input type="button" accesskey="t" id="toggle" onclick="toggle();" value="Ciągły tekst"' +
+ '<input type="button" accesskey="z" id="prev" onclick="javascript:go(-1);" value="«"' +
+ '<input type="button" accesskey="x" id="next" onclick="javascript:go(1);" value="»"' +
+ '<select id="jumplist" onchange="go(\'j\');"><\/select><\/div>';
+ /*if (controlVis == 'hidden') {
var hidden = document.getElementById('navLinks');
} else {
var hidden = document.getElementById('jumplist');
}
- addClass(hidden,'hideme');
+ addClass(hidden,'hideme');*/
+ document.getElementById("toggle").onclick = toggle;
}
function fontScale() { // causes layout problems in FireFox that get fixed if browser's Reload is used; same may be true of other Gecko-based browsers
}
window.onload = startup;
-window.onresize = function(){setTimeout('fontScale()', 50);}
\ No newline at end of file
+window.onresize = function(){setTimeout('fontScale()', 50);}