• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. screen > Example: Redirecting Based on Screen Resolution

Example: Redirecting Based on Screen Resolution

One of the scenarios I face in my JavaScript Laboratory is the layout of a page. For instance, I want my pages visible to the client computer without horizontal scrolling. However, I designed my system on an 800×600 screen resolution. Today, this is the standard, but many people still operate on a 640×480 resolution. (You may recall my rant in the previous chapter about supporting everybody; it applies to screen dimensions as well.)

So I need a special section for people who support a smaller resolution. Building a directory for it on my server is not hard. In my frameset directory, I can include a script so the URIs point to the directory appropriate for a user's resolution as seen in Listing 19.1.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint