keyboarder: Auf Maus reagieren

Beitrag lesen

Hallo Martin,

das habe ich schon gemacht, aber es tut im FF nicht. Im IE ja, im FF zeigt er beim vergrößern, als auch beim verkleinern das Kontextmenü an. Keine Ahnung, woran das liegt.

Hier der Code:

var pickField;  
function focusField(f) {  
        pickField = f;  
        f.onmouseup = resizePicklistField;  
        return false;  
}  
  
var	pickHuge = true;  
var	pickOrgPosition;  
var pickOrgTop;  
var pickOrgHeight;  
function resizePicklistField(e) {  
	if  (!e) e = window.event;  
	if ((e.button && e.button != 1)) {  
		if (pickHuge) {  
			pickOrgPosition				= pickField.style.position;  
			pickOrgTop					= pickField.style.top;  
			pickOrgHeight				= pickField.style.height;  
  
			pickField.style.position	= "absolute";  
			pickField.style.top			= 10;  
			pickField.style.height		= 500;  
  
			pickHuge					= false;  
		} else {  
			pickField.style.position	= pickOrgPosition;  
			pickField.style.top			= pickOrgTop;  
			pickField.style.height		= pickOrgHeight;  
			pickHuge					= true;  
		}  
		return false;  
	}  
}  

Übrigens, die Eclipse benutzt nicht den installierten IE, denn das ist der IE8. Das scheint noch ein alter zu sein. Aber wie gesagt, das ist nicht wichtig.

Gruß,

keyboarder