|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Awhile ago there was a thread regarding the ability to resize pages to match the users monitor resolution. The clickable script at the top of WPW was mentioned, and it works great. But if you want your pages to automatically adjust themselves here's a script for it.
<script language="JavaScript1.2"> <!-- /* Screen Size Redirect script (By Robert @ http://members.tripod.com/technological_tinker/) Submitted to Dynamicdrive.com to feature script in archive For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com */ if (screen.width==800||screen.height==600) //if 800x600 window.location.replace("index2.shtml") else if (screen.width==640||screen.height==480) //if 640x480 window.location.replace("http://www.microsoft.com") else if (screen.width==1024||screen.height==768) //if 1024x768 window.location.replace("http://www.dynamicdrive.com") else //if all else window.location.replace("http://freewarejava.com") //--> </script> Simply change the ("XXXX") to the page you have set up for each resolution. You can use the same page for the 640 and 600 since not many uses the 640 these days.
__________________
I started an Internet business so I could work normal hours... what happened? |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |