home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Beweegwijzer
/
beweegwijzer.iso
/
setup
/
_SETUP.1
/
Dropdown.htc
< prev
next >
Wrap
Text File
|
2000-09-04
|
2KB
|
53 lines
<PUBLIC:ATTACH EVENT="onmouseover" HANDLER="Hilite" />
<PUBLIC:ATTACH EVENT="onmouseout" HANDLER="Restore" />
<PUBLIC:ATTACH EVENT="onclick" HANDLER="Choose" />
<script language="JavaScript">
function Hilite() {
if (element.className == 'ddImg') return;
element.style.backgroundColor = '#ffcc99';
element.style.borderColor = '#ffddbb';
}
function Restore() {
if (element.className == 'ddImg') return;
element.style.backgroundColor = '#ffeedd';
element.style.borderColor = '#ffcc99';
}
function Choose() {
if (element.className == 'ddImg') chosenDd = parseInt(element.num);
else chosenDd = parseInt(element.parentElement.num)
if (activeDd == chosenDd) { // keuze in geselecteerde dropdown
userName = element.innerText;
collapseCurrent();
activeDd = -1;
ddOpen = false;
cancelCount = 0;
NaamAction();
}
else { // andere dropdown uitrollen
collapseCurrent();
activeDd = chosenDd;
for (var i=0; i<dd[activeDd].childNodes.length; i++) {
dd[activeDd].childNodes[i].className = (dd[activeDd].childNodes[i].type=='special')?'ddShownSpecial':'ddShown';
}
ddOpen = true;
}
}
function collapseCurrent() {
if (activeDd > -1) { // indien uitgeklapt, huidige dropdown inrollen
for (var i=0; i<dd[activeDd].childNodes.length; i++) {
if (dd[activeDd].childNodes[i].innerText != userName) {
dd[activeDd].childNodes[i].className = 'ddHidden';
}
else {
if (parent.soundSettings > 1) parent.snd.src="sounds/audio9.wav";
dd[activeDd].childNodes[i].className = 'ddShown';
}
}
}
}
</script>