See new Panther features in new browser windows

Oct 24, '03 10:21:00AM

Contributed by: acrappa

Haven't quite decided to take the plunge on Panther yet? But still want to see some of what it offers? Here's a homepage replacement that will display a new Panther feature each time you open a new Web browser window. Copy and paste the following text into an editor, save it as a some_name.html, and set it as your browser's page to display when a new window opens.


<html>
<body>
<script language="JavaScript">
  var url = new Array(11);
  url[0] = "http://www.apple.com/macosx/features/finder/";
  url[1] = "http://www.apple.com/macosx/features/expose/";
  url[2] = "http://www.apple.com/ichat/";
  url[3] = "http://www.apple.com/macosx/features/filevault/";
  url[4] = "http://www.apple.com/macosx/features/fastuserswitching/";
  url[5] = "http://www.apple.com/macosx/features/mail/";
  url[6] = "http://www.apple.com/macosx/features/idisk/";
  url[7] = "http://www.apple.com/macosx/features/preview/";
  url[8] = "http://www.apple.com/macosx/features/fontbook/";
  url[9] = "http://www.apple.com/macosx/features/unix/";
  url[10] = "http://www.apple.com/macosx/features/xcode/";
  for (loopcount = 0; loopcount < 10; loopcount++)
  {
    var number = (Math.floor(Math.random() * 11));
  }
  window.location.replace(url[number]);
</script>
</html>
[robg adds: Yes, I agree this is a mostly trivial hint ... but we're about 12 hours from Panther's official launch, so I thought it'd be fun to run this morning. It also demonstrates a little bit of what you can do with JavaScript for those who may not be familiar with the language.]

Comments (12)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20031009223124380