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

Chapter 1. Dynamism and Detection > Project I: Generating Platform-Specific Con...

Project I: Generating Platform-Specific Content

After playing around with the existing HTML, you have concluded that, in order for the page to look the same on both platforms, a font size of 2 for the Macintosh and a font size of 3 for Windows machines are required. To solve our problem we are going to need to write the FONT tag dynamically into the HTML, so our script needs to be placed inside the body of the HTML in the spot where the FONT tag would normally reside.

For this first script there are two main parts: First, we must find out what platform the user is on; and second, we need to have the browser dynamically print out the different code needed for each.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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