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

  1. <ccresource>
  2.   <cctitle>
  3. Add to Favorites
  4.   </cctitle>
  5.   <cccategory>
  6. Browser
  7.   </cccategory>
  8.   <ccdescription>
  9. Add to Favorites for IE
  10.   </ccdescription>
  11.   <ccinstructions>
  12. Put this script anywhere in your webpage and when a visitor goes to your webpage using Internet Explorer, they only need to click on the link to add your webpage to their FAVORITES folder. Netscape users will simply get a reminder to press CTRL-D to bookmark.
  13.   </ccinstructions>
  14.   <ccheadcontent>
  15.   </ccheadcontent>
  16.   <ccbodycontent>
  17. <script language="javascript">
  18. <!--
  19. if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  20.  
  21. var url="http://www.coffeecup.com.com";
  22. var title="CoffeeCup Software - Web Authoring Tools";
  23.  
  24. document.write('<A HREF="javascript:window.ext');
  25. document.write('ernal.AddFavorite(url,title);" ');
  26. document.write('onMouseOver=" window.status=');
  27. document.write("'Add our site to your favorites!'; return true ");
  28. document.write('"onMouseOut=" window.status=');
  29. document.write("' '; return true ");
  30. document.write('">Add our site to your favorites!</a>');
  31. }
  32. else {
  33. var msg = "Don't forget to bookmark us!";
  34. if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
  35. document.write(msg);
  36. }
  37.  
  38. // -->
  39. </script>
  40.   </ccbodycontent>
  41.   <ccelementcontent>
  42.   
  43.    <ccelementname></ccelementname>
  44.    <ccelementaction></ccelementaction>
  45.    
  46.   </ccelementcontent>
  47.   <ccextradata>
  48.  
  49.   </ccextradata>
  50. </ccresource>