This is a discussion on "Resolution specific delivery" within the JavaScript Forum section. This forum, and the thread "Resolution specific delivery are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Resolution specific delivery
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Resolution specific delivery
I hope I've posted this in the correct forum, I'm sure the answer will be Javascript.
Is there someway that I can check the resolution of a browser and then deliver the appropriately sized page? Thank you |
|
|
|
|||
|
Re: Resolution specific delivery
|
|
|||
|
Re: Resolution specific delivery
Thank you very much indeed darryladie for the code, unfortunately I don't know how to implement it or construct the "case statement" or "if statement".
Ideally, if the visitor is 800x600 they would go to index1.htm and if they're at 1024x768 or bigger they would go to index2.htm |
|
|||
|
Re: Resolution specific delivery
OK, to redirect the user based on their resolution do the following:
Last edited by darryladie; May 13th, 2006 at 16:26. |
|
|||
|
Re: Resolution specific delivery
Thank you darryladie, I shall try it straight away!
|
|
|||
|
Re: Resolution specific delivery
I'm afraid it didn't work.
I try placing it in different parts of the page but it appeared in view so I put script tags around it, it disappeared from view and I got the impression that it was trying to work but it didn't load index2. |
|
|||
|
Re: Resolution specific delivery
Yeh you're right it doesn't, this now does, in both IE and FF:
Please this in your <head>:
|
|
|||
|
Re: Resolution specific delivery
Thank you Darryl, I'll give it it try
Kind regards Mike |
|
|||
|
Re: Resolution specific delivery
Why are you taking this approach in the first place? Better to use css and design you pages to work at whatever size the browser happens to be. Also you don't then have the problem of maintaining more than one version of any particular page. |
|
|||
|
Re: Resolution specific delivery
Thank you Darryl, you're right, this one does work.
Again many thanks for helping me solve the problem, hopefully I can return the favour one day. Kind regards Mike (Thread closed) |
![]() |
| Tags |
| resolution, specific, delivery |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Resolution problem | A800 | Web Page Design | 3 | Mar 11th, 2008 20:40 |
| Loading specific flash movies for specific pages | koonkle | Flash & Multimedia Forum | 3 | May 22nd, 2007 17:23 |
| ASP / ASP. Net Software Delivery Engineer - Oxford - Client-facing | Web JobBot | Job Opportunities | 0 | Feb 8th, 2007 16:40 |
| How can I know the user's resolution | QuikFrozen | JavaScript Forum | 5 | Aug 9th, 2006 15:03 |
| Resolution Fix | Udabar | JavaScript Forum | 6 | Apr 10th, 2006 02:23 |