[ Previous ] [ Contents ] [ Index ] [ Next ]

Registered ADP Tags

The following tags are available for use within ADPs. You can use them as you would any other HTML tag inside a page that is going to be processed as an ADP.

You can also define your own ADP tags with the ns_register_adptag Tcl function (see page 174 of Tcl Developer's Guide) or the Ns_RegisterAdpCmd C function (see page 230 of the C Developer's Guide).

<aol> ... </aol>

This tag allows you to display text depending on whether or not the browser is America Online and depending on which version of America Online the browser is or is not using.

Syntax:

<aol [not] [aol2.5[=no]] [msie[=no]] [iweng[=no]] [mac[=no]]> ... </aol>

The text between the tags is displayed only if the browser is AOL and meets the specified criteria. If not is specified, the text between the tags is displayed only none of the specified criteria are true.

If aol2.5 is specified, the browser must be the AOL 2.5 browser. If aol2.5=no is specified, the browser must not be the AOL 2.5 browser.

If msie is specified, the browser must be the Microsoft Internet Explorer browser used within AOL. If msie=no is specified, the browser must not be the Internet Explorer browser.

If iweng is specified, the browser must be the iweng browser. If iweng=no is specified, the browser must not be the iweng browser.

If mac is specified, the browser must be the AOL Mac browser. If mac=no is specified, the browser must not be the AOL Mac browser.

Examples:

    <aol aol2.5 mac>This text will only be displayed if the browser 
    is either the AOL 2.5 browser or the AOL Mac browser.</aol>
    <aol not msie>This text will only be displayed if the browser is 
    any AOL browser except Internet Explorer.</aol>

<browser> ... </browser>

This tag allows you to display text depending on the browser that is or is not being used.

Syntax:

<browser [name=xxx] [name_not=xxx] [...]> ... </browser>

The text between the tags will be displayed if the browser matches any of the name= criteria and matches none of the name_not criteria. The possible browser names are: Netscape, Microsoft, AOL, Lynx, ...

Examples:

    <browser name=AOL name=Microsoft>This text will only be displayed
    if the browser is either the AOL browser or the Microsoft Internet
    Explorer browser.</browser>
    <browser name_not=Netscape>This text will only be displayed if 
    the browser is not Netscape.</browser>

<msie> ... </msie>

This tag allows you to display text depending on whether or not the browser is Microsoft Internet Explorer and depending on which version of Internet Explorer the browser is or is not using.

Syntax:

<msie [not] [minversion=xxx] [maxversion=xxx]> ... </msie>

The text between the tags will be displayed if the browser is Internet Explorer. If not is specified, the text between the tags will be displayed if the browser is not Internet Explorer.

If minversion and maxversion are specified, the text between the tags will be displayed if the browser is Internet Explorer and the Internet Explorer version number is between minversion and maxversion. If only minversion or only maxversion is specified, it will be used as a lower bound or an upper bound, respectively, of the version number. If not is specified with minversion and/or maxversion, the text between the tags will be displayed if the browser is not Internet Explorer between the specified version numbers.

Examples:

    <msie>This text will only be displayed if the browser is 
Netscape.
    </msie>
    <msie not maxversion=3.02>This text will only be displayed if 
    the browser is not Microsoft Internet Explorer, or if it is 
    Internet Explorer with a version number greater than 3.02.</msie>

<netscape> ... </netscape>

This tag allows you to display text depending on whether or not the browser is Netscape and depending on which version of Netscape the browser is or is not using.

Syntax:

<netscape [not] [minversion=xxx] [maxversion=xxx]> ... </netscape>

The text between the tags will be displayed if the browser is Netscape. If not is specified, the text between the tags will be displayed if the browser is not Netscape.

If minversion and maxversion are specified, the text between the tags will be displayed if the browser is Netscape and the Netscape version number is between minversion and maxversion. If only minversion or only maxversion is specified, it will be used as a lower bound or an upper bound, respectively, of the version number. If not is specified with minversion and/or maxversion, the text between the tags will be displayed if the browser is not Netscape between the specified version numbers.

Examples:

    <netscape minversion=2.0 maxversion=3.01>This text will only be 
    displayed if the browser is Netscape between (and including)
    versions 2.0 and 3.01.</netscape>
    <netscape not>This text will only be displayed if the browser is
    not Netscape.</netscape>

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.