openwindow
malte
- html
Sorry, hier das Script:
<!--
// Alle Attributen des Fensters stehen in 'strAttrib'.
var strAttrib = 'dependent,alwaysRaised,width=400,height=150,screenX=150,screenY=250,top=150,left=180,scrollbars=0,menubar=0'
var w1;
var w2;
function OpenWindow(strURL)
{
if(navigator.platform.indexOf('Mac') !=-1)
if( navigator.appName.indexOf('Microsoft') !=-1 )
{
//IE for Mac.
w1 = window.open(strURL, 'msgWin1',strAttrib);
w1.focus();
return;
}
if(w1!=null)
{
w1.close();
w1 = null;
w2 = window.open(strURL, 'msgWin2',strAttrib);
if( navigator.appName.indexOf('Netscape') !=-1 )
{
w2.focus();
w2 = null;
}
}
else
{
if(w2!=null)
{
w2.close();
w2 = null;
}
w1 = window.open(strURL, 'msgWin1',strAttrib);
if( navigator.appName.indexOf('Netscape')!=-1 )
{
w1.focus();
w1 = null;
}
}
}
function CloseWindow()
{
if(w1!=null)
{
w1.close();
w1 = null;
}
if(w2!=null)
{
w2.close();
w2 = null;
}
}
// -->
Was mus ich den ändern um verschieden Fenstergrößen zuzulassen??
Hallo Malte,
var strAttrib = 'dependent,alwaysRaised,width=400,height=150,screenX=150,screenY=250,top=150,left=180,scrollbars=0,menubar=0'
zu
var strAttrib = 'dependent,alwaysRaised,screenX=150,screenY=250,top=150,left=180,scrollbars=0,menubar=0'
»»function OpenWindow(strURL)
zu function OpenWindow(strURL,hoehe,weite)
w1 = window.open(strURL, 'msgWin1',strAttrib);
zu
var x=strAttrib + ",width=" + weite + ",height="+hoehe;
w1 = window.open(strURL, 'msgWin1',x);
aendern (entsprechend fuer die anderen Stellen im Script).
Gruß Ralf