Main | Links | Software | Coding | Guestbook | Archive | Info | Search

Coding


This page will soon contain some more cool stuff. For now, the only thing I can offer is this small java script which enables the browser to show different text on different platforms. Include this in the header of the page:
<SCRIPT>
function greeter(){
   if (navigator.appVersion.lastIndexOf('Mac') != -1)
      document.write("Write the text for Macintosh users, here ")
   if (navigator.appVersion.lastIndexOf('Win16') != -1)
      document.write("Write the text for Win16 users, here ")
   if (navigator.appVersion.lastIndexOf('Win32') != -1)
      document.write("Write the text for Win32 users, here ")
}
</SCRIPT>
Then include this somewhere in the document where you would like the text to appear.
<SCRIPT>
greeter()
</SCRIPT>

Copyright 1996 Anders Wittrup.
Maintained online by awittrup@hotmail.com