Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
654 B

  1. <script>
  2. //Build the query
  3. userURL=external.menuArguments.location.href;
  4. RelatedServiceURL="http://related.msn.com/related.asp?url=";
  5. //Perform simple check for Intranet URLs
  6. //this is where the http or https will be, as found by searching for :// but skip res:
  7. protocolIndex=userURL.indexOf("://",4);
  8. serverIndex=userURL.indexOf("/",protocolIndex + 3);
  9. urlresult=userURL.substring(0,serverIndex);
  10. //Check if Intranet URL - then open search bar
  11. if (urlresult.indexOf(".",0) < 1) userURL="Intranet URL";
  12. finalURL = RelatedServiceURL + encodeURIComponent(userURL);
  13. external.menuArguments.open(finalURL, "_search");
  14. </script>