home *** CD-ROM | disk | FTP | other *** search
/ PC User 2005 May / CD / PCU0505CD.iso / software / full / coffecup / files / html2005.exe / %MAINDIR% / Javascript / BrowserJump.xml < prev    next >
Encoding:
Text File  |  2005-02-16  |  1.4 KB  |  49 lines

  1. <ccResource>
  2.   <ccTitle>
  3. Browser Jump
  4.   </ccTitle>
  5.   <ccCategory>
  6. Browser
  7.   </ccCategory>
  8.   <ccDescription>
  9. Recognizes what browser you are using and jumps to that browser's correct page.
  10.   </ccDescription>
  11.   <ccInstructions>
  12. This script is your opening web page.  Then depending on which version of Netscape or IE the visitor is using, the page will then "jump" to it's respective page.  
  13.   </ccInstructions>
  14.   <ccHeadContent>
  15.   
  16.   </ccHeadContent>
  17.   <ccBodyContent>
  18. <SCRIPT LANGUAGE="JavaScript">
  19. <!-- 
  20. manu=navigator.appName;            
  21. vers=navigator.appVersion;        
  22. //MSIE 4.0+ BROWSERS WILL JUMP TO THIS LINK
  23.     if (manu.indexOf("Microsoft")>=0 && vers.indexOf("4")>=0)
  24.         {location.href="ie4.html";}
  25. //MSIE 3.0 BROWSERS WILL JUMP TO THIS LINK
  26.     else if (manu.indexOf("Microsoft")>=0 && vers.indexOf("3")>=0)
  27.         {location.href="ie3.html";}
  28. //Netscape 4.0+ BROWSERS WILL JUMP TO THIS LINK
  29.     else if (manu.indexOf("Netscape")>=0 && vers.indexOf("4")>=0)
  30.         {location.href="netscape4.html";}
  31. //Netscape 3.0 BROWSERS WILL JUMP TO THIS LINK
  32.     else if (manu.indexOf("Netscape")>=0 && vers.indexOf("3")>=0)
  33.         {location.href="netscape3.html";}
  34. //ALL OTHER BROWSERS WILL JUMP TO THIS LINK
  35.     else
  36.         {location.href="others.html";}
  37. //-->
  38. </SCRIPT>
  39.   </ccBodyContent>
  40.   <ccElementContent>
  41.   
  42.    <ccElementName></ccElementName>
  43.    <ccElementAction></ccElementAction>
  44.    
  45.   </ccElementContent>
  46.   <ccExtraData>
  47.  
  48.   </ccExtraData>
  49. </ccResource>