Script Categories













Buttons Effects >>> Window Sizer.

This is a JavaScript that shows you different window dimensions. It helps you to customize your web pages with the dimensions that best compliment your web site.

Open a window 640 x 480 pixels:

Open a window 800 x 600 pixels:


Default Netscape Browser sizes:

640 x 480
Mac = 470x300:
PC = 580x300:

800 x 600
Mac = 470x430:
PC = 580x430:

1024 x 768
Mac = 470x600:
PC = 580x600:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function regular() {
window.open('window-sizer.html','640x480','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=640,height=480')}
function large() {
window.open('window-sizer.html','800x600','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=800,height=600')}
function smallmacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=300')}
function smallpcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=300')}
function mediummacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=430')}
function mediumpcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=430')}
function largemacdefault() {
window.open('window-sizer.html','Mac','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=470,height=600')}
function largepcdefault() {
window.open('window-sizer.html','PC','toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width=580,height=600')}
// End -->
</script>
<center>
<FORM>
Open a window 640 x 480 pixels:
<INPUT TYPE=BUTTON VALUE="640x480" onClick="regular()">
<P>
Open a window 800 x 600 pixels:
<INPUT TYPE=BUTTON VALUE="800x600" onClick="large()"><P>
<
HR>
<
P>
Default Netscape Browser sizes:
<P>
<
B>640 x 480</B>
<
BR>
Mac = 470x300:
<INPUT TYPE=BUTTON VALUE="Mac" onClick="smallmacdefault()">
<BR>
PC  = 580x300:
<INPUT TYPE=BUTTON VALUE="PC" onClick="smallpcdefault()">
<P>
<
B>800 x 600</B>
<
BR>
Mac = 470x430:
<INPUT TYPE=BUTTON VALUE="Mac" onClick="mediummacdefault()">
<BR>
PC  = 580x430:
<INPUT TYPE=BUTTON VALUE="PC" onClick="mediumpcdefault()">
<P>
<
B>1024 x 768</B><BR>
Mac = 470x600:
<INPUT TYPE=BUTTON VALUE="Mac" onClick="largemacdefault()">
<BR>
PC  = 580x600: <INPUT TYPE=BUTTON VALUE="PC" onClick="largepcdefault()">

</FORM>
</center>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©