home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 February
/
Chip_2002-02_cd1.bin
/
chplus
/
syscom
/
functions.js
< prev
next >
Wrap
Text File
|
2002-01-08
|
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 = '../../data/pics/ikony/arrow2.gif'");
}
else {
child.className = "collapsed";
eval("document." + childID + "_bullet.src = '../../data/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'");
}