home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_06.cab / samp3pkj.asp < prev    next >
Text File  |  1997-10-15  |  4KB  |  44 lines

  1.  <% If Request("DontFrame")<>1 Then Response.Redirect "/iissamples/sdk/asp/docs/SampFram.asp?ovfile=/iishelp/iis/htm/sdk/samp3pkj.asp&srcfile=Interaction/Pics" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  3. <HTML>
  4. <HEAD>
  5. <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
  6. <title>Setting PICS Ratings</title>
  7. <script language="JavaScript">
  8.  
  9.     szNavVersion = navigator.appVersion
  10.  
  11.     if (navigator.appName == "Microsoft Internet Explorer") {
  12.     if (szNavVersion.indexOf ("4.") >= 0) {
  13.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie4.css">');
  14.     } else {
  15.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie3.css">');
  16.     }
  17.     }
  18.     else if (navigator.appName == "Netscape") {
  19.     document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie4.css">');
  20.     }
  21.     else {
  22.     document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/spidie3.css">');
  23.     }
  24.  
  25. </script>
  26. <META NAME="DESCRIPTION" CONTENT="Internet Information Server reference information"></HEAD>
  27. <BODY BGCOLOR=#FFFFFF TEXT=#000000>
  28. <font face="Verdana, Arial, Helvetica">
  29. <h3><a name="_setting_pics_ratings"></a>Setting PICS Ratings</h3>
  30. <p>
  31. ASP allows you to easily specify content type ratings for your Web pages, as specified by the World Wide Web Consortium's (W3C) Platform for Internet Content Selection (PICS). These ratings can then be used by client-side ratings software to determine what type of content your site provides. Though PICS was designed originally to enable adults to regulate what children access over the Internet, the standard has since become more flexible and now includes provisions for services as diverse as code signing, privacy, and intellectual property rights management. </p>
  32. <p>
  33. This sample demonstrates how you can quickly set a PICS ratings label for a document or a site This is accomplished by setting the <b>Response</b> object's <b>PICS</b> property. There are many different kinds of PICS labels, and they are passed between the client browser and server in several different ways; by using the <b>PICS</b> property. You don't need to worry about any of that. All you need to do is create, or collect from one of the ratings agencies, an appropriately formatted PICS label, and ASP will include it in the HTTP response header.</p>
  34. <p>
  35. The PICS rating label for this example gives information about the PICS version number, what ratings service did the rating, a range of dates during which the rating is valid, and the ratings. The key values provided in the <b>ratings</b> entry for this sample correspond to separate ratings for sex, violence, and so on, but really any keys can be included. This sample at least claims to have some violence and nasty language, so it's been given a value of 1 (out of 4) for violence, and 2 for language.</p>
  36. <p>
  37. For more information on PICS, including ratings services, software, and label formats, see the W3C web site at http://www.w3.org. </p>
  38. <p>
  39. <b>Note</b>  IIS sends all HTTP headers required for a given Web page or script before any HTML is sent to the client browser. Therefore, all statements and methods that modify the HTTP headers of the response, including methods that set the PICS ratings label, must be located before the <HTML> tag in your script. If your script attempts to modify the HTTP headers after the server has begun sending HTML content back to the client browser, the script will generate an error. </p>
  40. <hr class="iis" size="1">
  41. <p align="center"><em><a href="/iishelp/common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
  42. </BODY>
  43. </HTML>
  44.