PopUp beim Öffnen vergrößern

Hallo

ich habe mal gesehen, dass ein PopUp beim Öffen erst klein ist, und sich
dann auf die Originalgröße selber vergrößert. Quasi von:

auf


----------------------
----------------------

Wie mache ich das?

Bin für jede Hilfe dankbar.

Gruss
Alf

Hallo Alf,

mit JavaScript machst du das zum Beispiel. Versuch mal dieses Script:

_<!–
var windowWidth = 293;
var windowHeight = 350;
var currentHeight = 100;

if( document.all )
{
window.resizeTo( windowWidth, 100 );
}

window.moveTo( ( screen.availWidth - windowWidth ) / 2, ( screen.availHeight - currentHeight ) / 2 );

function openWindow()
{
if( currentHeight < windowHeight )
{
currentHeight = currentHeight + 10;
window.resizeTo( windowWidth, currentHeight );
window.moveBy( 0, -5 );
setTimeout( „openWindow()“, 10 );
}
}

function closeWindow()
{
if( currentHeight > 100 )
{
currentHeight = currentHeight - 10;
window.resizeTo( windowWidth, currentHeight );
window.moveBy( 0, +5 );
setTimeout( „closeWindow()“, 10 );
}
else
window.close();
}

if( document.all )
{
openWindow();
}

//–>_

Bei Fragen zum Script einfach nochmal posten! :smile:

Bis dann!