Revision 42575e72
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
js/switchmenuframe.js | ||
---|---|---|
1 | 1 |
var vSwitch_Menu = 1; |
2 |
var FrameSize = (parent.document.getElementById('menuframe').cols); |
|
2 |
var Frame; |
|
3 |
var FrameSize; |
|
3 | 4 |
|
4 |
function Switch_Menu() |
|
5 |
{ |
|
6 |
if (vSwitch_Menu) |
|
7 |
{ |
|
8 |
vSwitch_Menu=false; |
|
9 |
parent.document.getElementById('menuframe').setAttribute('cols','30,*'); |
|
10 |
} |
|
11 |
else |
|
12 |
{ |
|
13 |
vSwitch_Menu=true; |
|
14 |
parent.document.getElementById('menuframe').setAttribute('cols',FrameSize); |
|
15 |
} |
|
16 |
return; |
|
5 |
function Switch_Menu() { |
|
6 |
if (Frame) { |
|
7 |
Frame.attr('cols',vSwitch_Menu ? '30,*' : FrameSize); |
|
8 |
vSwitch_Menu=!vSwitch_Menu; |
|
9 |
} |
|
17 | 10 |
} |
11 |
|
|
12 |
$(function(){ |
|
13 |
Frame = $(parent.document.getElementById('menuframe')); |
|
14 |
FrameSize = Frame.attr('cols'); |
|
15 |
}) |
Auch abrufbar als: Unified diff
switchmenuframe so umgeschrieben dass es keine fehler wirft