17-10-12, 01:47 PM
كاتب الموضوع : AhmedEssawy
كود :
[color=#000080]<html>[/color]
[color=#000080]<head>[/color]
[color=#800000]<script type=[COLOR=#0000ff]"text/JavaScript"[/color]>[/COLOR]
window.alert( "Your screen resolution is " +
window.screen.width + "x" +
window.screen.height );
var width = window.screen.width / 2;
var height = window.screen.height / 2;
window.alert( "Resizing to " + width + "x" + height );
window.resizeTo( width , height );
window.alert( "Moving to 0,0" );
window.moveTo( 0 , 0 );
var centerX = window.screen.width / 4;
var centerY = window.screen.height / 4;
window.alert( "Moving to center of screen" + centerX + "," + centerY );
window.moveTo( centerX , centerY );
[color=#800000]</script>[/color]
[color=#000080]</head>[/color]
[color=#000080]<body>[/color]
[color=#000080]</body>[/color]
[color=#000080]</html>[/color]