Revision 42575e72
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
js/switchmenuframe.js | ||
---|---|---|
var vSwitch_Menu = 1;
|
||
var FrameSize = (parent.document.getElementById('menuframe').cols);
|
||
var Frame;
|
||
var FrameSize;
|
||
|
||
function Switch_Menu()
|
||
{
|
||
if (vSwitch_Menu)
|
||
{
|
||
vSwitch_Menu=false;
|
||
parent.document.getElementById('menuframe').setAttribute('cols','30,*');
|
||
}
|
||
else
|
||
{
|
||
vSwitch_Menu=true;
|
||
parent.document.getElementById('menuframe').setAttribute('cols',FrameSize);
|
||
}
|
||
return;
|
||
function Switch_Menu() {
|
||
if (Frame) {
|
||
Frame.attr('cols',vSwitch_Menu ? '30,*' : FrameSize);
|
||
vSwitch_Menu=!vSwitch_Menu;
|
||
}
|
||
}
|
||
|
||
$(function(){
|
||
Frame = $(parent.document.getElementById('menuframe'));
|
||
FrameSize = Frame.attr('cols');
|
||
})
|
Auch abrufbar als: Unified diff
switchmenuframe so umgeschrieben dass es keine fehler wirft