Revision d9e39600
Von Stephan Köhler vor fast 19 Jahren hinzugefügt
bin/mozilla/menunew.pl | ||
---|---|---|
52 | 52 |
&acc_menu; |
53 | 53 |
|
54 | 54 |
print qq| |
55 |
<iframe src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo&path=$form->{path}" width="100%" height="93%" name="main_window" style="position: absolute; border:0px;"> |
|
55 |
<iframe id="win1" src="login.pl?login=$form->{login}&password=$form->{password}&action=company_logo&path=$form->{path}" width="100%" height="93%" name="main_window" style="position: absolute; border:0px;">
|
|
56 | 56 |
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen. |
57 | 57 |
</p> |
58 | 58 |
</iframe> |
... | ... | |
175 | 175 |
var isDOM = (document.getElementById ? true : false); |
176 | 176 |
var isIE4 = ((document.all && !isDOM) ? true : false); |
177 | 177 |
var isNS4 = (document.layers ? true : false); |
178 |
//var KO = (navigator.appName=="Konqueror" \|\| navigator.appName=="Opera") ; |
|
179 |
var KO = ((navigator.userAgent.indexOf('Opera',0) != -1) \|\| (navigator.userAgent.indexOf('Konqueror',0) != -1)); |
|
178 | 180 |
function getRef(id) { |
179 | 181 |
if (isDOM) return document.getElementById(id); |
180 | 182 |
if (isIE4) return document.all[id]; |
... | ... | |
186 | 188 |
var popTimer = 0; |
187 | 189 |
var litNow = new Array(); |
188 | 190 |
function popOver(menuNum, itemNum) { |
191 |
if (KO) document.getElementById("win1").style.visibility = "hidden"; |
|
189 | 192 |
clearTimeout(popTimer); |
190 | 193 |
hideAllBut(menuNum); |
191 | 194 |
litNow = getTree(menuNum, itemNum); |
... | ... | |
204 | 207 |
function popOut(menuNum, itemNum) { |
205 | 208 |
if ((menuNum == 0) && !menu[menuNum][itemNum].target) |
206 | 209 |
hideAllBut(0) |
210 |
if (KO) document.getElementById("win1").style.visibility = "visible"; |
|
207 | 211 |
else |
208 | 212 |
popTimer = setTimeout('hideAllBut(0)', 500); |
209 | 213 |
} |
... | ... | |
234 | 238 |
menu[count][0].ref.visibility = 'hidden'; |
235 | 239 |
changeCol(litNow, false); |
236 | 240 |
} |
241 |
|
|
237 | 242 |
function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) { |
238 | 243 |
this.isVert = isVert; |
239 | 244 |
this.popInd = popInd |
... | ... | |
334 | 339 |
function clickHandle(evt) { |
335 | 340 |
if (isNS4) document.routeEvent(evt); |
336 | 341 |
hideAllBut(0); |
342 |
if (KO) document.getElementById("win1").style.visibility = "visible"; |
|
337 | 343 |
} |
338 | 344 |
function moveRoot() { |
339 | 345 |
with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5); |
... | ... | |
422 | 428 |
qq|menu[0][$mm] = new Item(' $label', '#', '', $breit, 10, $pm); \n|; |
423 | 429 |
print qq|menu[$pm] = new Array();\n|; |
424 | 430 |
|
425 |
qq|menu[$pm][0] = new Menu(true, '>', 0, 22, 180, defOver, defBack, 'itemBorder', 'itemText');\n|;
|
|
431 |
qq|menu[$pm][0] = new Menu(true, '>', 0, 20, 180, defOver, defBack, 'itemBorder', 'itemText');\n|;
|
|
426 | 432 |
|
427 | 433 |
#print qq|<tr><td class="bg" height="22" align="left" valign="middle" ><img src="image/$item.png" style="vertical-align:middle"> <a href="menu.pl?path=bin/mozilla&action=acc_menu&level=$ml_&login=$form->{login}&password=$form->{password}" class="nohover">$label</a> </td></tr>\n|; |
428 | 434 |
§ion_menu($menu, $item); |
Auch abrufbar als: Unified diff
Bugfix 301, neue Menu funktionierte nicht mit Opera 8.52 und Konqueror 3.5.0
Beim Konqueror 3.2.2 ist das Problem noch nicht behoben