Revision 0164607c
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
js/dhtmlsuite/menu-for-applications.js | ||
---|---|---|
242 | 242 |
getTopPos : function(inputObj) |
243 | 243 |
{ |
244 | 244 |
var returnValue = inputObj.offsetTop; |
245 |
if (returnValue > 700) returnValue = 0; |
|
245 | 246 |
while((inputObj = inputObj.offsetParent) != null){ |
246 | 247 |
if(inputObj.tagName!='HTML'){ |
247 | 248 |
returnValue += (inputObj.offsetTop - inputObj.scrollTop); |
... | ... | |
2384 | 2385 |
$('div.DHTMLSuite_menuBar_top').click(function(e) { |
2385 | 2386 |
if ($(e.target).attr('class') == 'DHTMLSuite_menuBar_top') { menu.hideSubMenus(); menu.unsetMenuBarState() } |
2386 | 2387 |
}); |
2387 |
$('#win1').load(function(){ |
|
2388 |
$('#win1').contents().mousedown(function(){ |
|
2389 |
menu.hideSubMenus(); |
|
2390 |
menu.menuBarState = false; |
|
2391 |
}); |
|
2392 |
}) |
|
2388 |
$('#content').mousedown(function(){ |
|
2389 |
menu.hideSubMenus(); |
|
2390 |
menu.menuBarState = false; |
|
2391 |
}); |
|
2393 | 2392 |
} |
2394 | 2393 |
} |
2395 | 2394 |
|
Auch abrufbar als: Unified diff
javascript menü gefixt.