Skip to content. Skip to navigation

ICTP Portal

Sections
You are here: Home Scripts proxyinfo.js
Personal tools
Document Actions

proxyinfo.js

Click here to get the file

Size 7.8 kB - File type text/html

File contents

var proxyurl = "<code>http://www.ictp.trieste.it/proxy.pac</code>"
var headline = "<h2>Setting up the ICTP proxy server for "

function browser(s) {
  if(navigator.userAgent.indexOf(s) != -1)
    return 1
  else
    return 0
}

if(browser("Firefox")) {
  document.write(headline,"Firefox</h2>\n")
  document.write("<p>From the <em>Edit</em> menu, choose <em>Preferences</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/firefox1.gif\" alt=\"[Edit menu/Preferences]\" /></p>\n")
  document.write("<p>Click on <em>Connection Settings...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/firefox2.gif\" alt=\"[General/Connection Settings...]\" /></p>\n")
  document.write("<p>Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/firefox3.gif\" alt=\"[Proxy configuration/Automatic script]\" /></p>\n")
} else if(browser("Opera")) {
  document.write(headline,"Opera</h2>\n")
  document.write("<p>From the <em>File</em> menu, choose <em>Preferences</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/opera1.gif\" alt=\"[File menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Network</em>. Click on the <em>Proxy servers</em> button.<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/opera2.gif\" alt=\"[Network/Proxy servers]\" /></p>\n")
  document.write("<p>Choose <em>Use automatic proxy configuration</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/opera3.gif\" alt=\"[Automatic proxy]\" /></p>\n")
} else if(browser("Galeon")) {
  document.write(headline,"Galeon</h2>\n")
  document.write("<p>From the <em>Edit</em> menu, choose <em>Preferences</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/galeon1.gif\" alt=\"[Edit/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Network</em>. Click on the <em>Configure Network Proxy</em> button.<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/galeon2.gif\" alt=\"[Network/Configure Proxy]\" /></p>\n")
  document.write("<p>Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/galeon3.gif\" alt=\"[Automatic proxy configuration]\" /></p>\n")
} else if(browser("Konqueror")) {
  document.write(headline,"Konqueror</h2>\n")
  document.write("<p>From the <em>Settings</em> menu, choose <em>Configure Konqueror...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/konqueror1.gif\" alt=\"[Settings menu/Configure Konqueror]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxy</em>. Activate <em>Use proxy</em>, choose <em>Specified script file</em> and enter",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/konqueror2.gif\" alt=\"[Proxy/Script file]\" /></p>\n")
} else if(browser("Safari")) {
  document.write(headline,"Safari</h2>\n")
  document.write("<p>From the <em>Safari</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/safari1.gif\" alt=\"[Safari menu/Preferences]\" /></p>\n")
  document.write("<p>Click on the <em>Advanced</em> tab and then on the <em>Change Settings...</em> button.<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/safari2.gif\" alt=\"[Advanced/Change Settings]\" /></p>\n")
  document.write("<p>Activate <em>Automatic Proxy Configuration</em> and insert the URL ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/safari3.gif\" alt=\"[Automatic Proxy Configuration]\" /></p>\n")
} else if(browser("MSIE") && browser("Mac")) {
  document.write(headline,"IE Mac</h2>\n")
  document.write("<p>From the <em>Explorer</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-mac1.gif\" alt=\"[Explorer menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxies</em> (sub-item of <em>Network</em>). Click on the <em>Settings...</em> button<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-mac2.gif\" alt=\"[Network/Settings]\" /></p>\n")
  document.write("<p>Enter <code>proxy.ictp.trieste.it</code> as <em>address</em> and <code>3128</code> as <em>Port</em>.<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-mac3.gif\" alt=\"[proxy.ictp.trieste.it/3128]\" /></p>\n")
} else if(browser("Netscape") && browser("Mac")) {
  document.write(headline,"Netscape Mac</h2>\n")
  document.write("<p>From the <em>Netscape</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-mac1.gif\" alt=\"[Netscape menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxies</em> (sub-item of <em>Advanced</em>). Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-mac2.gif\" alt=\"[Proxies/Advanced]\" /></p>\n")
} else if(browser("MSIE")) {
  document.write(headline,"IE Win</h2>\n")
  document.write("<p>From the <em>start</em> menu, choose <em>Control Panel</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-win1.gif\" alt=\"[Control Panel]\" /></p>\n")
  document.write("<p>Select <em>Internet Options</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-win2.gif\" alt=\"[Internet Options]\" /></p>\n")
  document.write("<p>Click on the <em>Connections</em> tab and then on the <em>LAN Settings...</em> button<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-win3.gif\" alt=\"[Connections/LAN Settings]\" /></p>\n")
  document.write("<p>Choose <em>Use automatic configuration script</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/msie-win4.gif\" alt=\"[Automatic configuration script]\" /></p>\n")
} else if(browser("Netscape") && browser("Windows")) {
  document.write(headline,"Netscape Win</h2>\n")
  document.write("<p>From the <em>Edit</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-win1.gif\" alt=\"[Netscape menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxies</em> (sub-item of <em>Advanced</em>). Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-win2.gif\" alt=\"[Proxies/Advanced]\" /></p>\n")
} else if(browser("Netscape")) {
  document.write(headline,"Netscape Linux</h2>\n")
  document.write("<p>From the <em>Edit</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-linux1.gif\" alt=\"[Edit menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxies</em> (sub-item of <em>Advanced</em>). Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/netscape-linux2.gif\" alt=\"[Advanced/Proxies]\" /></p>\n")
} else if(browser("Mozilla") && browser("Linux")) {
  document.write(headline,"Mozilla Linux</h2>\n")
  document.write("<p>From the <em>Edit</em> menu, choose <em>Preferences...</em><br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/mozilla1.gif\" alt=\"[Edit menu/Preferences]\" /></p>\n")
  document.write("<p>From the list on the left-hand side, choose <em>Proxies</em> (sub-item of <em>Advanced</em>). Choose <em>Automatic proxy configuration URL</em> and insert ",proxyurl,"<br />\n")
  document.write("<img src=\"http://scs.ictp.it/images/mozilla2.gif\" alt=\"[Advanced/Proxies]\" /></p>\n")
}

Powered by Plone This site conforms to the following standards: