|
|
- Web page that uses one or more of Navigator object properties described in this lesson. The information captured by the browser detection code is reported in an alert dialogue box.
-
Web page that looks at a different Navigator object property. The browser data is displayed inline.
- A creative way to share browser details with users.
|
|
|
|
- 2.1: Create a web page that tests for both Javascript and Java compatibility and reports the results. Report the results either through an alert box or by dynamically writing.
- 2.2: Create three web pages and name them msie.html, ns.html, and opera.html. Customize each page with a unique greeting or some other browser-specific content. Then create a fourth Web page with Javascript code that will automatically redirect users to the page for their browser. Label your message Homework Task 2.2.
- 2.3: Optional: This homework task is for students who would like to try an advanced challenge. Modify your redirection program so that it detects users who are running a particular browser and version (for example, MSIE 6) and redirects them to a special page (it can be a Help Page, a short FAQ, a greeting, etc.) while sending all other users to one of the three custom-built pages that you created for the previous homework task. Post the URL for this page on the class board. Label your message Homework Task 2.3
|
|
|
|
Web page/s demonstrating your understanding of the seven detection recipes
- Support for CSS
- browserLanguage Support
- Platform
- Screen resolution
- Colour depth
- Number of colours
- Window/screen ratio
|
|
|
|
Index to all of week 4
4.1:
- Experiment with frames break-out recipes.
- Web page to disable the right click menu.
- Protect graphics using the ProtectImages function.
|
|
|
4.2:
- Web page w/Select Text "kill filter".
- Encrypt one or more pages.
|
|
|
|
- Set of Must Visit From recipes:
Song page redirects to Plockton with alert:
../plockton/Plockton_Morning_originalSong.html
Sutherland page redirects to Photo Index 2002 without alert:
../plockton/p2000/p2000_sutherland_ph_01.htm
- "Deep link blocking" script on at least several of your existing pages. Provide one example of URL detection and redirection using an alert button, and at least one example where automatic redirection occurs without alerting the user.
If Vistas from the Seal Trips is reached from other than Leisure Marine, visitor is redirected to Leisure Marine Home with an alert:
../leisuremarine/pvista01.htm
If Itinerary is reached from other than the Family page, visitor is redirected to generic travel page without alert:
itinerary_Plockton2002.html
- Optional: Experiment with "deep link blocking" recipes.
If ScotSpeak is reached from Plockton (menu on the left frame), the visitor receives a Plockon-oriented message; if reached from the Lehua's Refuge (ScotSpeak button on the right near the top), a suggestion to visit Plockton; else no message:
../ScotSpeak/index.html
|
|