Adobe GoLive 9

To add a browser-switch script

A browser-switch script detects the web browser loading the page and automatically redirects viewers to an alternate page based on their browser. You can also use the browser-switch script to separate Netscape from Internet Explorer browsers based on browser-specific markup support.

  1. Drag the Browser Switch icon  from the Smart set  in the Objects panel to the body of the page. GoLive automatically moves it to the head section and opens the head section pane.
    Note: Because an older browser can’t read the browser-switch script, you should make sure that the page you’re placing the script on is built for the oldest of browsers and assumes no redirect is possible.
  2. In the Browser Switch Inspector, select the browsers that support the features on your page:
    • To have GoLive determine browser compatibility, select Auto. For example, if your page contains features that can only be interpreted by version 4.0 browsers and later, GoLive configures the script to reroute requests from version 3.0 browsers.

    • If the same browsers are supported in Windows and Mac OS, deselect Auto, choose All from the Supported Platform menu, and select the supported browsers.

    • If different browsers are supported in Windows and Mac OS, choose Windows from the Supported Platform menu and select the supported browsers for Windows. Then choose Mac OS from the Supported Platform menu, and select the supported browsers for Mac OS.

      Note: In the Browser Switch Inspector, you can select the infinity symbol for Netscape or Explorer to indicate that the supported browser versions are those later than version 6.0.
  3. Specify the URL to an alternate page in the Alternate Link text box.

    When you have finished, try viewing your page with an incompatible browser and check whether the request is correctly rerouted.