Alright, I've got a problem.
I'm attaching the function hover() to the whole document, which should fire onpropertychange.
Well, but the <option> tag should not be affected by this eventhandler.
Code:
doesn't work unfortunately...PHP Code:window.onload=Init;
function Init(){
if(document.activeElement){
document.attachEvent("onpropertychange",hover);
option = document.getElementsByTagName("option");
for(j = 0; j < option.length; j++){
document.getElementsByTagName("option")[j].detachEvent("onpropertychange",hover);
}
}
}
May there exist an other possibility to reach the result I'm aiming for?
Thx a lot, and sorry for my bad English![]()







Bookmarks