home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 January
/
Chip_2003-01_cd1.bin
/
servis
/
avg
/
functions.js
< prev
next >
Wrap
Text File
|
2002-05-07
|
1KB
|
34 lines
// funkcia rozbaluje a zbaluje polozky v submenu
function outliner(childID) {
var child = document.all[childID];
if (child.className == "collapsed") {
hideLayers();
child.className = "expanded";
eval("document." + childID + "_bullet.src = '../../pics/ikony/arrow2.gif'");
}
else {
child.className = "collapsed";
eval("document." + childID + "_bullet.src = '../../pics/ikony/arrow1.gif'");
}
}
// funkcia, ktora zbaluje vsetky polozky v submenu
function hideLayers() {
sekcie = document.all.tags("div");
for (i=0; i < sekcie.length; i++) {
if (sekcie(i).id.charAt(0) != "_") {
sekcie(i).className = "collapsed";
}
}
}
// funkcia na preklapanie ikoniek
function rollIcon(icon,state) {
eval("document." + icon + ".src = 'images/" + icon + state + ".gif'");
}
// upravena funkce pro preklapeni vicera stejnych ikonek v jednom dokumentu!
function rollIcons(icon,state,objekt) {
eval("document." + objekt + ".src = 'images/" + icon + state + ".gif'");
}